SHOW:
|
|
- or go back to the newest paste.
1 | --[[User: TheDarkRevenant | |
2 | Script: Genkadda.txt | |
3 | Pass: E1IZVizJ]] | |
4 | ||
5 | ||
6 | --[[EDIT: Genkadda_Omega (WIP)]] | |
7 | ||
8 | -- Messy atm, will clean up when finished | |
9 | ||
10 | --[[Thank you to Fang and Asriel/Frisk for helping fix cero and adding the nightshift blast]] | |
11 | --[[Thanks to PixelFire for the gauntlet]] | |
12 | ||
13 | --[[ TODO List: | |
14 | ||
15 | Fix Cero beam angle (it's a bit off compared to the other one) | |
16 | Redo some animations entirely | |
17 | Make a toggle for turning future voice sfx on/off(?) | |
18 | More attacks, including alternate attacks when dashing | |
19 | Add a throw | |
20 | Fix animation while flying with someone grabbed | |
21 | ||
22 | ||
23 | Changes: | |
24 | ||
25 | - Added a boosted/holy mode that can be toggled with H | |
26 | - While in this mode, attacks are more varied and powerful | |
27 | - Different dashing animation | |
28 | - Other effects, will make a complete list when | |
29 | ||
30 | - Added Cero Beam and Nightshift Blast from Zerioth | |
31 | - Added other, larger beam | |
32 | - Made the standard two swipes with q actually hit both times | |
33 | - Probably more I forgot | |
34 | ||
35 | Controls: | |
36 | ||
37 | Q = Swing sword twice | |
38 | E = Slap | |
39 | R = Overhead downwards swing | |
40 | T = Pelvic thrust | |
41 | Y = Nightshift blast | |
42 | G = Spinning attack | |
43 | C = Cero beam | |
44 | V = Large beam | |
45 | Z = Grab | |
46 | Left Ctrl = Sprint/Dash | |
47 | F = Toggle flight | |
48 | ||
49 | H = Switch between dark/light mode | |
50 | ||
51 | ||
52 | ]] | |
53 | ||
54 | ||
55 | local p = game.Players.LocalPlayer | |
56 | local char = p.Character | |
57 | local mouse = p:GetMouse() | |
58 | local larm = char["Left Arm"] | |
59 | local rarm = char["Right Arm"] | |
60 | local lleg = char["Left Leg"] | |
61 | local rleg = char["Right Leg"] | |
62 | local hed = char.Head | |
63 | local torso = char.Torso | |
64 | local hum = char.Humanoid | |
65 | local cam = game.Workspace.CurrentCamera | |
66 | local root = char.HumanoidRootPart | |
67 | local deb = false | |
68 | local CanAttack = true | |
69 | local shot = 0 | |
70 | local animpose = "Idle" | |
71 | local lastanimpose = "Idle" | |
72 | local stanceToggle = "Normal" | |
73 | local l = game:GetService("Lighting") | |
74 | local rs = game:GetService("RunService").RenderStepped | |
75 | bb = Instance.new("BillboardGui",hed) | |
76 | - | hum.MaxHealth = 9001 |
76 | + | bb.Enabled = true |
77 | bb.AlwaysOnTop = true | |
78 | - | hum.Health = 9001 |
78 | + | bb.Size = UDim2.new(0,200,00,50) |
79 | bb.StudsOffset = Vector3.new(0,1,0) | |
80 | gui3=Instance.new("TextButton",bb) | |
81 | gui3.Position=UDim2.new(0,190,0,15) | |
82 | gui3.Size = UDim2.new(0,190,0,51) | |
83 | gui3.TextScaled = true | |
84 | gui3.BackgroundTransparency = 1 | |
85 | gui3.Font = "SciFi" | |
86 | gui3.TextColor3 = Color3.new(0, 1, 0) | |
87 | gui3.Text = "HP "..hum.Health.."/10000" | |
88 | gui3.FontSize = "Size42" | |
89 | math.randomseed(os.time()) | |
90 | hum.MaxHealth = 10000 | |
91 | wait(1) | |
92 | hum.Health = 10000 | |
93 | ||
94 | for i,v in pairs (hed:GetChildren()) do | |
95 | if v:IsA("Sound") then | |
96 | v:Destroy() | |
97 | - | local eColors = {"Lime green", "Really black"} |
97 | + | |
98 | end | |
99 | --game:service'InsertService':LoadAsset(16469427):children()[1].Parent = char | |
100 | --char.Reaper.Handle.Mesh.TextureId = "http://www.roblox.com/asset/?id=176349813" | |
101 | ||
102 | ---------------------------------------------------- | |
103 | --[[Additional Variables]] | |
104 | ||
105 | ||
106 | ||
107 | ||
108 | ||
109 | local lightspeed = math.random(0.1,0.2) | |
110 | local holy = false -- Is in holy/angel of death form? | |
111 | local eColors = {"Toothpaste", "Institutional White"} | |
112 | local idz = {"161006212", "161006195"} | |
113 | local Effects={} | |
114 | ||
115 | ||
116 | hs = Instance.new("Sound",torso) | |
117 | hs.SoundId = "http://www.roblox.com/asset/?id=149560784" | |
118 | hs.Pitch = 1.2 | |
119 | - | eColors = {"Lime green", "Really black"} |
119 | + | |
120 | hs.Looped = true | |
121 | - | eColors = {"Lime green"} |
121 | + | |
122 | ds = Instance.new("Sound",torso) | |
123 | ds.SoundId = "http://roblox.com/asset/?id=149560784" | |
124 | ds.Pitch = 0.3 | |
125 | ds.Volume = 0.4 | |
126 | ds.Looped = true | |
127 | ||
128 | ||
129 | ds:play() | |
130 | ||
131 | ||
132 | if holy == false then | |
133 | eColors = {"Cyan", "Pastel Blue"} | |
134 | else if holy == true then | |
135 | eColors = {"Really blue"} | |
136 | end | |
137 | end | |
138 | ||
139 | ||
140 | ||
141 | ||
142 | ||
143 | ||
144 | ---------------------------------------------------- | |
145 | --[[Additional Functions]] | |
146 | ||
147 | cf=CFrame.new | |
148 | vt=Vector3.new | |
149 | ||
150 | function swait(num) | |
151 | if num==0 or num==nil then | |
152 | game:service'RunService'.Stepped:wait(0) | |
153 | else | |
154 | for i=0,num do | |
155 | game:service'RunService'.Stepped:wait(0) | |
156 | end | |
157 | end | |
158 | end | |
159 | ||
160 | so = function(id,par,vol,pit) | |
161 | coroutine.resume(coroutine.create(function() | |
162 | local sou = Instance.new("Sound",par or workspace) | |
163 | sou.Volume=vol | |
164 | sou.Pitch=pit or 1 | |
165 | sou.SoundId=id | |
166 | swait() | |
167 | sou:play() | |
168 | game:GetService("Debris"):AddItem(sou,6) | |
169 | end)) | |
170 | end | |
171 | ||
172 | ||
173 | ||
174 | ||
175 | ||
176 | ---------------------------------------------------- | |
177 | Debounces = { | |
178 | CanAttack = true; | |
179 | CanJoke = true; | |
180 | NoIdl = false; | |
181 | Slashing = false; | |
182 | Slashed = false; | |
183 | Slapping = false; | |
184 | Slapped = false; | |
185 | ks = false; | |
186 | } | |
187 | ||
188 | local Touche = {char.Name, } | |
189 | ---------------------------------------------------- | |
190 | function HasntTouched(plrname) | |
191 | local ret = true | |
192 | for _, v in pairs(Touche) do | |
193 | if v == plrname then | |
194 | ret = false | |
195 | end | |
196 | end | |
197 | return ret | |
198 | end | |
199 | ---------------------------------------------------- | |
200 | function weld5(part0, part1, c0, c1) | |
201 | weeld=Instance.new("Weld", part0) | |
202 | weeld.Part0=part0 | |
203 | weeld.Part1=part1 | |
204 | weeld.C0=c0 | |
205 | weeld.C1=c1 | |
206 | return weeld | |
207 | end | |
208 | - | part.BrickColor=BrickColor.new('Lime green') |
208 | + | |
209 | mod=Instance.new('Model',char) | |
210 | ||
211 | function Burst() | |
212 | part=Instance.new('Part',mod) | |
213 | part.Anchored=true | |
214 | part.CanCollide=false | |
215 | part.FormFactor='Custom' | |
216 | part.Size=Vector3.new(.2,.2,.2) | |
217 | part.CFrame=root.CFrame*CFrame.new(0,1,0)*CFrame.Angles(math.rad(90),0,0) | |
218 | - | part2.BrickColor=BrickColor.new('Lime green') |
218 | + | |
219 | ||
220 | - | part2.BrickColor=BrickColor.new('Lime green') |
220 | + | |
221 | part.BrickColor=BrickColor.new('Really black') | |
222 | else | |
223 | part.BrickColor=BrickColor.new('Toothpaste') | |
224 | end | |
225 | ||
226 | mesh=Instance.new('SpecialMesh',part) | |
227 | mesh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
228 | mesh.Scale=Vector3.new(10,5,10) | |
229 | part2=part:clone() | |
230 | part2.Parent=mod | |
231 | ||
232 | if holy ~= true then | |
233 | part2.BrickColor=BrickColor.new('Toothpaste') | |
234 | else | |
235 | part2.BrickColor=BrickColor.new('Toothpaste') | |
236 | end | |
237 | ||
238 | mesh2=mesh:clone() | |
239 | mesh2.Parent=part2 | |
240 | mesh2.Scale=Vector3.new(5,2.5,5) | |
241 | coroutine.resume(coroutine.create(function() | |
242 | for i=0,1,0.1 do | |
243 | wait() | |
244 | part.CFrame=part.CFrame | |
245 | part.Transparency=i | |
246 | mesh.Scale=mesh.Scale+Vector3.new(1,1,1) | |
247 | part2.CFrame=part2.CFrame | |
248 | part2.Transparency=i | |
249 | mesh2.Scale=mesh2.Scale+Vector3.new(1,1,1) | |
250 | end | |
251 | part.Parent=nil | |
252 | part2.Parent=nil | |
253 | end)) | |
254 | end | |
255 | ---------------------------------------------------- | |
256 | mod4 = Instance.new("Model",char) | |
257 | ||
258 | ptez = {0.7, 0.8, 0.9, 1} | |
259 | ||
260 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
261 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
262 | local List = {} | |
263 | for i,v in pairs(workspace:GetChildren())do | |
264 | if v:IsA("Model")then | |
265 | if v:findFirstChild("Torso")then | |
266 | if v ~= char then | |
267 | if(v.Torso.Position -Position).magnitude <= Distance then | |
268 | table.insert(List,v) | |
269 | end | |
270 | end | |
271 | end | |
272 | end | |
273 | end | |
274 | - | part.BrickColor=BrickColor.new('Lime green') |
274 | + | |
275 | end | |
276 | ||
277 | function Slam() | |
278 | part=Instance.new('Part',mod4) | |
279 | part.Anchored=true | |
280 | part.CanCollide=false | |
281 | part.FormFactor='Custom' | |
282 | part.Size=Vector3.new(.2,.2,.2) | |
283 | part.CFrame=root.CFrame*CFrame.new(0,-2.8,-1.4)*CFrame.Angles(math.rad(90),0,0) | |
284 | part.Transparency=.7 | |
285 | ||
286 | if holy ~= true then | |
287 | part.BrickColor=BrickColor.new('Really black') | |
288 | else | |
289 | - | part2.BrickColor=BrickColor.new('Lime green') |
289 | + | part.BrickColor=BrickColor.new('Toothpaste') |
290 | end | |
291 | - | part2.BrickColor=BrickColor.new('Lime green') |
291 | + | |
292 | mesh=Instance.new('SpecialMesh',part) | |
293 | mesh.MeshId='http://www.roblox.com/asset/?id=3270017' | |
294 | mesh.Scale=Vector3.new(3,3,3) | |
295 | part2=Instance.new('Part',mod4) | |
296 | part2.Anchored=true | |
297 | part2.CanCollide=false | |
298 | part2.FormFactor='Custom' | |
299 | part2.Size=Vector3.new(.2,.2,.2) | |
300 | part2.CFrame=root.CFrame*CFrame.new(0,-2.4,-1.6) | |
301 | part2.Transparency=.7 | |
302 | ||
303 | if holy ~= true then | |
304 | part2.BrickColor=BrickColor.new('Toothpaste') | |
305 | else | |
306 | part2.BrickColor=BrickColor.new('Toothpaste') | |
307 | end | |
308 | ||
309 | mesh2=Instance.new('SpecialMesh',part2) | |
310 | mesh2.MeshId='http://www.roblox.com/asset/?id=20329976' | |
311 | - | v.Humanoid:TakeDamage(math.random(99999999,99999999)) |
311 | + | |
312 | x = Instance.new("Sound",char) | |
313 | x.SoundId = "http://www.roblox.com/asset/?id=142070127" | |
314 | x.Pitch = ptez[math.random(1,#ptez)] | |
315 | x.Volume = 1 | |
316 | wait(.1) | |
317 | x1 = Instance.new("Sound",char) | |
318 | x1.SoundId = "http://www.roblox.com/asset/?id=206082327" | |
319 | x1.Pitch = ptez[math.random(1,#ptez)] | |
320 | x1.Volume = 1 | |
321 | wait(.1) | |
322 | x:Play() | |
323 | x1:Play() | |
324 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do | |
325 | if v:FindFirstChild('Humanoid') then | |
326 | v.Humanoid:TakeDamage(math.random(7500,50000)) | |
327 | end | |
328 | end | |
329 | coroutine.resume(coroutine.create(function() | |
330 | for i=0,0.62,0.13 do | |
331 | wait() | |
332 | part.CFrame=part.CFrame | |
333 | part.Transparency=i | |
334 | mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4) | |
335 | part2.CFrame=part2.CFrame | |
336 | part2.Transparency=i | |
337 | mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4) | |
338 | end | |
339 | part.Parent=nil | |
340 | part2.Parent=nil | |
341 | x:Destroy() | |
342 | end)) | |
343 | end | |
344 | ----------------------------------------------------PUNCH FUNC | |
345 | function Punch() | |
346 | part=Instance.new('Part',mod4) | |
347 | part.Anchored=true | |
348 | part.CanCollide=false | |
349 | part.FormFactor='Custom' | |
350 | part.Size=Vector3.new(.2,.2,.2) | |
351 | - | part2.BrickColor=BrickColor.new('Lime green') |
351 | + | |
352 | part.Transparency=.7 | |
353 | ||
354 | part.BrickColor=BrickColor.new('Really black') | |
355 | mesh=Instance.new('SpecialMesh',part) | |
356 | mesh.MeshId='http://www.roblox.com/asset/?id=3270017' | |
357 | - | v.Humanoid:TakeDamage(math.random(2,6)) |
357 | + | |
358 | part2=Instance.new('Part',mod4) | |
359 | part2.Anchored=true | |
360 | part2.CanCollide=false | |
361 | ||
362 | part2.FormFactor='Custom' | |
363 | part2.Size=Vector3.new(.2,.2,.2) | |
364 | part2.CFrame=root.CFrame*CFrame.new(0,1.5,-2.4)*CFrame.Angles(math.rad(90),0,0) | |
365 | part2.Transparency=.7 | |
366 | part2.BrickColor=BrickColor.new('Toothpaste') | |
367 | mesh2=Instance.new('SpecialMesh',part2) | |
368 | mesh2.MeshId='http://www.roblox.com/asset/?id=20329976' | |
369 | mesh2.Scale=Vector3.new(3,1.5,3) | |
370 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do | |
371 | if v:FindFirstChild('Humanoid') then | |
372 | v.Humanoid:TakeDamage(math.random(2000,6000)) | |
373 | end | |
374 | end | |
375 | coroutine.resume(coroutine.create(function() | |
376 | for i=0,0.62,0.4 do | |
377 | - | local Colors = {"Lime green", "Really black"} |
377 | + | |
378 | part.CFrame=part.CFrame | |
379 | part.Transparency=i | |
380 | mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4) | |
381 | part2.CFrame=part2.CFrame | |
382 | part2.Transparency=i | |
383 | - | wave.BrickColor = BrickColor.new("Lime green") |
383 | + | |
384 | end | |
385 | part.Parent=nil | |
386 | part2.Parent=nil | |
387 | end)) | |
388 | end | |
389 | ---------------------------------------------------- | |
390 | GroundWave = function() | |
391 | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
392 | local Colors = {"Toothpaste", "Really black"} | |
393 | local wave = Instance.new("Part", torso) | |
394 | ||
395 | if holy == false then | |
396 | wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
397 | else | |
398 | wave.BrickColor = BrickColor.new("Toothpaste") | |
399 | end | |
400 | ||
401 | wave.Anchored = true | |
402 | wave.CanCollide = false | |
403 | wave.Material = "Neon" | |
404 | wave.Locked = true | |
405 | wave.Size = Vector3.new(1, 1, 1) | |
406 | wave.TopSurface = "Smooth" | |
407 | wave.BottomSurface = "Smooth" | |
408 | wave.Transparency = 0.35 | |
409 | wave.CFrame = HandCF | |
410 | wm = Instance.new("SpecialMesh", wave) | |
411 | wm.MeshId = "rbxassetid://3270017" | |
412 | coroutine.wrap(function() | |
413 | for i = 1, 14, 1 do | |
414 | wm.Scale = Vector3.new(1 + i*1.1, 1 + i*1.1, 1) | |
415 | wave.Size = wm.Scale | |
416 | wave.CFrame = HandCF | |
417 | wave.Transparency = i/14 | |
418 | wait() | |
419 | - | local Colors = {"Lime green", "Really black"} |
419 | + | |
420 | wait() | |
421 | wave:Destroy() | |
422 | end)() | |
423 | end | |
424 | ---------------------------------------------------- | |
425 | Magik = function() | |
426 | Spawn(function() | |
427 | local function lerp(a,b,c) | |
428 | return a+(b-a)*c | |
429 | end | |
430 | local function rndRange(rng) | |
431 | return math.random(-rng*1000,rng*1000)/1000 | |
432 | end | |
433 | - | magik.BrickColor = BrickColor.new("Lime green") |
433 | + | |
434 | local Colors = {"Toothpaste", "Really black"} | |
435 | magik.Anchored = true | |
436 | magik.Locked = true | |
437 | magik.Material = "Neon" | |
438 | magik.FormFactor = "Custom" | |
439 | magik.Size = Vector3.new(1.2, 1.2, 1.2) | |
440 | magik.TopSurface = "Smooth" | |
441 | magik.BottomSurface = "Smooth" | |
442 | magik.Transparency = 0 | |
443 | magik.CanCollide = false | |
444 | ||
445 | if holy == false then | |
446 | magik.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
447 | else | |
448 | magik.BrickColor = BrickColor.new("Toothpaste") | |
449 | end | |
450 | ||
451 | local mr = math.rad | |
452 | local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180)) | |
453 | local cf = larm.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz) | |
454 | magik.CFrame = cf | |
455 | for i = 0, 1, .05 do | |
456 | local newTrans = lerp(0.5, 1, i) | |
457 | local ns = lerp(1,1.2,i) | |
458 | magik.Transparency = newTrans | |
459 | magik.Size = Vector3.new(ns,ns,ns) | |
460 | magik.CFrame = cf | |
461 | rs:wait() | |
462 | end | |
463 | - | local Colors = {"Lime green", "Really black"} |
463 | + | |
464 | wait() | |
465 | end) | |
466 | end | |
467 | ---------------------------------------------------- | |
468 | Magik2 = function() | |
469 | Spawn(function() | |
470 | if stanceToggle == "Melee" then | |
471 | local function lerp(a,b,c) | |
472 | return a+(b-a)*c | |
473 | end | |
474 | local function rndRange(rng) | |
475 | return math.random(-rng*1000,rng*1000)/1000 | |
476 | end | |
477 | - | magik2.BrickColor = BrickColor.new("Lime green") |
477 | + | |
478 | local Colors = {"Toothpaste", "Really black"} | |
479 | magik2.Anchored = true | |
480 | magik2.Locked = true | |
481 | magik2.FormFactor = "Custom" | |
482 | magik2.Size = Vector3.new(1.2, 1.2, 1.2) | |
483 | magik2.TopSurface = "Smooth" | |
484 | magik2.BottomSurface = "Smooth" | |
485 | magik2.Transparency = 0 | |
486 | magik2.Material = "Neon" | |
487 | magik2.CanCollide = false | |
488 | ||
489 | if holy == false then | |
490 | magik2.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
491 | else | |
492 | magik2.BrickColor = BrickColor.new("Toothpaste") | |
493 | end | |
494 | ||
495 | local mr = math.rad | |
496 | local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180)) | |
497 | local cf = rarm.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz) | |
498 | magik2.CFrame = cf | |
499 | for i = 0, 1, .05 do | |
500 | local newTrans = lerp(0.5, 1, i) | |
501 | local ns = lerp(1,1.2,i) | |
502 | magik2.Transparency = newTrans | |
503 | magik2.Size = Vector3.new(ns,ns,ns) | |
504 | magik2.CFrame = cf | |
505 | rs:wait() | |
506 | end | |
507 | magik2:Destroy() | |
508 | elseif stanceToggle ~= "Melee" then | |
509 | wait() | |
510 | end | |
511 | end) | |
512 | end | |
513 | ---------------------------------------------------- | |
514 | function lerp(a, b, t) -- Linear interpolation | |
515 | return a + (b - a)*t | |
516 | end | |
517 | ||
518 | function slerp(a, b, t) --Spherical interpolation | |
519 | dot = a:Dot(b) | |
520 | if dot > 0.99999 or dot < -0.99999 then | |
521 | return t <= 0.5 and a or b | |
522 | else | |
523 | r = math.acos(dot) | |
524 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
525 | end | |
526 | end | |
527 | ||
528 | function matrixInterpolate(a, b, t) | |
529 | local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() | |
530 | local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() | |
531 | local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position | |
532 | local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right | |
533 | local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up | |
534 | local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back | |
535 | local t = v1:Dot(v2) | |
536 | if not (t < 0 or t == 0 or t > 0) then -- Failsafe | |
537 | return CFrame.new() | |
538 | end | |
539 | return CFrame.new( | |
540 | v0.x, v0.y, v0.z, | |
541 | v1.x, v1.y, v1.z, | |
542 | v2.x, v2.y, v2.z, | |
543 | v3.x, v3.y, v3.z) | |
544 | end | |
545 | ---------------------------------------------------- | |
546 | function genWeld(a,b) | |
547 | local w = Instance.new("Weld",a) | |
548 | w.Part0 = a | |
549 | w.Part1 = b | |
550 | return w | |
551 | end | |
552 | function weld(a, b) | |
553 | local weld = Instance.new("Weld") | |
554 | weld.Name = "W" | |
555 | weld.Part0 = a | |
556 | weld.Part1 = b | |
557 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
558 | weld.Parent = a | |
559 | return weld; | |
560 | end | |
561 | ---------------------------------------------------- | |
562 | function Lerp(c1,c2,al) | |
563 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
564 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
565 | for i,v in pairs(com1) do | |
566 | com1[i] = v+(com2[i]-v)*al | |
567 | end | |
568 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
569 | end | |
570 | ----------------------------------------------------[[Dissolve function]] | |
571 | function Dissolve(ret) | |
572 | ||
573 | ret.BrickColor = BrickColor.new("Really black") | |
574 | for i = 1, 10 do wait() | |
575 | for i,v in pairs(ret:GetChildren()) do | |
576 | if v:IsA("Part") or v:IsA("WedgePart") then | |
577 | v.Transparency = v.Transparency + 0.1 | |
578 | ||
579 | end | |
580 | end | |
581 | end | |
582 | ret:Destroy() | |
583 | end | |
584 | ||
585 | ---------------------------------------------------- | |
586 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
587 | local wld = Instance.new("Weld", wp1) | |
588 | wld.Part0 = wp0 | |
589 | wld.Part1 = wp1 | |
590 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
591 | end | |
592 | ---------------------------------------------------- | |
593 | newWeld(torso, larm, -1.5, 0.5, 0) | |
594 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
595 | newWeld(torso, rarm, 1.5, 0.5, 0) | |
596 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
597 | newWeld(torso, hed, 0, 1.5, 0) | |
598 | - | hum.WalkSpeed = 10 |
598 | + | |
599 | lleg.Weld.C1 = CFrame.new(0, 1, 0) | |
600 | newWeld(torso, rleg, 0.5, -1, 0) | |
601 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
602 | newWeld(root, torso, 0, -1, 0) | |
603 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
604 | ---------------------------------------------------- | |
605 | --local SIDz = {"167985102, 163752916"}--181449739, 167161785, 148274436, 167985102, 163752916 | |
606 | z = Instance.new("Sound",char) --music | |
607 | z.SoundId = "rbxassetid://0"--..SIDz[math.random(1,#SIDz)] | |
608 | z.Looped = true | |
609 | z.Volume = 1 | |
610 | z.Pitch = .72 | |
611 | wait(1) | |
612 | z:Play() | |
613 | hum.WalkSpeed = 20 | |
614 | ||
615 | ||
616 | ||
617 | ||
618 | ||
619 | --[[partic = Instance.new("ParticleEmitter",hed) | |
620 | partic.Color = ColorSequence.new(Color3.new(15/225,0,225/45),Color3.new(20/255,0,205/255)) | |
621 | partic.LightEmission = .95 | |
622 | partic.VelocityInheritance = 0 | |
623 | partic.Rate = 300 | |
624 | partic.Texture = "rbxassetid:// 241650934" --56561915392079955 | |
625 | partic.Lifetime = NumberRange.new(0.1,0.2) | |
626 | partic.RotSpeed = NumberRange.new(100,100) | |
627 | partic.Speed = NumberRange.new(2,6) | |
628 | partic.Enabled = true | |
629 | partic.LockedToPart = true]] | |
630 | ||
631 | --Nah | |
632 | ||
633 | ---------------------------------------------------- | |
634 | ||
635 | ---------------------------------------------------- | |
636 | local m = Instance.new("Model") | |
637 | m.Name = "Genkadda" | |
638 | p1 = Instance.new("Part", m) | |
639 | p1.Material = "Metal" | |
640 | p1.BrickColor = BrickColor.new("Really black") | |
641 | p1.Name = "BladePart" | |
642 | p1.FormFactor = Enum.FormFactor.Symmetric | |
643 | p1.Size = Vector3.new(1, 1, 1) | |
644 | p1.CFrame = CFrame.new(103.003883, 10.755723, -7.61905956, 5.61699271e-005, -7.1823597e-006, 0.999998987, -0.984785616, -0.173714966, 3.55839729e-005, 0.173720747, -0.984761655, 5.9530139e-006) | |
645 | p1.CanCollide = false | |
646 | p1.Locked = true | |
647 | p1.Elasticity = 0 | |
648 | p1.BottomSurface = Enum.SurfaceType.Smooth | |
649 | p1.TopSurface = Enum.SurfaceType.Smooth | |
650 | b1 = Instance.new("BlockMesh", p1) | |
651 | b1.Name = "Mesh" | |
652 | b1.Scale = Vector3.new(0.299999923, 1, 0.120000005) | |
653 | p2 = Instance.new("Part", m) | |
654 | p2.Material = "Metal" | |
655 | p2.BrickColor = BrickColor.new("Really black") | |
656 | p2.FormFactor = Enum.FormFactor.Symmetric | |
657 | p2.Size = Vector3.new(1, 1, 1) | |
658 | p2.CFrame = CFrame.new(103.00399, 10.7255898, -6.52608919, 0.00135809346, 0.00169118668, -0.999996662, 0.965820193, 0.259168088, 0.0017684648, 0.259154975, -0.965800881, -0.00130418094) | |
659 | p2.CanCollide = false | |
660 | p2.Locked = true | |
661 | p2.Elasticity = 0 | |
662 | p2.BottomSurface = Enum.SurfaceType.Smooth | |
663 | p2.TopSurface = Enum.SurfaceType.Smooth | |
664 | b2 = Instance.new("BlockMesh", p2) | |
665 | b2.Name = "Mesh" | |
666 | b2.Scale = Vector3.new(0.099999927, 0.699999928, 0.099999927) | |
667 | p3 = Instance.new("Part", m) | |
668 | p3.Material = "Metal" | |
669 | p3.BrickColor = BrickColor.new("Really black") | |
670 | p3.FormFactor = Enum.FormFactor.Symmetric | |
671 | p3.Size = Vector3.new(1, 2, 1) | |
672 | p3.CFrame = CFrame.new(103.004028, 11.1456547, -6.819067, 1.43263023e-005, -2.88564479e-006, 0.999998987, -0.882936299, -0.469471544, -7.18829688e-006, 0.469469696, -0.882911503, 1.35099981e-005) | |
673 | p3.CanCollide = false | |
674 | p3.Locked = true | |
675 | p3.Elasticity = 0 | |
676 | p3.BottomSurface = Enum.SurfaceType.Smooth | |
677 | p3.TopSurface = Enum.SurfaceType.Smooth | |
678 | b3 = Instance.new("BlockMesh", p3) | |
679 | b3.Name = "Mesh" | |
680 | b3.Scale = Vector3.new(0.099999927, 0.699999928, 0.099999927) | |
681 | p4 = Instance.new("Part", m) | |
682 | p4.Material = "Metal" | |
683 | p4.BrickColor = BrickColor.new("Really black") | |
684 | p4.Name = "BladePart" | |
685 | p4.FormFactor = Enum.FormFactor.Symmetric | |
686 | p4.Size = Vector3.new(1, 1, 1) | |
687 | p4.CFrame = CFrame.new(103.003372, 10.965373, -6.66876507, 1.57370523e-005, -6.04354591e-006, 0.999996603, -0.965898931, -0.25886938, -7.14969246e-006, 0.258875549, -0.965874314, 1.58735529e-005) | |
688 | p4.CanCollide = false | |
689 | p4.Locked = true | |
690 | p4.Elasticity = 0 | |
691 | p4.BottomSurface = Enum.SurfaceType.Smooth | |
692 | p4.TopSurface = Enum.SurfaceType.Smooth | |
693 | b4 = Instance.new("BlockMesh", p4) | |
694 | b4.Name = "Mesh" | |
695 | b4.Scale = Vector3.new(0.299999923, 1, 0.120000005) | |
696 | p5 = Instance.new("Part", m) | |
697 | p5.Material = "Metal" | |
698 | p5.BrickColor = BrickColor.new("Really black") | |
699 | p5.Name = "Hilt" | |
700 | p5.FormFactor = Enum.FormFactor.Custom | |
701 | p5.Size = Vector3.new(1, 0.400000006, 1.60000014) | |
702 | p5.CFrame = CFrame.new(103.003395, 11.0653381, -6.1687479, -0.99999404, 5.54991711e-005, -0.000617815298, -0.000594727404, -0.000124425016, 0.999983907, 2.66434654e-005, 0.999962509, 0.000109782166) | |
703 | p5.CanCollide = false | |
704 | p5.Locked = true | |
705 | p5.BottomSurface = Enum.SurfaceType.Smooth | |
706 | p5.TopSurface = Enum.SurfaceType.Smooth | |
707 | b5 = Instance.new("BlockMesh", p5) | |
708 | b5.Name = "Mesh" | |
709 | b5.Scale = Vector3.new(0.299999923, 0.399999917, 0.799999952) | |
710 | p6 = Instance.new("Part", m) | |
711 | p6.Material = "Metal" | |
712 | p6.BrickColor = BrickColor.new("Really black") | |
713 | p6.Name = "Handle" | |
714 | p6.FormFactor = Enum.FormFactor.Custom | |
715 | p6.Size = Vector3.new(1.29999995, 1, 1) | |
716 | p6.CFrame = CFrame.new(103.000061, 11.0688219, -5.5480547, -1.23393656e-005, -1.36360759e-005, 0.999994218, 5.37017331e-006, 0.999984086, -9.45257489e-006, -0.999962509, -9.28580994e-006, 1.64470257e-005) | |
717 | p6.CanCollide = false | |
718 | p6.Locked = true | |
719 | p6.BottomSurface = Enum.SurfaceType.Smooth | |
720 | p6.TopSurface = Enum.SurfaceType.Smooth | |
721 | b6 = Instance.new("SpecialMesh", p6) | |
722 | b6.MeshType = Enum.MeshType.Cylinder | |
723 | b6.Name = "Mesh" | |
724 | b6.Scale = Vector3.new(1, 0.200000003, 0.200000003) | |
725 | p7 = Instance.new("Part", m) | |
726 | p7.Material = "Metal" | |
727 | p7.BrickColor = BrickColor.new("Really black") | |
728 | p7.FormFactor = Enum.FormFactor.Symmetric | |
729 | p7.Size = Vector3.new(1, 1, 1) | |
730 | p7.CFrame = CFrame.new(103.000099, 11.0688391, -4.79808855, -0.000332629686, 0.00429873355, -0.99998492, -4.5920292e-006, 0.999974728, 0.00432178052, 0.999962449, -8.49941443e-006, -0.000361445156) | |
731 | p7.CanCollide = false | |
732 | p7.Locked = true | |
733 | b7 = Instance.new("SpecialMesh", p7) | |
734 | b7.MeshId = "http://www.roblox.com/Asset/?id=9756362" | |
735 | b7.TextureId = "" | |
736 | b7.MeshType = Enum.MeshType.FileMesh | |
737 | b7.Name = "Mesh" | |
738 | b7.Scale = Vector3.new(0.400000006, 0.400000006, 0.400000006) | |
739 | p8 = Instance.new("Part", m) | |
740 | p8.Material = "Metal" | |
741 | p8.BrickColor = BrickColor.new("Really black") | |
742 | p8.Name = "BladePart" | |
743 | p8.FormFactor = Enum.FormFactor.Symmetric | |
744 | p8.Size = Vector3.new(1, 1, 1) | |
745 | p8.CFrame = CFrame.new(103.003326, 10.6254845, -8.59870911, -2.92104669e-005, -1.10579058e-005, 0.999994218, -0.996175766, -0.0871899351, -5.3152442e-005, 0.0872026458, -0.996152997, 2.03179661e-005) | |
746 | p8.CanCollide = false | |
747 | p8.Locked = true | |
748 | p8.Elasticity = 0 | |
749 | p8.BottomSurface = Enum.SurfaceType.Smooth | |
750 | p8.TopSurface = Enum.SurfaceType.Smooth | |
751 | b8 = Instance.new("BlockMesh", p8) | |
752 | b8.Name = "Mesh" | |
753 | b8.Scale = Vector3.new(0.299999923, 1, 0.120000005) | |
754 | p9 = Instance.new("Part", m) | |
755 | p9.Material = "Metal" | |
756 | p9.BrickColor = BrickColor.new("Really black") | |
757 | p9.Name = "BladePart" | |
758 | p9.FormFactor = Enum.FormFactor.Symmetric | |
759 | p9.Size = Vector3.new(1, 1, 1) | |
760 | p9.CFrame = CFrame.new(103.003311, 10.625597, -9.51878738, -2.59891603e-005, -1.34348729e-005, 0.999994218, -0.996185422, 0.087079078, -4.78096408e-005, -0.0870626047, -0.996165276, 1.31400229e-005) | |
761 | p9.CanCollide = false | |
762 | p9.Locked = true | |
763 | p9.Elasticity = 0 | |
764 | p9.BottomSurface = Enum.SurfaceType.Smooth | |
765 | p9.TopSurface = Enum.SurfaceType.Smooth | |
766 | b9 = Instance.new("BlockMesh", p9) | |
767 | b9.Name = "Mesh" | |
768 | b9.Scale = Vector3.new(0.299999923, 1, 0.120000005) | |
769 | p10 = Instance.new("Part", m) | |
770 | p10.Material = "Metal" | |
771 | p10.BrickColor = BrickColor.new("Really black") | |
772 | p10.Name = "BladeTip" | |
773 | p10.FormFactor = Enum.FormFactor.Symmetric | |
774 | p10.Size = Vector3.new(1, 1, 2) | |
775 | p10.CFrame = CFrame.new(103.00309, 11.1081867, -11.6109829, -0.999994099, -0.000455793255, 4.643387e-005, 0.00045133481, -0.965918779, -0.25878337, 0.000134008093, -0.258763671, 0.965901971) | |
776 | p10.CanCollide = false | |
777 | p10.Locked = true | |
778 | p10.Elasticity = 0 | |
779 | p10.BottomSurface = Enum.SurfaceType.Smooth | |
780 | p10.TopSurface = Enum.SurfaceType.Smooth | |
781 | b10 = Instance.new("SpecialMesh", p10) | |
782 | b10.MeshType = Enum.MeshType.Wedge | |
783 | b10.Name = "Mesh" | |
784 | b10.Scale = Vector3.new(0.119999997, 0.299999923, 0.699999928) | |
785 | p11 = Instance.new("Part", m) | |
786 | p11.Material = "Metal" | |
787 | p11.BrickColor = BrickColor.new("Really black") | |
788 | p11.Name = "BladePart" | |
789 | p11.FormFactor = Enum.FormFactor.Symmetric | |
790 | p11.Size = Vector3.new(1, 1, 1) | |
791 | p11.CFrame = CFrame.new(103.003296, 10.7956495, -10.4587727, 2.83485351e-005, -1.54050977e-005, 0.999994218, -0.96592474, 0.258761972, 8.27970416e-006, -0.258742362, -0.965907693, 2.1241216e-005) | |
792 | p11.CanCollide = false | |
793 | p11.Locked = true | |
794 | p11.Elasticity = 0 | |
795 | p11.BottomSurface = Enum.SurfaceType.Smooth | |
796 | p11.TopSurface = Enum.SurfaceType.Smooth | |
797 | b11 = Instance.new("BlockMesh", p11) | |
798 | b11.Name = "Mesh" | |
799 | b11.Scale = Vector3.new(0.299999923, 1, 0.120000005) | |
800 | p12 = Instance.new("Part", m) | |
801 | p12.Material = "Metal" | |
802 | p12.BrickColor = BrickColor.new("Really black") | |
803 | p12.Name = "BladeTip2" | |
804 | p12.FormFactor = Enum.FormFactor.Custom | |
805 | p12.Size = Vector3.new(1, 1, 2.4000001) | |
806 | p12.CFrame = CFrame.new(102.999977, 10.6319504, -10.4398403, -0.999994218, -5.5769262e-005, 6.55075928e-005, 4.61044419e-006, 0.882887006, 0.469551951, -0.000112806956, 0.469529003, -0.882874727) | |
807 | p12.CanCollide = false | |
808 | p12.Locked = true | |
809 | p12.Elasticity = 0 | |
810 | p12.BottomSurface = Enum.SurfaceType.Smooth | |
811 | p12.TopSurface = Enum.SurfaceType.Smooth | |
812 | b12 = Instance.new("SpecialMesh", p12) | |
813 | b12.MeshType = Enum.MeshType.Wedge | |
814 | b12.Name = "Mesh" | |
815 | b12.Scale = Vector3.new(0.119999997, 0.239999995, 0.699999928) | |
816 | p13 = Instance.new("Part", m) | |
817 | p13.Material = "Metal" | |
818 | p13.BrickColor = BrickColor.new("Medium stone grey") | |
819 | p13.Transparency = 1 | |
820 | p13.Name = "HitBox" | |
821 | p13.FormFactor = Enum.FormFactor.Custom | |
822 | p13.Size = Vector3.new(6.0999999, 0.400000006, 1.5999999) | |
823 | p13.CFrame = CFrame.new(103.009995, 10.9988394, -9.2679081, 1.22519814e-005, -0.999994218, 1.36361559e-005, -5.27501106e-006, 9.45320426e-006, -0.999984264, 0.999962687, -1.65344682e-005, 9.20891762e-006) | |
824 | p13.CanCollide = false | |
825 | p13.Locked = true | |
826 | p13.BottomSurface = Enum.SurfaceType.Smooth | |
827 | p13.TopSurface = Enum.SurfaceType.Smooth | |
828 | w1 = Instance.new("Weld", p1) | |
829 | w1.Name = "Part_Weld" | |
830 | w1.Part0 = p1 | |
831 | w1.C0 = CFrame.new(11.9124546, -5.63626003, -103.00383, 4.33940659e-005, -0.984795153, 0.173719674, 1.85460614e-009, -0.173719659, -0.984795094, 1, 4.27345876e-005, -7.53657105e-006) | |
832 | w1.Part1 = p2 | |
833 | w1.C1 = CFrame.new(-8.80891991, -9.26009178, 102.975845, 0.00136663229, 0.965830803, 0.259170175, 0.00170310249, 0.25916782, -0.965830863, -0.999997616, 0.00176132878, -0.00129072159) | |
834 | w2 = Instance.new("Weld", p2) | |
835 | w2.Name = "Part_Weld" | |
836 | w2.Part0 = p2 | |
837 | w2.C0 = CFrame.new(-8.80891991, -9.26009178, 102.975845, 0.00136663229, 0.965830803, 0.259170175, 0.00170310249, 0.25916782, -0.965830863, -0.999997616, 0.00176132878, -0.00129072159) | |
838 | w2.Part1 = p3 | |
839 | w2.C1 = CFrame.new(13.0439634, -0.78926897, -103.003448, -4.37113883e-008, -0.88294369, 0.469478935, 0, -0.469478935, -0.88294369, 1, -3.85946954e-008, 2.05215755e-008) | |
840 | w3 = Instance.new("Weld", p3) | |
841 | w3.Name = "BladePart_Weld" | |
842 | w3.Part0 = p3 | |
843 | w3.C0 = CFrame.new(13.0439634, -0.78926897, -103.003448, -4.37113883e-008, -0.88294369, 0.469478935, 0, -0.469478935, -0.88294369, 1, -3.85946954e-008, 2.05215755e-008) | |
844 | w3.Part1 = p4 | |
845 | w3.C1 = CFrame.new(12.3193283, -3.60437131, -103.003067, 2.38418579e-006, -0.965907753, 0.258877277, 0, -0.258874893, -0.965907753, 0.999997616, 0, 2.38418579e-006) | |
846 | w4 = Instance.new("Weld", p4) | |
847 | w4.Name = "Hilt_Weld" | |
848 | w4.Part0 = p4 | |
849 | w4.C0 = CFrame.new(12.3193283, -3.60437131, -103.003067, 2.38418579e-006, -0.965907753, 0.258877277, 0, -0.258874893, -0.965907753, 0.999997616, 0, 2.38418579e-006) | |
850 | w4.Part1 = p5 | |
851 | w4.C1 = CFrame.new(103.010277, 6.16758585, -11.003541, -0.999999821, -0.00060418935, 4.31301851e-005, 4.32021443e-005, -0.000119086159, 1, -0.000604184228, 0.999999821, 0.000119112243) | |
852 | w5 = Instance.new("Weld", p5) | |
853 | w5.Name = "Handle_Weld" | |
854 | w5.Part0 = p5 | |
855 | w5.C0 = CFrame.new(103.010277, 6.16758585, -11.003541, -0.999999821, -0.00060418935, 4.31301851e-005, 4.32021443e-005, -0.000119086159, 1, -0.000604184228, 0.999999821, 0.000119112243) | |
856 | w5.Part1 = p6 | |
857 | w5.C1 = CFrame.new(-5.54999733, -11.0699978, -103, -4.37113883e-008, 2.98366913e-008, -1, 0, 1, 2.98366913e-008, 1, 1.3042032e-015, -4.37113883e-008) | |
858 | w6 = Instance.new("Weld", p6) | |
859 | w6.Name = "Part_Weld" | |
860 | w6.Part0 = p6 | |
861 | w6.C0 = CFrame.new(-5.54999733, -11.0699978, -103, -4.37113883e-008, 2.98366913e-008, -1, 0, 1, 2.98366913e-008, 1, 1.3042032e-015, -4.37113883e-008) | |
862 | w6.Part1 = p7 | |
863 | w6.C1 = CFrame.new(4.83552647, -11.5140886, 102.949669, -0.000344927335, 7.4505806e-007, 0.99999994, 0.00431239465, 0.999990702, 7.4505806e-007, -0.999990642, 0.00431239465, -0.000344927335) | |
864 | w7 = Instance.new("Weld", p7) | |
865 | w7.Name = "BladePart_Weld" | |
866 | w7.Part0 = p7 | |
867 | w7.C0 = CFrame.new(4.83552647, -11.5140886, 102.949669, -0.000344927335, 7.4505806e-007, 0.99999994, 0.00431239465, 0.999990702, 7.4505806e-007, -0.999990642, 0.00431239465, -0.000344927335) | |
868 | w7.Part1 = p8 | |
869 | w7.C1 = CFrame.new(11.3406382, -7.6414094, -103.0028, -4.38670977e-005, -0.996191144, 0.0871966407, 1.91451011e-009, -0.0871966407, -0.996191144, 1, -4.36998489e-005, 3.82696771e-006) | |
870 | w8 = Instance.new("Weld", p8) | |
871 | w8.Name = "BladePart_Weld" | |
872 | w8.Part0 = p8 | |
873 | w8.C0 = CFrame.new(11.3406382, -7.6414094, -103.0028, -4.38670977e-005, -0.996191144, 0.0871966407, 1.91451011e-009, -0.0871966407, -0.996191144, 1, -4.36998489e-005, 3.82696771e-006) | |
874 | w8.Part1 = p9 | |
875 | w8.C1 = CFrame.new(9.76131344, -10.4100504, -103.002922, -3.85031162e-005, -0.996201694, -0.0870751292, 1.47589729e-009, 0.0870751366, -0.996201754, 1, -3.83570004e-005, -3.35119148e-006) | |
876 | w9 = Instance.new("Weld", p9) | |
877 | w9.Name = "BladeTip_Weld" | |
878 | w9.Part0 = p9 | |
879 | w9.C0 = CFrame.new(9.76131344, -10.4100504, -103.002922, -3.85031162e-005, -0.996201694, -0.0870751292, 1.47589729e-009, 0.0870751366, -0.996201754, 1, -3.83570004e-005, -3.35119148e-006) | |
880 | w9.Part1 = p10 | |
881 | w9.C1 = CFrame.new(102.999939, 7.7735939, 14.0892649, -0.999999881, 0.000441889424, 0.000150508567, -0.000465785735, -0.965935588, -0.258782327, 3.10284122e-005, -0.258782327, 0.965935647) | |
882 | w10 = Instance.new("Weld", p10) | |
883 | w10.Name = "BladePart_Weld" | |
884 | w10.Part0 = p10 | |
885 | w10.C0 = CFrame.new(102.999939, 7.7735939, 14.0892649, -0.999999881, 0.000441889424, 0.000150508567, -0.000465785735, -0.965935588, -0.258782327, 3.10284122e-005, -0.258782327, 0.965935647) | |
886 | w10.Part1 = p11 | |
887 | w10.C1 = CFrame.new(7.72030354, -12.8984127, -103.003448, 1.83585671e-005, -0.965941429, -0.258760989, 3.25545535e-010, 0.258760959, -0.96594137, 1, 1.77332167e-005, 4.7507956e-006) | |
888 | w11 = Instance.new("Weld", p11) | |
889 | w11.Name = "BladeTip2_Weld" | |
890 | w11.Part0 = p11 | |
891 | w11.C0 = CFrame.new(7.72030354, -12.8984127, -103.003448, 1.83585671e-005, -0.965941429, -0.258760989, 3.25545535e-010, 0.258760959, -0.96594137, 1, 1.77332167e-005, 4.7507956e-006) | |
892 | w11.Part1 = p12 | |
893 | w11.C1 = CFrame.new(102.999031, -4.47981405, -14.2206001, -1, -4.84334305e-006, -9.63198472e-005, -4.95036402e-005, 0.882903397, 0.469554722, 8.27668991e-005, 0.469554722, -0.882903397) | |
894 | w12 = Instance.new("Weld", p12) | |
895 | w12.Name = "HitBox_Weld" | |
896 | w12.Part0 = p12 | |
897 | w12.C0 = CFrame.new(102.999031, -4.47981405, -14.2206001, -1, -4.84334305e-006, -9.63198472e-005, -4.95036402e-005, 0.882903397, 0.469554722, 8.27668991e-005, 0.469554722, -0.882903397) | |
898 | w12.Part1 = p13 | |
899 | w12.C1 = CFrame.new(9.27000427, 103.009995, 10.9999933, -4.37113883e-008, -4.37113883e-008, 1, -1, 1.91068547e-015, -4.37113883e-008, 0, -1, -4.37113883e-008) | |
900 | w13 = Instance.new("Weld", p13) | |
901 | w13.Name = "Weld" | |
902 | w13.Part0 = p13 | |
903 | w13.C0 = CFrame.new(9.27000427, 103.009995, 10.9999933, -4.37113883e-008, -4.37113883e-008, 1, -1, 1.91068547e-015, -4.37113883e-008, 0, -1, -4.37113883e-008) | |
904 | m.Parent = char | |
905 | m:MakeJoints() | |
906 | ---------------------------------------------------- | |
907 | local cor = Instance.new("Part", char.Genkadda) | |
908 | cor.Name = "Thingy" | |
909 | cor.Locked = true | |
910 | cor.BottomSurface = 0 | |
911 | cor.CanCollide = false | |
912 | cor.Size = Vector3.new(1, 9, 1) | |
913 | cor.Transparency = 1 | |
914 | cor.TopSurface = 0 | |
915 | corw = Instance.new("Weld", cor) | |
916 | corw.Part0 = rarm | |
917 | corw.Part1 = cor | |
918 | corw.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(90)) | |
919 | corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
920 | weld1 = Instance.new("Weld", char.Genkadda) | |
921 | weld1.Part0 = cor | |
922 | weld1.Part1 = p6 | |
923 | weld1.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
924 | ---------------------------------------------------- Gauntlet | |
925 | ||
926 | m=Instance.new('Model',char) | |
927 | ||
928 | ||
929 | local function weldBetween(a, b) | |
930 | local weldd = Instance.new("ManualWeld") | |
931 | weldd.Part0 = a | |
932 | weldd.Part1 = b | |
933 | weldd.C0 = CFrame.new() | |
934 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
935 | weldd.Parent = a | |
936 | return weldd | |
937 | end | |
938 | ||
939 | it=Instance.new | |
940 | ||
941 | function nooutline(part) | |
942 | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 | |
943 | end | |
944 | ||
945 | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
946 | local fp=it("Part") | |
947 | fp.formFactor=formfactor | |
948 | fp.Parent=parent | |
949 | fp.Reflectance=reflectance | |
950 | fp.Transparency=transparency | |
951 | fp.CanCollide=false | |
952 | fp.Locked=true | |
953 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
954 | fp.Name=name | |
955 | fp.Size=size | |
956 | fp.Position=char.Torso.Position | |
957 | nooutline(fp) | |
958 | fp.Material=material | |
959 | fp:BreakJoints() | |
960 | return fp | |
961 | end | |
962 | ||
963 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
964 | local mesh=it(Mesh) | |
965 | mesh.Parent=part | |
966 | if Mesh=="SpecialMesh" then | |
967 | mesh.MeshType=meshtype | |
968 | mesh.MeshId=meshid | |
969 | end | |
970 | - | MN=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Lime green","Handle",Vector3.new(1.09732866, 2.19465828, 1.09732854)) |
970 | + | |
971 | mesh.Scale=scale | |
972 | - | TR7=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Lime green","TR7",Vector3.new(1.09732866, 0.274332285, 1.09732854)) |
972 | + | |
973 | end | |
974 | ||
975 | function weld(parent,part0,part1,c0,c1) | |
976 | local weld=it("Weld") | |
977 | weld.Parent=parent | |
978 | weld.Part0=part0 | |
979 | weld.Part1=part1 | |
980 | weld.C0=c0 | |
981 | weld.C1=c1 | |
982 | return weld | |
983 | end | |
984 | ||
985 | MN=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","Handle",Vector3.new(1.09732866, 2.19465828, 1.09732854)) | |
986 | MNweld=weld(m,char["Right Arm"],MN,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0323486328, -0.0509860516, -0.00120401382, -0.00500982394, 0.00520668458, 0.999973893, -0.00739898486, 0.999958873, -0.00524367485, -0.999960065, -0.00742506143, -0.0049710935)) | |
987 | TR7=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","TR7",Vector3.new(1.09732866, 0.274332285, 1.09732854)) | |
988 | TR7weld=weld(m,MN,TR7,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000442504883, 0.68581605, 0.000279426575, 1.00000381, 0.000690042973, -0.000169841573, 0.000690029934, -0.999999702, -0.000261242967, -0.000170052983, 0.000261111214, -1.00000393)) | |
989 | mesh("SpecialMesh",TR7,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1.02999997, 1.02999997)) | |
990 | MD9=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","MD9",Vector3.new(1.09732866, 0.266768783, 1.09732854)) | |
991 | MD9weld=weld(m,MN,MD9,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.741846681, 0.199262142, 1.00000405, -6.92205504e-06, 0.000154254027, 4.65649646e-05, 0.965939224, -0.25876984, -0.000147186685, 0.258768767, 0.965943158)) | |
992 | mesh("SpecialMesh",MD9,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.01999998, 0.411340922, 1.01999998)) | |
993 | MD1=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","MD1",Vector3.new(0.237408489, 0.259352177, 0.518704116)) | |
994 | MD1weld=weld(m,MN,MD1,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.402763367, -0.974855185, 0.682875633, 0.99988991, -0.0150081124, -0.00168980728, 0.0149988253, 0.999872923, -0.00539785437, 0.00177063467, 0.00537188631, 0.999988079)) | |
995 | mesh("SpecialMesh",MD1,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1.00999999, 1.00999999)) | |
996 | MD10=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","MD10",Vector3.new(1.09732866, 0.274332285, 1.09732854)) | |
997 | MD10weld=weld(m,MN,MD10,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.28881836e-05, -0.960148811, -0.000584125519, 1.00000811, -2.88709998e-08, 3.02679837e-08, -2.93366611e-08, 0.99999994, 1.36606104e-08, 3.0733645e-08, 1.3564204e-08, 1.00000799)) | |
998 | mesh("SpecialMesh",MD10,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 1.00999999, 1.00999999)) | |
999 | MD11=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","MD11",Vector3.new(0.266768694, 1.09732914, 0.658397138)) | |
1000 | MD11weld=weld(m,MN,MD11,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.493839264, -0.274354219, 4.24385071e-05, 1.00000811, -2.88709998e-08, 3.02679837e-08, -2.93366611e-08, 0.99999994, 1.36606104e-08, 3.0733645e-08, 1.3564204e-08, 1.00000799)) | |
1001 | mesh("SpecialMesh",MD11,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.415454358, 1, 1.00999999)) | |
1002 | MD12=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","MD12",Vector3.new(0.266768694, 1.09732914, 0.658397138)) | |
1003 | MD12weld=weld(m,MN,MD12,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.493812561, -0.274300575, -0.000376224518, 1.00000811, -2.88709998e-08, 3.02679837e-08, -2.93366611e-08, 0.99999994, 1.36606104e-08, 3.0733645e-08, 1.3564204e-08, 1.00000799)) | |
1004 | mesh("SpecialMesh",MD12,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.415454358, 1, 1.00999999)) | |
1005 | MD13=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","MD13",Vector3.new(1.09732866, 0.822996795, 1.09732854)) | |
1006 | MD13weld=weld(m,MN,MD13,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.90734863e-05, 0.68582201, 0.000464439392, 1.00000811, -2.88709998e-08, 3.02679837e-08, -2.93366611e-08, 0.99999994, 1.36606104e-08, 3.0733645e-08, 1.3564204e-08, 1.00000799)) | |
1007 | mesh("SpecialMesh",MD13,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 1.00999999, 1.00999999)) | |
1008 | MD14=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","MD14",Vector3.new(1.09732866, 0.266768783, 1.09732854)) | |
1009 | MD14weld=weld(m,MN,MD14,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.90734863e-05, 0.603547096, 0.000416755676, 1.00000811, -2.88709998e-08, 3.02679837e-08, -2.93366611e-08, 0.99999994, 1.36606104e-08, 3.0733645e-08, 1.3564204e-08, 1.00000799)) | |
1010 | mesh("SpecialMesh",MD14,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.04999995, 0.411340922, 1.04999995)) | |
1011 | MD15=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","MD15",Vector3.new(1.09732866, 0.274332285, 1.09732854)) | |
1012 | MD15weld=weld(m,MN,MD15,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-05, 0.137180567, -4.529953e-05, -1.0000037, -0.000862163957, 0.000179466791, -0.000862103421, 0.999999523, 0.000520790287, -0.000179945491, 0.000520619913, -1.00000381)) | |
1013 | mesh("SpecialMesh",MD15,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 1.00999999, 1.00999999)) | |
1014 | MD16=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","MD16",Vector3.new(1.09732866, 0.266768783, 1.09732854)) | |
1015 | MD16weld=weld(m,MN,MD16,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.86645508e-05, 0.932742357, 0.000658988953, 1.00000811, -2.88709998e-08, 3.02679837e-08, -2.93366611e-08, 0.99999994, 1.36606104e-08, 3.0733645e-08, 1.3564204e-08, 1.00000799)) | |
1016 | mesh("SpecialMesh",MD16,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.04999995, 0.411340922, 1.04999995)) | |
1017 | MD19=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","MD19",Vector3.new(1.09732866, 0.274332285, 1.09732854)) | |
1018 | MD19weld=weld(m,MN,MD19,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000442504883, 0.68581605, 0.000279426575, 1.00000381, 0.000690042973, -0.000169841573, 0.000690029934, -0.999999702, -0.000261242967, -0.000170052983, 0.000261111214, -1.00000393)) | |
1019 | mesh("SpecialMesh",MD19,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.5, 1.01999998, 1.01999998)) | |
1020 | MD18=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","MD18",Vector3.new(1.09732866, 0.266768783, 1.09732854)) | |
1021 | MD18weld=weld(m,MN,MD18,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.52587891e-05, -0.246893644, -0.00013256073, 1.00000811, -2.88709998e-08, 3.02679837e-08, -2.93366611e-08, 0.99999994, 1.36606104e-08, 3.0733645e-08, 1.3564204e-08, 1.00000799)) | |
1022 | mesh("SpecialMesh",MD18,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.01999998, 0.411340922, 1.01999998)) | |
1023 | MD2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","MD2",Vector3.new(0.2574085, 0.259352177, 0.518704116)) | |
1024 | MD2weld=weld(m,MN,MD2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.392555237, -0.573539257, 1.09872949, 0.999886394, -0.0152528733, -0.00162532134, 0.0119883548, 0.710953057, 0.70314008, -0.00956933573, -0.703074038, 0.71105516)) | |
1025 | mesh("SpecialMesh",MD2,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1.00999999, 1.00999999)) | |
1026 | MD3=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","MD3",Vector3.new(0.247408509, 0.259352177, 0.518704116)) | |
1027 | MD3weld=weld(m,MN,MD3,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.397964478, -0.817667723, 0.487944126, 0.999890864, -0.0149886403, -0.00193861127, 0.0139457425, 0.964460015, -0.263861924, 0.00582473399, 0.26380372, 0.964563668)) | |
1028 | mesh("SpecialMesh",MD3,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1.00999999, 1.00999999)) | |
1029 | - | TR1=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Lime green","TR1",Vector3.new(0.266768694, 0.54866457, 0.548664272)) |
1029 | + | |
1030 | MD4weld=weld(m,MN,MD4,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.422103882, -0.82026124, 0.507567406, 0.999890864, -0.0149886403, -0.00193861127, 0.0139457425, 0.964460015, -0.263861924, 0.00582473399, 0.26380372, 0.964563668)) | |
1031 | mesh("SpecialMesh",MD4,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1.00999999, 1.00999999)) | |
1032 | - | TR2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Lime green","TR2",Vector3.new(1.09732866, 0.266768783, 1.09732854)) |
1032 | + | |
1033 | MD5weld=weld(m,MN,MD5,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.427509308, -0.557831764, 1.11046171, 0.999886394, -0.0152528733, -0.00162532134, 0.0119883548, 0.710953057, 0.70314008, -0.00956933573, -0.703074038, 0.71105516)) | |
1034 | mesh("SpecialMesh",MD5,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1.00999999, 1.00999999)) | |
1035 | - | TR3=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Lime green","TR3",Vector3.new(1.09732866, 0.266768783, 1.09732854)) |
1035 | + | |
1036 | MD6weld=weld(m,MN,MD6,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.417263031, -0.972257376, 0.702233315, 0.99988991, -0.0150081124, -0.00168980728, 0.0149988253, 0.999872923, -0.00539785437, 0.00177063467, 0.00537188631, 0.999988079)) | |
1037 | mesh("SpecialMesh",MD6,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1.00999999, 1.00999999)) | |
1038 | - | TR4=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Lime green","TR4",Vector3.new(1.09732866, 0.266768783, 1.09732854)) |
1038 | + | |
1039 | MD7weld=weld(m,MN,MD7,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000442504883, 0.68581605, 0.000279426575, 1.00000381, 0.000690042973, -0.000169841573, 0.000690029934, -0.999999702, -0.000261242967, -0.000170052983, 0.000261111214, -1.00000393)) | |
1040 | mesh("SpecialMesh",MD7,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 1.00999999, 1.00999999)) | |
1041 | - | TR5=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Lime green","TR5",Vector3.new(1.09732866, 0.274332285, 1.09732854)) |
1041 | + | |
1042 | MD8weld=weld(m,MN,MD8,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.28881836e-05, -0.960148811, -0.000584125519, 1.00000811, -2.88709998e-08, 3.02679837e-08, -2.93366611e-08, 0.99999994, 1.36606104e-08, 3.0733645e-08, 1.3564204e-08, 1.00000799)) | |
1043 | mesh("SpecialMesh",MD8,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.5, 1.01999998, 1.01999998)) | |
1044 | - | TR6=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Lime green","TR6",Vector3.new(1.09732866, 0.266768783, 1.09732854)) |
1044 | + | TR1=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","TR1",Vector3.new(0.266768694, 0.54866457, 0.548664272)) |
1045 | TR1weld=weld(m,MN,TR1,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.548826218, 0.30154109, 4.57763672e-05, -0.000205519143, -0.0001726388, -1, -4.31765802e-05, 1, -0.00017263052, 1, 4.314119e-05, -0.000205526594)) | |
1046 | mesh("SpecialMesh",TR1,Enum.MeshType.Cylinder,"",Vector3.new(0, 0, 0),Vector3.new(0.415454358, 0.700000048, 0.700000048)) | |
1047 | TR2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","TR2",Vector3.new(1.09732866, 0.266768783, 1.09732854)) | |
1048 | TR2weld=weld(m,MN,TR2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.28881836e-05, 0.741921067, 0.198978901, 1.00000405, -2.92747281e-05, -1.7457176e-05, 2.37242784e-05, 0.965939343, -0.258769363, 2.44602561e-05, 0.25876832, 0.965943277)) | |
1049 | mesh("SpecialMesh",TR2,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.02999997, 0.0822681859, 1.02999997)) | |
1050 | TR3=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","TR3",Vector3.new(1.09732866, 0.266768783, 1.09732854)) | |
1051 | - | --[[TG1=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Lime green","Handle",Vector3.new(0.231713057, 0.953130603, 0.953130603)) |
1051 | + | |
1052 | mesh("SpecialMesh",TR3,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.05999994, 0.0822681859, 1.05999994)) | |
1053 | TR4=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","TR4",Vector3.new(1.09732866, 0.266768783, 1.09732854)) | |
1054 | TR4weld=weld(m,MN,TR4,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000106811523, 0.93274045, 0.000304222107, 1.00000787, -8.63452442e-05, -2.6775524e-07, 8.62879679e-05, 1, -2.05411197e-07, 2.68686563e-07, 2.3024586e-07, 1.00000775)) | |
1055 | mesh("SpecialMesh",TR4,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.05999994, 0.0822681859, 1.05999994)) | |
1056 | TR5=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","TR5",Vector3.new(1.09732866, 0.274332285, 1.09732854)) | |
1057 | TR5weld=weld(m,MN,TR5,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.28881836e-05, -0.960148811, -0.000584125519, 1.00000811, -2.88709998e-08, 3.02679837e-08, -2.93366611e-08, 0.99999994, 1.36606104e-08, 3.0733645e-08, 1.3564204e-08, 1.00000799)) | |
1058 | mesh("SpecialMesh",TR5,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 1.02999997, 1.02999997)) | |
1059 | TR6=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Toothpaste","TR6",Vector3.new(1.09732866, 0.266768783, 1.09732854)) | |
1060 | TR6weld=weld(m,MN,TR6,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.52587891e-05, -0.246893644, -0.00013256073, 1.00000811, -2.88709998e-08, 3.02679837e-08, -2.93366611e-08, 0.99999994, 1.36606104e-08, 3.0733645e-08, 1.3564204e-08, 1.00000799)) | |
1061 | mesh("SpecialMesh",TR6,Enum.MeshType.Brick,"",Vector3.new(0, 0, 0),Vector3.new(1.02999997, 0.0822681859, 1.02999997)) | |
1062 | - | edit(TR1,"Neon","Lime green") |
1062 | + | |
1063 | - | edit(TR2,"Neon","Lime green") |
1063 | + | |
1064 | - | edit(TR3,"Neon","Lime green") |
1064 | + | |
1065 | - | edit(TR4,"Neon","Lime green") |
1065 | + | |
1066 | - | edit(TR5,"Neon","Lime green") |
1066 | + | --[[TG1=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Toothpaste","Handle",Vector3.new(0.231713057, 0.953130603, 0.953130603)) |
1067 | - | edit(TR6,"Neon","Lime green") |
1067 | + | |
1068 | - | edit(TR7,"Neon","Lime green") |
1068 | + | |
1069 | - | edit(MN,"Neon","Lime green") |
1069 | + | |
1070 | ||
1071 | local edit = function(name,mat,col) | |
1072 | name.Material = mat | |
1073 | name.BrickColor = BrickColor.new(col) | |
1074 | end | |
1075 | - | edit(TR1,"Neon","Lime green") |
1075 | + | |
1076 | - | edit(TR2,"Neon","Lime green") |
1076 | + | |
1077 | - | edit(TR3,"Neon","Lime green") |
1077 | + | edit(TR1,"Neon","Toothpaste") |
1078 | - | edit(TR4,"Neon","Lime green") |
1078 | + | edit(TR2,"Neon","Toothpaste") |
1079 | - | edit(TR5,"Neon","Lime green") |
1079 | + | edit(TR3,"Neon","Toothpaste") |
1080 | - | edit(TR6,"Neon","Lime green") |
1080 | + | edit(TR4,"Neon","Toothpaste") |
1081 | - | edit(TR7,"Neon","Lime green") |
1081 | + | edit(TR5,"Neon","Toothpaste") |
1082 | - | edit(MN,"Neon","Lime green") |
1082 | + | edit(TR6,"Neon","Toothpaste") |
1083 | edit(TR7,"Neon","Toothpaste") | |
1084 | edit(MN,"Neon","Toothpaste") | |
1085 | -- | |
1086 | ||
1087 | ||
1088 | end | |
1089 | local light = function() | |
1090 | edit(TR1,"Neon","Toothpaste") | |
1091 | edit(TR2,"Neon","Toothpaste") | |
1092 | edit(TR3,"Neon","Toothpaste") | |
1093 | edit(TR4,"Neon","Toothpaste") | |
1094 | edit(TR5,"Neon","Toothpaste") | |
1095 | edit(TR6,"Neon","Toothpaste") | |
1096 | edit(TR7,"Neon","Toothpaste") | |
1097 | edit(MN,"Neon","Toothpaste") | |
1098 | -- | |
1099 | ||
1100 | end | |
1101 | ||
1102 | ||
1103 | dark() | |
1104 | ||
1105 | --Messy | |
1106 | ||
1107 | ---------------------------------------------------- | |
1108 | function Vanish() | |
1109 | for i = 1, 10 do wait() | |
1110 | for i,v in pairs(char.Genkadda:GetChildren()) do | |
1111 | if v:IsA("Part") or v:IsA("WedgePart") then | |
1112 | if v.Name ~= "HitBox" or v.Name ~= "Thingy" then | |
1113 | v.Transparency = v.Transparency + 0.1 | |
1114 | end | |
1115 | end | |
1116 | end | |
1117 | end | |
1118 | end | |
1119 | ---------------------------------------------------- | |
1120 | function Appear() | |
1121 | for i = 1, 10 do wait() | |
1122 | for i,v in pairs(char.Genkadda:GetChildren()) do | |
1123 | if v:IsA("Part") or v:IsA("WedgePart") then | |
1124 | if v.Name ~= "HitBox" or v.Name ~= "Thingy" then | |
1125 | v.Transparency = v.Transparency - 0.1 | |
1126 | end | |
1127 | end | |
1128 | end | |
1129 | end | |
1130 | end | |
1131 | ---------------------------------------------------- | |
1132 | local player = game.Players.LocalPlayer | |
1133 | local pchar = player.Character | |
1134 | local mouse = player:GetMouse() | |
1135 | local cam = workspace.CurrentCamera | |
1136 | ||
1137 | local rad = math.rad | |
1138 | ||
1139 | local keysDown = {} | |
1140 | local flySpeed = 0 | |
1141 | local MAX_FLY_SPEED = 150 | |
1142 | ||
1143 | local canFly = false | |
1144 | local flyToggled = false | |
1145 | ||
1146 | local forward, side = 0, 0 | |
1147 | local lastForward, lastSide = 0, 0 | |
1148 | ||
1149 | local floatBP = Instance.new("BodyPosition") | |
1150 | floatBP.maxForce = Vector3.new(0, math.huge, 0) | |
1151 | local flyBV = Instance.new("BodyVelocity") | |
1152 | flyBV.maxForce = Vector3.new(9e9, 9e9, 9e9) | |
1153 | local turnBG = Instance.new("BodyGyro") | |
1154 | turnBG.maxTorque = Vector3.new(math.huge, math.huge, math.huge) | |
1155 | ||
1156 | mouse.KeyDown:connect(function(key) | |
1157 | keysDown[key] = true | |
1158 | ||
1159 | if key == "f" then | |
1160 | flyToggled = not flyToggled | |
1161 | ||
1162 | if not flyToggled then | |
1163 | stanceToggle = "Normal" | |
1164 | floatBP.Parent = nil | |
1165 | flyBV.Parent = nil | |
1166 | turnBG.Parent = nil | |
1167 | root.Velocity = Vector3.new() | |
1168 | pchar.Humanoid.PlatformStand = false | |
1169 | end | |
1170 | end | |
1171 | ||
1172 | end) | |
1173 | mouse.KeyUp:connect(function(key) | |
1174 | keysDown[key] = nil | |
1175 | end) | |
1176 | ||
1177 | local function updateFly() | |
1178 | ||
1179 | if not flyToggled then return end | |
1180 | ||
1181 | lastForward = forward | |
1182 | lastSide = side | |
1183 | ||
1184 | forward = 0 | |
1185 | side = 0 | |
1186 | ||
1187 | if keysDown.w then | |
1188 | forward = forward + 1 | |
1189 | end | |
1190 | if keysDown.s then | |
1191 | forward = forward - 1 | |
1192 | end | |
1193 | if keysDown.a then | |
1194 | side = side - 1 | |
1195 | end | |
1196 | if keysDown.d then | |
1197 | side = side + 1 | |
1198 | end | |
1199 | ||
1200 | ||
1201 | canFly = (forward ~= 0 or side ~= 0) | |
1202 | ||
1203 | if canFly then | |
1204 | stanceToggle = "Floating" | |
1205 | turnBG.Parent = root | |
1206 | floatBP.Parent = nil | |
1207 | flyBV.Parent = root | |
1208 | ||
1209 | flySpeed = flySpeed + 1 + (flySpeed / MAX_FLY_SPEED) | |
1210 | if flySpeed > MAX_FLY_SPEED then flySpeed = MAX_FLY_SPEED end | |
1211 | else | |
1212 | floatBP.position = root.Position | |
1213 | floatBP.Parent = root | |
1214 | ||
1215 | flySpeed = flySpeed - 1 | |
1216 | if flySpeed < 0 then flySpeed = 0 end | |
1217 | end | |
1218 | ||
1219 | local camCF = cam.CoordinateFrame | |
1220 | local in_forward = canFly and forward or lastForward | |
1221 | local in_side = canFly and side or lastSide | |
1222 | ||
1223 | flyBV.velocity = ((camCF.lookVector * in_forward) + (camCF * CFrame.new(in_side, | |
1224 | in_forward * 0.2, 0).p) - camCF.p) * flySpeed | |
1225 | ||
1226 | turnBG.cframe = camCF * CFrame.Angles(-rad(forward * (flySpeed / MAX_FLY_SPEED)), 0, | |
1227 | 0) | |
1228 | end | |
1229 | - | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(20,25)) |
1229 | + | |
1230 | game:service'RunService'.RenderStepped:connect(function() | |
1231 | if flyToggled then | |
1232 | pchar.Humanoid.PlatformStand = true | |
1233 | end | |
1234 | updateFly() | |
1235 | end) | |
1236 | ---------------------------------------------------- | |
1237 | p13.Touched:connect(function(ht) | |
1238 | hit = ht.Parent | |
1239 | if ht and hit:IsA("Model") then | |
1240 | - | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(20,25)) |
1240 | + | |
1241 | if hit.Name ~= p.Name then | |
1242 | if Debounces.Slashing == true and Debounces.Slashed == false then | |
1243 | Debounces.Slashed = true | |
1244 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(200,250)) | |
1245 | wait(.3) | |
1246 | Debounces.Slashed = false | |
1247 | end | |
1248 | end | |
1249 | end | |
1250 | elseif ht and hit:IsA("Hat") then | |
1251 | if hit.Parent.Name ~= p.Name then | |
1252 | if hit.Parent:FindFirstChild("Humanoid") then | |
1253 | if Debounces.Slashing == true and Debounces.Slashed == false then | |
1254 | Debounces.Slashed = true | |
1255 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(2000,10000)) | |
1256 | wait(.3) | |
1257 | Debounces.Slashed = false | |
1258 | end | |
1259 | end | |
1260 | end | |
1261 | end | |
1262 | end) | |
1263 | ---------------------------------------------------- | |
1264 | local ptz = {0.7, 0.8, 0.9, 1} | |
1265 | ptz2 = {1.5, 1.6, 1.7, 1.8, 1.9, 2} | |
1266 | idz = {"161006212", "161006195"} | |
1267 | mouse.KeyDown:connect(function(key) | |
1268 | if key == "q" then | |
1269 | if Debounces.CanAttack == true then | |
1270 | Debounces.CanAttack = false | |
1271 | Debounces.NoIdl = true | |
1272 | Debounces.on = true | |
1273 | ||
1274 | if holy == true then | |
1275 | for i = 1, 8 do | |
1276 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad (60),math.rad(70),math.rad(70)), 0.2) | |
1277 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0) *CFrame.Angles(math.rad(-20),math.rad(0),math.rad (-40)), 0.2) | |
1278 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(-50), math.rad(0)), 0.2) | |
1279 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(-.4, -1, 0) * CFrame.Angles(math.rad(0), math.rad(70), math.rad(0)), 0.2) | |
1280 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(-10), 0, math.rad(-10)), 0.2) | |
1281 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(10), 0, math.rad(10)), 0.2) | |
1282 | if Debounces.on == false then break end | |
1283 | rs:wait(2) | |
1284 | end | |
1285 | else | |
1286 | for i = 1, 20 do | |
1287 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad (60),math.rad(70),math.rad(70)), 0.2) | |
1288 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0) *CFrame.Angles(math.rad(-20),math.rad(0),math.rad (-40)), 0.2) | |
1289 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(-50), math.rad(0)), 0.2) | |
1290 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(-.4, -1, 0) * CFrame.Angles(math.rad(0), math.rad(70), math.rad(0)), 0.2) | |
1291 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(-10), 0, math.rad(-10)), 0.2) | |
1292 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(10), 0, math.rad(10)), 0.2) | |
1293 | if Debounces.on == false then break end | |
1294 | rs:wait(2) | |
1295 | end | |
1296 | end | |
1297 | ||
1298 | z = Instance.new("Sound", hed) | |
1299 | z.SoundId = "rbxassetid://"..idz[math.random(1,#idz)] | |
1300 | z.Pitch = ptz[math.random(1,#ptz)] | |
1301 | z.Volume = 1 | |
1302 | wait(.01) | |
1303 | z:Play() | |
1304 | ||
1305 | if holy == true then | |
1306 | --so("http://roblox.com/asset/?id=231917788",hed,1,1.7) | |
1307 | so("http://roblox.com/asset/?id=200633077",hed,1,ptz2[math.random(1,#ptz2)]) | |
1308 | else | |
1309 | so("http://roblox.com/asset/?id=200633029",hed,1,ptz2[math.random(1,#ptz2)]) | |
1310 | end | |
1311 | ||
1312 | Debounces.Slashing = true | |
1313 | ||
1314 | if holy == true then | |
1315 | ||
1316 | for i = 1, 5 do | |
1317 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.65, 0) * CFrame.Angles(math.rad(-40),math.rad(-20),math.rad(40)), 0.3) | |
1318 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2, 0.65, -.3) * CFrame.Angles(math.rad(65),math.rad(-20),math.rad(30)), 0.3) | |
1319 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-9),math.rad(35), math.rad(0)), 0.3) | |
1320 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 1) * CFrame.Angles(math.rad(0), math.rad(-65), math.rad(0)), 0.3) | |
1321 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-10)), 0.3) | |
1322 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(10)), 0.3) | |
1323 | if Debounces.on == false then break end | |
1324 | rs:wait(2) | |
1325 | end | |
1326 | ||
1327 | else | |
1328 | ||
1329 | for i = 1, 20 do | |
1330 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.65, 0) * CFrame.Angles(math.rad(-40),math.rad(-20),math.rad(40)), 0.3) | |
1331 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2, 0.65, -.3) * CFrame.Angles(math.rad(65),math.rad(-20),math.rad(30)), 0.3) | |
1332 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-9),math.rad(35), math.rad(0)), 0.3) | |
1333 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 1) * CFrame.Angles(math.rad(0), math.rad(-65), math.rad(0)), 0.3) | |
1334 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-10)), 0.3) | |
1335 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(10)), 0.3) | |
1336 | if Debounces.on == false then break end | |
1337 | rs:wait(2) | |
1338 | end | |
1339 | ||
1340 | end | |
1341 | z1 = Instance.new("Sound", hed) | |
1342 | z1.SoundId = "rbxassetid://"..idz[math.random(1,#idz)] | |
1343 | z1.Pitch = ptz[math.random(1,#ptz)] | |
1344 | z1.Volume = 1 | |
1345 | wait(.01) | |
1346 | z1:Play() | |
1347 | ||
1348 | if holy == true then | |
1349 | --so("http://roblox.com/asset/?id=231917788",hed,1,1.7) | |
1350 | so("http://roblox.com/asset/?id=200633077",hed,1,ptz2[math.random(1,#ptz2)]) | |
1351 | else | |
1352 | so("http://roblox.com/asset/?id=200633029",hed,1,ptz2[math.random(1,#ptz2)]) | |
1353 | end | |
1354 | ||
1355 | ||
1356 | ||
1357 | ||
1358 | Debounces.Slashing = true | |
1359 | for i = 1, 26 do | |
1360 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad (90),math.rad(-40),math.rad(80)), 0.35) | |
1361 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad (- 70)), 0.35) | |
1362 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(-90), math.rad(0)), 0.35) | |
1363 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -1) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.35) | |
1364 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(-10), 0, math.rad(-10)), 0.35) | |
1365 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(10), 0, math.rad(10)), 0.35) | |
1366 | cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles (math.rad(0), math.rad(-30), math.rad(0)), 0.35) | |
1367 | if Debounces.on == false then break end | |
1368 | rs:wait(2) | |
1369 | end | |
1370 | ||
1371 | Debounces.Slashing = false | |
1372 | z:Destroy() | |
1373 | z1:Destroy() | |
1374 | cor.Weld.C1 = CFrame.Angles(0,0,0) | |
1375 | if Debounces.CanAttack == false then | |
1376 | Debounces.CanAttack = true | |
1377 | Debounces.NoIdl = false | |
1378 | Debounces.on = false | |
1379 | end | |
1380 | end | |
1381 | end | |
1382 | end) | |
1383 | ------------------------------- | |
1384 | pts = {4, 4.2, 4.4, 4.6, 4.8, 5, 5.2, 5.4} | |
1385 | mouse.KeyDown:connect(function(key) | |
1386 | if key == "e" then | |
1387 | if Debounces.CanAttack == true then | |
1388 | Debounces.CanAttack = false | |
1389 | Debounces.NoIdl = true | |
1390 | Debounces.on = true | |
1391 | Debounces.ks = true | |
1392 | larm.Touched:connect(function(ht) | |
1393 | hit = ht.Parent | |
1394 | if ht and hit:IsA("Model") then | |
1395 | if hit:FindFirstChild("Humanoid") then | |
1396 | if hit.Name ~= p.Name then | |
1397 | if Debounces.Slapping == true and Debounces.Slapped == false then | |
1398 | Debounces.Slapped = true | |
1399 | if Debounces.ks==true then | |
1400 | z = Instance.new("Sound",hed) | |
1401 | z.SoundId = "rbxassetid://169380525" | |
1402 | z.Volume = 1 | |
1403 | z:Play() | |
1404 | z1 = Instance.new("Sound",char) | |
1405 | z1.SoundId = "rbxassetid://261010715" | |
1406 | - | hit:FindFirstChild("Humanoid"):TakeDamage(10) |
1406 | + | |
1407 | z1.Volume = 1 | |
1408 | z2 = Instance.new("Sound",char) | |
1409 | z2.SoundId = "rbxassetid://261010715" | |
1410 | z2.Pitch = z1.Pitch | |
1411 | z2.Volume = 1 | |
1412 | z3 = Instance.new("Sound",char) | |
1413 | z3.SoundId = "rbxassetid://261010715" | |
1414 | z3.Pitch = z1.Pitch | |
1415 | z3.Volume = 1 | |
1416 | z1:Play() | |
1417 | z2:Play() | |
1418 | z3:Play() | |
1419 | Debounces.ks=false | |
1420 | end | |
1421 | hit:FindFirstChild("Humanoid"):TakeDamage(34819) | |
1422 | hit:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 90 | |
1423 | wait(.5) | |
1424 | Debounces.Slapped = false | |
1425 | z:Destroy() | |
1426 | z1:Destroy() | |
1427 | z2:Destroy() | |
1428 | z3:Destroy() | |
1429 | end | |
1430 | end | |
1431 | end | |
1432 | elseif ht and hit:IsA("Hat") then | |
1433 | if hit.Parent.Name ~= p.Name then | |
1434 | if hit.Parent:FindFirstChild("Humanoid") then | |
1435 | if Debounces.Slapping == true and Debounces.Slapped == false then | |
1436 | Debounces.Slapped = true | |
1437 | if Debounces.ks==true then | |
1438 | z = Instance.new("Sound",hed) | |
1439 | z.SoundId = "rbxassetid://169380525" | |
1440 | z.Volume = 1 | |
1441 | z:Play() | |
1442 | z1 = Instance.new("Sound",char) | |
1443 | z1.SoundId = "rbxassetid://261010715" | |
1444 | - | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(10) |
1444 | + | |
1445 | z1.Volume = 1 | |
1446 | z2 = Instance.new("Sound",char) | |
1447 | z2.SoundId = "rbxassetid://261010715" | |
1448 | z2.Pitch = z1.Pitch | |
1449 | z2.Volume = 1 | |
1450 | z3 = Instance.new("Sound",char) | |
1451 | z3.SoundId = "rbxassetid://261010715" | |
1452 | z3.Pitch = z1.Pitch | |
1453 | z3.Volume = 1 | |
1454 | z1:Play() | |
1455 | z2:Play() | |
1456 | z3:Play() | |
1457 | Debounces.ks=false | |
1458 | end | |
1459 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(10000) | |
1460 | wait(.5) | |
1461 | Debounces.Slapped = false | |
1462 | z:Destroy() | |
1463 | z1:Destroy() | |
1464 | z2:Destroy() | |
1465 | z3:Destroy() | |
1466 | end | |
1467 | end | |
1468 | end | |
1469 | end | |
1470 | end) | |
1471 | for i = 1, 14 do | |
1472 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3, 0.5, -.3) * CFrame.Angles(math.rad(50), 0, math.rad(40)), 0.5) | |
1473 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(40)), 0.5) | |
1474 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.5) | |
1475 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.5) | |
1476 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.5) | |
1477 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.5) | |
1478 | if Debounces.on==false then break end | |
1479 | rs:wait(2) | |
1480 | end | |
1481 | Debounces.Slapping = true | |
1482 | for i = 1, 20 do | |
1483 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3, 0.7, .3) * CFrame.Angles(math.rad(50), 0, math.rad(-110)), 0.6) | |
1484 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(40)), 0.6) | |
1485 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-70), math.rad(0)), 0.6) | |
1486 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(70), math.rad(0)), 0.6) | |
1487 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.6) | |
1488 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.6) | |
1489 | if Debounces.on==false then break end | |
1490 | rs:wait(2) | |
1491 | end | |
1492 | Debounces.Slapping = false | |
1493 | if Debounces.CanAttack == false then | |
1494 | Debounces.CanAttack = true | |
1495 | Debounces.NoIdl = false | |
1496 | Debounces.on = false | |
1497 | end | |
1498 | end | |
1499 | end | |
1500 | end) | |
1501 | ------------------------------- | |
1502 | ptz2 = {1.5, 1.6, 1.7, 1.8, 1.9, 2} | |
1503 | mouse.KeyDown:connect(function(key) | |
1504 | if key == "r" then | |
1505 | if Debounces.CanAttack == true then | |
1506 | Debounces.CanAttack = false | |
1507 | Debounces.NoIdl = true | |
1508 | Debounces.on = true | |
1509 | if holy ~= true then | |
1510 | for i = 1, 20 do | |
1511 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.1, 0.6, -.4) * CFrame.Angles(math.rad(130), 0, math.rad(40)), 0.3) | |
1512 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.1, 0.6, -.4) * CFrame.Angles(math.rad(130), 0, math.rad(-40)), 0.3) | |
1513 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), 0, 0), 0.3) | |
1514 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(50), 0, 0), 0.3) | |
1515 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, 0), 0.3) | |
1516 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.2, -.5) * CFrame.Angles(math.rad(-10), 0, 0), 0.3) | |
1517 | cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, -.2, 0) * CFrame.Angles (math.rad(40), math.rad(0), math.rad(0)), 0.35) | |
1518 | if Debounces.on==false then break end | |
1519 | rs:wait(2) | |
1520 | end | |
1521 | else | |
1522 | for i = 1, 10 do | |
1523 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.1, 0.6, -.4) * CFrame.Angles(math.rad(130), 0, math.rad(40)), 0.3) | |
1524 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.1, 0.6, -.4) * CFrame.Angles(math.rad(130), 0, math.rad(-40)), 0.3) | |
1525 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), 0, 0), 0.3) | |
1526 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(50), 0, 0), 0.3) | |
1527 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, 0), 0.3) | |
1528 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.2, -.5) * CFrame.Angles(math.rad(-10), 0, 0), 0.3) | |
1529 | cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, -.2, 0) * CFrame.Angles (math.rad(40), math.rad(0), math.rad(0)), 0.35) | |
1530 | if Debounces.on==false then break end | |
1531 | rs:wait(2) | |
1532 | end | |
1533 | end | |
1534 | Debounces.Slashing = true | |
1535 | ||
1536 | ||
1537 | ||
1538 | z = Instance.new("Sound",hed) | |
1539 | z.SoundId = "rbxassetid://206083107" | |
1540 | z.Pitch = .75 | |
1541 | z.Volume = .65 | |
1542 | wait(0.1) | |
1543 | z:Play() | |
1544 | z1 = Instance.new("Sound", hed) | |
1545 | z1.SoundId = "rbxassetid://"..idz[math.random(1,#idz)] | |
1546 | z1.Pitch = ptz[math.random(1,#ptz)] | |
1547 | z1.Volume = 1 | |
1548 | wait(.01) | |
1549 | z1:Play() | |
1550 | ||
1551 | if holy == true then | |
1552 | so("http://roblox.com/asset/?id=200633077",hed,1,ptz2[math.random(1,#ptz2)]) | |
1553 | else | |
1554 | so("http://roblox.com/asset/?id=200633029",hed,1,ptz2[math.random(1,#ptz2)]) | |
1555 | end | |
1556 | ||
1557 | if holy ~= true then | |
1558 | for i = 1, 20 do | |
1559 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.1, 0.6, -.4) * CFrame.Angles(math.rad(50), 0, math.rad(40)), 0.3) | |
1560 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.1, 0.6, -.4) * CFrame.Angles(math.rad(50), 0, math.rad(-40)), 0.3) | |
1561 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-30), 0, 0), 0.3) | |
1562 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(10), 0, 0), 0.3) | |
1563 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -.7) * CFrame.Angles(math.rad(20), 0, 0), 0.3) | |
1564 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-40), 0, 0), 0.3) | |
1565 | cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, -.2, 0) * CFrame.Angles (math.rad(40), math.rad(-20), math.rad(20)), 0.35) | |
1566 | if Debounces.on==false then break end | |
1567 | rs:wait(2) | |
1568 | end | |
1569 | else | |
1570 | for i = 1, 10 do | |
1571 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.1, 0.6, -.4) * CFrame.Angles(math.rad(50), 0, math.rad(40)), 0.3) | |
1572 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.1, 0.6, -.4) * CFrame.Angles(math.rad(50), 0, math.rad(-40)), 0.3) | |
1573 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-30), 0, 0), 0.3) | |
1574 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(10), 0, 0), 0.3) | |
1575 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -.7) * CFrame.Angles(math.rad(20), 0, 0), 0.3) | |
1576 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-40), 0, 0), 0.3) | |
1577 | cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, -.2, 0) * CFrame.Angles (math.rad(40), math.rad(-20), math.rad(20)), 0.35) | |
1578 | if Debounces.on==false then break end | |
1579 | rs:wait(2) | |
1580 | end | |
1581 | end | |
1582 | Debounces.Slashing = false | |
1583 | cor.Weld.C1 = CFrame.Angles(0,0,0) | |
1584 | if Debounces.CanAttack == false then | |
1585 | Debounces.CanAttack = true | |
1586 | Debounces.NoIdl = false | |
1587 | Debounces.on = false | |
1588 | end | |
1589 | end | |
1590 | end | |
1591 | end) | |
1592 | ------------------------------- | |
1593 | mouse.KeyDown:connect(function(key) | |
1594 | if key == "t" then | |
1595 | if Debounces.CanAttack == true then | |
1596 | Debounces.CanAttack = false | |
1597 | Debounces.on = true | |
1598 | Debounces.NoIdl = true | |
1599 | for i = 1,20 do | |
1600 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(0)), 0.2) | |
1601 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(0)), 0.2) | |
1602 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(0),0), 0.2) | |
1603 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, .4) * CFrame.Angles(math.rad(-20), math.rad(0), 0), 0.2) | |
1604 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(-10)), 0.2) | |
1605 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(10)), 0.2) | |
1606 | if Debounces.on==false then break end | |
1607 | rs:wait(2) | |
1608 | end | |
1609 | for i = 1,20 do | |
1610 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(0)), 0.2) | |
1611 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(0)), 0.2) | |
1612 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-20),math.rad(0),0), 0.2) | |
1613 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -.4) * CFrame.Angles(math.rad(20), math.rad(0), 0), 0.2) | |
1614 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(-10)), 0.2) | |
1615 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(10)), 0.2) | |
1616 | if Debounces.on==false then break end | |
1617 | rs:wait(2) | |
1618 | end | |
1619 | if Debounces.CanAttack == false then | |
1620 | Debounces.CanAttack = true | |
1621 | Debounces.on = false | |
1622 | Debounces.NoIdl = false | |
1623 | end | |
1624 | end | |
1625 | end | |
1626 | end) | |
1627 | ------------------------------- | |
1628 | local ptz3 = {0.5, 0.6, 0.7} | |
1629 | - | eColors = {"Lime green"} |
1629 | + | |
1630 | if key == "g" then | |
1631 | if Debounces.CanAttack == true then | |
1632 | Debounces.CanAttack = false | |
1633 | Debounces.NoIdl = true | |
1634 | Debounces.on = true | |
1635 | - | v.BrickColor = BrickColor.new("Lime green") |
1635 | + | |
1636 | ||
1637 | z = Instance.new("Sound", hed) | |
1638 | z.SoundId = "rbxassetid://"..idz[math.random(1,#idz)] | |
1639 | z.Pitch = ptz[math.random(1,#ptz)] | |
1640 | z.Volume = 1 | |
1641 | ||
1642 | ||
1643 | if holy == true then | |
1644 | eColors = {"Toothpaste"} | |
1645 | ||
1646 | ||
1647 | for i,v in pairs(char.Genkadda:GetChildren()) do | |
1648 | if v:IsA("Part") or v:IsA("WedgePart") then | |
1649 | if v.Name ~= "HitBox" or v.Name ~= "Thingy" then | |
1650 | v.BrickColor = BrickColor.new("Toothpaste") | |
1651 | v.Material = "Neon" | |
1652 | end | |
1653 | end | |
1654 | end | |
1655 | ||
1656 | ||
1657 | char.Humanoid.WalkSpeed = 50 | |
1658 | ||
1659 | GroundWave() | |
1660 | so("http://roblox.com/asset/?id=200633077",hed,1,ptz3[math.random(1,#ptz3)]) | |
1661 | so("http://www.roblox.com/asset/?id=241816017",hed,1,0.5) | |
1662 | so("http://www.roblox.com/asset/?id=241816017",hed,1,1) | |
1663 | ||
1664 | ||
1665 | else | |
1666 | so("http://roblox.com/asset/?id=200633029",hed,1,0.9) | |
1667 | end | |
1668 | ||
1669 | ||
1670 | for i = 1, 8 do | |
1671 | z:play() | |
1672 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-90)), 0.8) | |
1673 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(90)), 0.8) | |
1674 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, 0, 0), 0.8) | |
1675 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(0, 0, 0), 0.8) | |
1676 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.8) | |
1677 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.8) | |
1678 | if Debounces.on==false then break end | |
1679 | rs:wait(2) | |
1680 | end | |
1681 | for i = 1, 2880, 48 do | |
1682 | torso.Weld.C1 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(i), math.rad(0)) | |
1683 | rs:wait(4) | |
1684 | end | |
1685 | ||
1686 | ||
1687 | ||
1688 | ||
1689 | ||
1690 | ||
1691 | ||
1692 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
1693 | Debounces.Slashing = false | |
1694 | ||
1695 | if Debounces.CanAttack == false then | |
1696 | Debounces.CanAttack = true | |
1697 | Debounces.NoIdl = false | |
1698 | Debounces.on = false | |
1699 | ||
1700 | ||
1701 | ||
1702 | ||
1703 | char.Humanoid.WalkSpeed = 10 | |
1704 | ||
1705 | ||
1706 | end | |
1707 | ||
1708 | ||
1709 | ||
1710 | end | |
1711 | ||
1712 | ||
1713 | ||
1714 | end | |
1715 | ||
1716 | ||
1717 | end) | |
1718 | ---------------------------------------------------- | |
1719 | pt = {6.6, 6.8, 7, 7.2, 7.4} | |
1720 | mouse.KeyDown:connect(function(key) | |
1721 | if key == "l" then | |
1722 | if Debounces.CanJoke == true then | |
1723 | Debounces.CanJoke = false | |
1724 | u = Instance.new("Sound",char) | |
1725 | u.SoundId = "http://www.roblox.com/asset/?id=261303790" | |
1726 | u.Pitch = pt[math.random(1,#pt)] | |
1727 | u.Volume = 1 | |
1728 | u2 = Instance.new("Sound",char) | |
1729 | u2.SoundId = "http://www.roblox.com/asset/?id=261303790" | |
1730 | u2.Pitch = u.Pitch | |
1731 | u2.Volume = 1 | |
1732 | u3 = Instance.new("Sound",char) | |
1733 | u3.SoundId = "http://www.roblox.com/asset/?id=261303790" | |
1734 | u3.Pitch = u.Pitch | |
1735 | u3.Volume = 1 | |
1736 | wait(.01) | |
1737 | u:Play() | |
1738 | u2:Play() | |
1739 | u3:Play() | |
1740 | wait(1.5) | |
1741 | u:Destroy() | |
1742 | u2:Destroy() | |
1743 | u3:Destroy() | |
1744 | if Debounces.CanJoke == false then | |
1745 | Debounces.CanJoke = true | |
1746 | end | |
1747 | end | |
1748 | end | |
1749 | end) | |
1750 | ||
1751 | ------------------------------- BEGIN GRABPUNCH | |
1752 | mouse.KeyDown:connect(function(key) | |
1753 | if key == "x" then | |
1754 | Debounces.on = true | |
1755 | Debounces.NoIdl = true | |
1756 | Debounces.ks = true | |
1757 | if Grab == false then | |
1758 | gp = nil | |
1759 | ||
1760 | if Melee == false then | |
1761 | Melee = true | |
1762 | Vanish() | |
1763 | stanceToggle = "Melee" | |
1764 | elseif Melee == true then | |
1765 | Melee = false | |
1766 | Appear() | |
1767 | stanceToggle = "Normal" | |
1768 | end | |
1769 | ||
1770 | for i = 1, 20 do | |
1771 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.2) | |
1772 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.2) | |
1773 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.2) | |
1774 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) | |
1775 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(30), math.rad(-20)), 0.2) | |
1776 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-15), math.rad(20)), 0.2) | |
1777 | if Debounces.on == false then break end | |
1778 | rs:wait() | |
1779 | end | |
1780 | con1=larm.Touched:connect(function(hit) -- this is grab | |
1781 | ht = hit.Parent | |
1782 | hum1=ht:FindFirstChild('Humanoid') | |
1783 | if hum1 ~= nil then | |
1784 | if Debounces.ks==true then | |
1785 | z = Instance.new("Sound",hed) | |
1786 | z.SoundId = "rbxassetid://169380525" | |
1787 | z.Volume = 1 | |
1788 | z:Play() | |
1789 | Debounces.ks=false | |
1790 | end | |
1791 | hum1.PlatformStand=true | |
1792 | gp = ht | |
1793 | Grab = true | |
1794 | asd=weld5(root,ht:FindFirstChild("Torso"),CFrame.new(0,0,-2.4),CFrame.new(0,0,0)) | |
1795 | asd.Parent = larm | |
1796 | asd.Name = "asd" | |
1797 | asd.C0=asd.C0*CFrame.Angles(math.rad(0),math.rad(180),0) | |
1798 | --[[elseif hum1 == nil then | |
1799 | con1:disconnect() | |
1800 | wait() return]]-- | |
1801 | end | |
1802 | end) | |
1803 | for i = 1, 20 do | |
1804 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.2) | |
1805 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.2) | |
1806 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.2) | |
1807 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) | |
1808 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2) | |
1809 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.2) | |
1810 | if Debounces.on == false then break end | |
1811 | rs:wait() | |
1812 | end | |
1813 | if hum1 == nil then | |
1814 | Debounces.on = false | |
1815 | Debounces.NoIdl = false | |
1816 | end | |
1817 | con1:disconnect() | |
1818 | elseif Grab == true then | |
1819 | Grab = false | |
1820 | Punch() | |
1821 | z = Instance.new("Sound",hed) | |
1822 | z.SoundId = "rbxassetid://169380525" | |
1823 | z.Pitch = ptz[math.random(1,#ptz)] | |
1824 | z.Volume = 1 | |
1825 | z:Play() | |
1826 | for i = 1, 10 do | |
1827 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) | |
1828 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) | |
1829 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
1830 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
1831 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
1832 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
1833 | if Debounces.on == false then break end | |
1834 | rs:wait() | |
1835 | end | |
1836 | Punch() | |
1837 | z = Instance.new("Sound",hed) | |
1838 | z.SoundId = "rbxassetid://169380525" | |
1839 | z.Pitch = ptz[math.random(1,#ptz)] | |
1840 | z.Volume = 1 | |
1841 | z:Play() | |
1842 | for i = 1, 10 do | |
1843 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) | |
1844 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) | |
1845 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
1846 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
1847 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
1848 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
1849 | if Debounces.on == false then break end | |
1850 | rs:wait() | |
1851 | end | |
1852 | Punch() | |
1853 | z = Instance.new("Sound",hed) | |
1854 | z.SoundId = "rbxassetid://169380525" | |
1855 | z.Pitch = ptz[math.random(1,#ptz)] | |
1856 | z.Volume = 1 | |
1857 | z:Play() | |
1858 | for i = 1, 10 do | |
1859 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) | |
1860 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) | |
1861 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
1862 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
1863 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
1864 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
1865 | if Debounces.on == false then break end | |
1866 | rs:wait() | |
1867 | end | |
1868 | Punch() | |
1869 | z = Instance.new("Sound",hed) | |
1870 | z.SoundId = "rbxassetid://169380525" | |
1871 | z.Pitch = ptz[math.random(1,#ptz)] | |
1872 | z.Volume = 1 | |
1873 | z:Play() | |
1874 | for i = 1, 10 do | |
1875 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) | |
1876 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) | |
1877 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
1878 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
1879 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
1880 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
1881 | if Debounces.on == false then break end | |
1882 | rs:wait() | |
1883 | end | |
1884 | Punch() | |
1885 | z = Instance.new("Sound",hed) | |
1886 | z.SoundId = "rbxassetid://169380525" | |
1887 | z.Pitch = ptz[math.random(1,#ptz)] | |
1888 | z.Volume = 1 | |
1889 | z:Play() | |
1890 | for i = 1, 10 do | |
1891 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) | |
1892 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) | |
1893 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
1894 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
1895 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
1896 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
1897 | if Debounces.on == false then break end | |
1898 | rs:wait() | |
1899 | end | |
1900 | Punch() | |
1901 | z = Instance.new("Sound",hed) | |
1902 | z.SoundId = "rbxassetid://169380525" | |
1903 | z.Pitch = ptz[math.random(1,#ptz)] | |
1904 | z.Volume = 1 | |
1905 | z:Play() | |
1906 | for i = 1, 10 do | |
1907 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) | |
1908 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) | |
1909 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
1910 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
1911 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
1912 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
1913 | if Debounces.on == false then break end | |
1914 | rs:wait() | |
1915 | end | |
1916 | Punch() | |
1917 | z = Instance.new("Sound",hed) | |
1918 | z.SoundId = "rbxassetid://169380525" | |
1919 | z.Pitch = ptz[math.random(1,#ptz)] | |
1920 | z.Volume = 1 | |
1921 | z:Play() | |
1922 | for i = 1, 10 do | |
1923 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) | |
1924 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) | |
1925 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
1926 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
1927 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
1928 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
1929 | if Debounces.on == false then break end | |
1930 | rs:wait() | |
1931 | end | |
1932 | Punch() | |
1933 | z = Instance.new("Sound",hed) | |
1934 | z.SoundId = "rbxassetid://169380525" | |
1935 | z.Pitch = ptz[math.random(1,#ptz)] | |
1936 | z.Volume = 1 | |
1937 | z:Play() | |
1938 | for i = 1, 10 do | |
1939 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) | |
1940 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) | |
1941 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
1942 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
1943 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
1944 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
1945 | if Debounces.on == false then break end | |
1946 | rs:wait() | |
1947 | end | |
1948 | Punch() | |
1949 | z = Instance.new("Sound",hed) | |
1950 | z.SoundId = "rbxassetid://169380525" | |
1951 | z.Pitch = ptz[math.random(1,#ptz)] | |
1952 | z.Volume = 1 | |
1953 | z:Play() | |
1954 | for i = 1, 10 do | |
1955 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) | |
1956 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) | |
1957 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
1958 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
1959 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
1960 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
1961 | if Debounces.on == false then break end | |
1962 | rs:wait() | |
1963 | end | |
1964 | Punch() | |
1965 | z = Instance.new("Sound",hed) | |
1966 | z.SoundId = "rbxassetid://169380525" | |
1967 | z.Pitch = ptz[math.random(1,#ptz)] | |
1968 | z.Volume = 1 | |
1969 | z:Play() | |
1970 | for i = 1, 10 do | |
1971 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) | |
1972 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) | |
1973 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
1974 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
1975 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
1976 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
1977 | if Debounces.on == false then break end | |
1978 | rs:wait() | |
1979 | end | |
1980 | Punch() | |
1981 | z = Instance.new("Sound",hed) | |
1982 | z.SoundId = "rbxassetid://169380525" | |
1983 | z.Pitch = ptz[math.random(1,#ptz)] | |
1984 | z.Volume = 1 | |
1985 | z:Play() | |
1986 | for i = 1, 10 do | |
1987 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.4,-.5)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-50)), 0.7) | |
1988 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.7) | |
1989 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
1990 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
1991 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
1992 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
1993 | if Debounces.on == false then break end | |
1994 | rs:wait() | |
1995 | end | |
1996 | Punch() | |
1997 | z = Instance.new("Sound",hed) | |
1998 | z.SoundId = "rbxassetid://169380525" | |
1999 | z.Pitch = ptz[math.random(1,#ptz)] | |
2000 | z.Volume = 1 | |
2001 | z:Play() | |
2002 | for i = 1, 10 do | |
2003 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.7,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(110)), 0.6) | |
2004 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.7,0)*CFrame.Angles(math.rad(-40),math.rad(0),math.rad(20)), 0.7) | |
2005 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
2006 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
2007 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
2008 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
2009 | if Debounces.on == false then break end | |
2010 | rs:wait() | |
2011 | end | |
2012 | con1:disconnect() | |
2013 | Debounces.on = false | |
2014 | Debounces.NoIdl = false | |
2015 | if gp ~= nil then | |
2016 | gp:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 140 | |
2017 | for i,v in pairs(larm:GetChildren()) do | |
2018 | if v.Name == "asd" and v:IsA("Weld") then | |
2019 | v:Remove() | |
2020 | end | |
2021 | end | |
2022 | --[[bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso")) | |
2023 | bv.maxForce = Vector3.new(400000, 400000, 400000) | |
2024 | bv.P = 125000 | |
2025 | bv.velocity = char.Head.CFrame.lookVector * 200]]-- | |
2026 | hum1=nil | |
2027 | ht=nil | |
2028 | Debounces.on = false | |
2029 | Debounces.NoIdl = false | |
2030 | elseif ht == nil then wait() | |
2031 | Grab = false | |
2032 | Debounces.on = false | |
2033 | Debounces.NoIdl = false | |
2034 | end | |
2035 | end | |
2036 | end | |
2037 | end) | |
2038 | ||
2039 | ||
2040 | ------------------------------------------------- | |
2041 | ||
2042 | ||
2043 | ||
2044 | ||
2045 | ----------------------------------------------------Cero | |
2046 | mouse.KeyDown:connect(function(key) | |
2047 | if key == "c" then | |
2048 | if Debounces.CanAttack == true then | |
2049 | Debounces.CanAttack = false | |
2050 | Debounces.NoIdl = true | |
2051 | Debounces.on = true | |
2052 | char.Humanoid.WalkSpeed = .01 | |
2053 | Debounces.on = true | |
2054 | Vanish() | |
2055 | ||
2056 | xx = Instance.new("Sound") | |
2057 | xx.SoundId = "http://www.roblox.com/asset/?id=199145659" | |
2058 | xx.Parent = char.Head | |
2059 | xx.Looped = false | |
2060 | xx.Pitch = .88 | |
2061 | xx.Volume = 1 | |
2062 | wait(.1) | |
2063 | xx:Play() | |
2064 | ||
2065 | if holy == true then | |
2066 | so("http://roblox.com/asset/?id=231917788",hed,1,1) | |
2067 | else | |
2068 | end | |
2069 | ||
2070 | ||
2071 | if holy ~= true then | |
2072 | for i = 1, 20 do | |
2073 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-18), 0, math.rad(-20)), 0.3) | |
2074 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(65), 0, math.rad(-40)), 0.3) | |
2075 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(-10)), 0.3) | |
2076 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(8), 0, math.rad(10)), 0.3) | |
2077 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-10), math.rad(-70), 0), 0.6) | |
2078 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(84), 0), 0.4) | |
2079 | if Debounces.on==false then break end | |
2080 | wait() | |
2081 | end | |
2082 | wait(1) | |
2083 | else | |
2084 | for i = 1, 5 do | |
2085 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-18), 0, math.rad(-20)), 0.3) | |
2086 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(65), 0, math.rad(-40)), 0.3) | |
2087 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(-10)), 0.3) | |
2088 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(8), 0, math.rad(10)), 0.3) | |
2089 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-10), math.rad(-70), 0), 0.6) | |
2090 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(84), 0), 0.4) | |
2091 | if Debounces.on==false then break end | |
2092 | wait() | |
2093 | end | |
2094 | wait(1) | |
2095 | end | |
2096 | ||
2097 | x = Instance.new("Sound") | |
2098 | x.SoundId = "http://www.roblox.com/asset/?id=142070127" | |
2099 | x2 = Instance.new("Sound") | |
2100 | x2.SoundId = "http://www.roblox.com/asset/?id=183763506" | |
2101 | x.Parent = char.Head | |
2102 | x2.Parent = char.Head | |
2103 | x.Looped = false | |
2104 | x2.Looped = false | |
2105 | x.Pitch = .88 | |
2106 | x.Volume = 1 | |
2107 | x2.Pitch = .88 | |
2108 | x2.Volume = 1 | |
2109 | wait(.1) | |
2110 | x:Play() | |
2111 | x2:Play() | |
2112 | Debounces.on = false | |
2113 | Debounces.Here = false | |
2114 | ||
2115 | - | rng.BrickColor = BrickColor.new("Lime green") |
2115 | + | |
2116 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-12), 0, math.rad(-12)), 0.4) | |
2117 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90), 0, math.rad(101)), 0.4) | |
2118 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-6)), 0.4) | |
2119 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), 0, math.rad(6)), 0.4) | |
2120 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-8), math.rad(-84), 0), 0.4) | |
2121 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.4) | |
2122 | wait() | |
2123 | end | |
2124 | local rng = Instance.new("Part", char) | |
2125 | rng.Anchored = true | |
2126 | ||
2127 | if holy ~= true then | |
2128 | rng.BrickColor = BrickColor.new("Really black") | |
2129 | else | |
2130 | rng.BrickColor = BrickColor.new("Toothpaste") | |
2131 | end | |
2132 | ||
2133 | rng.CanCollide = false | |
2134 | rng.FormFactor = 3 | |
2135 | - | bem.BrickColor = BrickColor.new("Lime green") |
2135 | + | |
2136 | rng.Size = Vector3.new(1, 1, 1) | |
2137 | rng.Transparency = 0.35 | |
2138 | rng.TopSurface = 0 | |
2139 | rng.BottomSurface = 0 | |
2140 | rng.Material = "Neon" | |
2141 | local rngm = Instance.new("SpecialMesh", rng) | |
2142 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2143 | rngm.Scale = Vector3.new(10, 10, 1) | |
2144 | local bem = Instance.new("Part", char) | |
2145 | bem.Anchored = true | |
2146 | ||
2147 | if holy ~= true then | |
2148 | bem.BrickColor = BrickColor.new("Really black") | |
2149 | else | |
2150 | bem.BrickColor = BrickColor.new("Toothpaste") | |
2151 | end | |
2152 | ||
2153 | bem.Material = "Neon" | |
2154 | bem.CanCollide = false | |
2155 | - | out.BrickColor = BrickColor.new("Lime green") |
2155 | + | |
2156 | bem.Name = "Beam" .. shot | |
2157 | bem.Size = Vector3.new(1, 1, 1) | |
2158 | bem.Transparency = 0.35 | |
2159 | bem.TopSurface = 0 | |
2160 | bem.BottomSurface = 0 | |
2161 | local bemm = Instance.new("SpecialMesh", bem) | |
2162 | bemm.MeshType = 4 | |
2163 | bemm.Scale = Vector3.new(1, 4, 4) | |
2164 | local out = Instance.new("Part", char) | |
2165 | out.Anchored = true | |
2166 | ||
2167 | if holy ~= true then | |
2168 | out.BrickColor = BrickColor.new("Really black") | |
2169 | else | |
2170 | out.BrickColor = BrickColor.new("Toothpaste") | |
2171 | end | |
2172 | ||
2173 | out.Material = "Neon" | |
2174 | out.CanCollide = false | |
2175 | - | bnd.BrickColor = BrickColor.new("Lime green") |
2175 | + | |
2176 | out.Name = "Out" | |
2177 | out.Size = Vector3.new(1, 1, 1) | |
2178 | out.Transparency = 0.35 | |
2179 | out.TopSurface = 0 | |
2180 | out.BottomSurface = 0 | |
2181 | local outm = Instance.new("SpecialMesh", out) | |
2182 | outm.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
2183 | outm.Scale = Vector3.new(2, 2, 2) | |
2184 | local bnd = Instance.new("Part", char) | |
2185 | bnd.Anchored = true | |
2186 | ||
2187 | if holy ~= true then | |
2188 | bnd.BrickColor = BrickColor.new("Really black") | |
2189 | else | |
2190 | bnd.BrickColor = BrickColor.new("Toothpaste") | |
2191 | end | |
2192 | ||
2193 | bnd.Material = "Neon" | |
2194 | bnd.CanCollide = false | |
2195 | bnd.FormFactor = 3 | |
2196 | bnd.Name = "BEnd" | |
2197 | bnd.Size = Vector3.new(1, 1, 1) | |
2198 | bnd.Transparency = 0.35 | |
2199 | bnd.TopSurface = 0 | |
2200 | bnd.BottomSurface = 0 | |
2201 | local bndm = Instance.new("SpecialMesh", bnd) | |
2202 | bndm.MeshType = 3 | |
2203 | bndm.Scale = Vector3.new(4, 4, 4) | |
2204 | out.CFrame = rarm.CFrame * CFrame.new(0, -1.75, 0) | |
2205 | bem.CFrame = out.CFrame * CFrame.new(0, -2.5, 0) * CFrame.Angles(0, 0, math.rad(90)) | |
2206 | bnd.CFrame = bem.CFrame * CFrame.new(0, 0, 0) | |
2207 | rng.CFrame = out.CFrame * CFrame.Angles(math.rad(90), 0, 0) | |
2208 | Debounces.Shewt = true | |
2209 | coroutine.wrap(function() | |
2210 | for i = 1, 20, 0.2 do | |
2211 | rngm.Scale = Vector3.new(10 + i*2, 10 + i*2, 1) | |
2212 | rng.Transparency = i/20 | |
2213 | wait() | |
2214 | - | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(18,63)) |
2214 | + | |
2215 | wait() | |
2216 | rng:Destroy() | |
2217 | end)() | |
2218 | if Debounces.Shewt == true then | |
2219 | char:WaitForChild("Beam" .. shot).Touched:connect(function(ht) --Here | |
2220 | print("Hit") | |
2221 | hit = ht.Parent | |
2222 | if hit:IsA("Model") and hit:findFirstChild("Humanoid") then | |
2223 | print("Yes") | |
2224 | if HasntTouched(hit.Name) == true and deb == false then | |
2225 | deb = true | |
2226 | coroutine.wrap(function() | |
2227 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
2228 | hit:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 140 | |
2229 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(1800,6300)) | |
2230 | wait(1) | |
2231 | hit:FindFirstChild("Humanoid").PlatformStand = false | |
2232 | end)() | |
2233 | table.insert(Touche, hit.Name) | |
2234 | deb = false | |
2235 | end | |
2236 | elseif hit:IsA("Hat") and hit.Parent:findFirstChild("Humanoid") then | |
2237 | print("Yes") | |
2238 | if HasntTouched(hit.Parent.Name) == true and deb == false then | |
2239 | deb = true | |
2240 | coroutine.wrap(function() | |
2241 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = true | |
2242 | hit.Parent:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 140 | |
2243 | wait(1) | |
2244 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = false | |
2245 | end)() | |
2246 | table.insert(Touche, hit.Parent.Name) | |
2247 | deb = false | |
2248 | for i, v in pairs(Touche) do | |
2249 | print(v) | |
2250 | end | |
2251 | end | |
2252 | end | |
2253 | end) | |
2254 | end | |
2255 | for i = 0, 200, 7 do | |
2256 | bem.Size = Vector3.new(i, 1, 1) | |
2257 | bem.CFrame = rarm.CFrame * CFrame.new(0, -2.5 -(i/2), 0) * CFrame.Angles(0, 0, math.rad(90)) | |
2258 | bnd.CFrame = bem.CFrame * CFrame.new(-i/2, 0, 0) | |
2259 | wait() | |
2260 | end | |
2261 | wait() | |
2262 | Debounces.Shewt = false | |
2263 | bem:Destroy() | |
2264 | out:Destroy() | |
2265 | bnd:Destroy() | |
2266 | char.Humanoid.WalkSpeed = 10 | |
2267 | Debounces.Ready = false | |
2268 | for i, v in pairs(Touche) do | |
2269 | table.remove(Touche, i) | |
2270 | end | |
2271 | wait() | |
2272 | table.insert(Touche, char.Name) | |
2273 | Debounces.NoIdl = false | |
2274 | if Debounces.CanAttack == false then | |
2275 | Debounces.CanAttack = true | |
2276 | cor.Weld.C1 = CFrame.Angles(0,0,0) | |
2277 | ||
2278 | ||
2279 | Debounces.on = false | |
2280 | Appear() | |
2281 | end | |
2282 | end | |
2283 | end | |
2284 | end) | |
2285 | ------------------------------- | |
2286 | ||
2287 | ----------------------------------------------------EDIT END | |
2288 | Grab = false | |
2289 | mouse.KeyDown:connect(function(key) | |
2290 | if key == "z" then | |
2291 | Debounces.on = true | |
2292 | Debounces.NoIdl = true | |
2293 | Debounces.ks = true | |
2294 | if Grab == false then | |
2295 | gp = nil | |
2296 | for i = 1, 20 do | |
2297 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2) | |
2298 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-80)), 0.2) | |
2299 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-70),0), 0.2) | |
2300 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.2) | |
2301 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(30), math.rad(-20)), 0.2) | |
2302 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-15), math.rad(20)), 0.2) | |
2303 | if Debounces.on == false then break end | |
2304 | rs:wait(2) | |
2305 | end | |
2306 | con1=larm.Touched:connect(function(hit) -- this is grab | |
2307 | ht = hit.Parent | |
2308 | hum1=ht:FindFirstChild('Humanoid') | |
2309 | if hum1 ~= nil then | |
2310 | if Debounces.ks==true then | |
2311 | z = Instance.new("Sound",hed) | |
2312 | z.SoundId = "rbxassetid://169380525" | |
2313 | z.Volume = 1 | |
2314 | z:Play() | |
2315 | Debounces.ks=false | |
2316 | end | |
2317 | hum1.PlatformStand=true | |
2318 | gp = ht | |
2319 | Grab = true | |
2320 | asd=weld5(larm,ht:FindFirstChild("Torso"),CFrame.new(0,-1,1.5),CFrame.new(0,0,0)) | |
2321 | asd.Parent = larm | |
2322 | asd.Name = "asd" | |
2323 | asd.C0=asd.C0*CFrame.Angles(math.rad(-90),math.rad(180),0) | |
2324 | stanceToggle = "Grabbed" | |
2325 | --[[elseif hum1 == nil then | |
2326 | con1:disconnect() | |
2327 | wait() return]]-- | |
2328 | end | |
2329 | end) | |
2330 | for i = 1, 20 do | |
2331 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2) | |
2332 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.2) | |
2333 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(30),0), 0.2) | |
2334 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-30), 0), 0.2) | |
2335 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2) | |
2336 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.2) | |
2337 | if Debounces.on == false then break end | |
2338 | rs:wait(2) | |
2339 | end | |
2340 | con1:disconnect() | |
2341 | Debounces.on = false | |
2342 | Debounces.NoIdl = false | |
2343 | elseif Grab == true then | |
2344 | Grab = false | |
2345 | --[[for i = 1, 16 do | |
2346 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(0),math.rad(50),math.rad(60)), 0.3) | |
2347 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,-.5)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(-60)), 0.3) | |
2348 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14),math.rad(70),0), 0.3) | |
2349 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3) | |
2350 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3) | |
2351 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3) | |
2352 | cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), 0), 0.3) | |
2353 | if Debounces.on == false then end | |
2354 | rs:wait() | |
2355 | end]]-- | |
2356 | for i = 1, 16 do | |
2357 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.3) | |
2358 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(140),math.rad(0),math.rad(-50)), 0.3) | |
2359 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(-60),0), 0.3) | |
2360 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.3) | |
2361 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(-20)), 0.3) | |
2362 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3) | |
2363 | if Debounces.on == false then end | |
2364 | rs:wait() | |
2365 | end | |
2366 | Slam() | |
2367 | if gp ~= nil then | |
2368 | for i,v in pairs(larm:GetChildren()) do | |
2369 | if v.Name == "asd" and v:IsA("Weld") then | |
2370 | v:Remove() | |
2371 | end | |
2372 | end | |
2373 | for i = 1, 16 do | |
2374 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.3) | |
2375 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,-.4)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.3) | |
2376 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(20),0), 0.3) | |
2377 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-60), math.rad(-30), 0), 0.3) | |
2378 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(80), math.rad(30), math.rad(-20)), 0.3) | |
2379 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(70), math.rad(-15), math.rad(20)), 0.3) | |
2380 | if Debounces.on == false then end | |
2381 | rs:wait() | |
2382 | end | |
2383 | stanceToggle = "Normal" | |
2384 | --[[bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso")) | |
2385 | bv.maxForce = Vector3.new(400000, 400000, 400000) | |
2386 | bv.P = 125000 | |
2387 | bv.velocity = char.Head.CFrame.lookVector * 200]]-- | |
2388 | ht=nil | |
2389 | Debounces.on = false | |
2390 | Debounces.NoIdl = false | |
2391 | elseif ht == nil then wait() | |
2392 | Grab = false | |
2393 | Debounces.on = false | |
2394 | Debounces.NoIdl = false | |
2395 | end | |
2396 | end | |
2397 | end | |
2398 | end) | |
2399 | ---------------------------------------------------- | |
2400 | Charging = false | |
2401 | chargewait = false | |
2402 | mouse.KeyDown:connect(function(key) | |
2403 | if key == "h" then | |
2404 | if Charging == false and chargewait == false then | |
2405 | Charging = true | |
2406 | chargewait = true | |
2407 | if Debounces.CanAttack == true then | |
2408 | Debounces.CanAttack = false | |
2409 | Debounces.NoIdl = true | |
2410 | Debounces.on = true | |
2411 | ||
2412 | ||
2413 | if holy ~= true then | |
2414 | holy = true | |
2415 | else holy = false | |
2416 | end | |
2417 | ||
2418 | ||
2419 | for i = 1,20 do | |
2420 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2,0.65,-.4)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(-40)), 0.2) | |
2421 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.65,-.4)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(40)), 0.2) | |
2422 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.2) | |
2423 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2) | |
2424 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, .4, -0.8) * CFrame.Angles(math.rad(-6), math.rad(0), math.rad(0)), 0.2) | |
2425 | - | pt.BrickColor=BrickColor.new('Lime green') |
2425 | + | |
2426 | if Debounces.on == false then break end | |
2427 | rs:wait() | |
2428 | hum.Health = hum.Health + 25 | |
2429 | end | |
2430 | pt=Instance.new('Part',torso) | |
2431 | pt.Anchored=true | |
2432 | pt.CanCollide=false | |
2433 | pt.Locked = true | |
2434 | pt.Material = "Neon" | |
2435 | pt.FormFactor='Custom' | |
2436 | pt.Size=Vector3.new(1,1,1) | |
2437 | pt.CFrame=root.CFrame*CFrame.new(0,-1,0) | |
2438 | - | pt2.BrickColor=BrickColor.new('Lime green') |
2438 | + | |
2439 | ||
2440 | - | pt2.BrickColor = BrickColor.new("Lime green") |
2440 | + | |
2441 | pt.BrickColor=BrickColor.new('Toothpaste') | |
2442 | else | |
2443 | pt.BrickColor = BrickColor.new("Really black") | |
2444 | end | |
2445 | ||
2446 | msh=Instance.new('SpecialMesh',pt) | |
2447 | msh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
2448 | msh.Scale=Vector3.new(8,4,8) | |
2449 | pt2=pt:clone() | |
2450 | pt2.Parent = torso | |
2451 | pt2.CFrame=root.CFrame*CFrame.new(0,-1,0) | |
2452 | ||
2453 | if holy == true then | |
2454 | pt2.BrickColor=BrickColor.new('Toothpaste') | |
2455 | - | bl.BrickColor = BrickColor.new("Lime green") |
2455 | + | |
2456 | pt2.BrickColor = BrickColor.new("Toothpaste") | |
2457 | end | |
2458 | ||
2459 | ||
2460 | msh2=msh:clone() | |
2461 | msh2.Parent=pt2 | |
2462 | msh2.Scale=Vector3.new(10,5,10) | |
2463 | ||
2464 | custommath={25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,-25,-26,-27,-28,-29,-30,-31,-32,-33,-34,-35,-36,-37,-38,-39,-40,-41,-42,-43,-44,-45,-46,-47,-48,-49,-50,-51,-52,-53,-54,-55,-56,-57,-58,-59,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-81,-82,-83,-84,-85,-86,-87,-88,-89,-90,-91,-92,-93,-94,-95,-96,-97,-98,-99,-100} | |
2465 | ||
2466 | bl = Instance.new("Part", char) | |
2467 | bl.Locked = true | |
2468 | bl.Name = "Shell" | |
2469 | ||
2470 | if holy == true then | |
2471 | bl.BrickColor = BrickColor.new("Toothpaste") | |
2472 | else | |
2473 | bl.BrickColor = BrickColor.new("Really black") | |
2474 | end | |
2475 | ||
2476 | bl.Anchored = true | |
2477 | bl.Material = "Neon" | |
2478 | bl.CanCollide = false | |
2479 | bl.Transparency = 0 | |
2480 | bl.Reflectance = 0 | |
2481 | bl.BottomSurface = 0 | |
2482 | bl.TopSurface = 0 | |
2483 | - | eColors = {"Lime green"} |
2483 | + | |
2484 | blm = Instance.new("SpecialMesh",bl) | |
2485 | blm.MeshType = "Sphere" | |
2486 | blm.Scale = Vector3.new(1,1,1) | |
2487 | - | v.BrickColor = BrickColor.new("Lime green") |
2487 | + | |
2488 | so("http://www.roblox.com/asset/?id=340722848",hed,2,1.2) | |
2489 | so("http://www.roblox.com/asset/?id=340722848",torso,0.5,0.8) | |
2490 | so("http://roblox.com/asset/?id=168586621",torso,1,0.5) | |
2491 | ||
2492 | ||
2493 | ||
2494 | ||
2495 | if holy == true then | |
2496 | light() | |
2497 | ds:stop() | |
2498 | - | eColors = {"Lime green", "Really black"} |
2498 | + | |
2499 | eColors = {"Toothpaste"} | |
2500 | for i,v in pairs(char.Genkadda:GetChildren()) do | |
2501 | if v:IsA("Part") or v:IsA("WedgePart") then | |
2502 | if v.Name ~= "HitBox" or v.Name ~= "Thingy" then | |
2503 | v.BrickColor = BrickColor.new("Toothpaste") | |
2504 | v.Material = "Neon" | |
2505 | end | |
2506 | end | |
2507 | end | |
2508 | ||
2509 | ||
2510 | else | |
2511 | dark() | |
2512 | hs:stop() | |
2513 | ds:play() | |
2514 | eColors = {"Toothpaste", "Really black"} | |
2515 | for i,v in pairs(char.Genkadda:GetChildren()) do | |
2516 | if v:IsA("Part") or v:IsA("WedgePart") then | |
2517 | if v.Name ~= "HitBox" or v.Name ~= "Thingy" then | |
2518 | v.BrickColor = BrickColor.new("Really black") | |
2519 | v.Material = "Metal" | |
2520 | end | |
2521 | end | |
2522 | end | |
2523 | ||
2524 | end | |
2525 | ||
2526 | coroutine.resume(coroutine.create(function() | |
2527 | for i=1, math.huge, 4 do | |
2528 | if Charging == true then | |
2529 | rs:wait() | |
2530 | bl.CFrame = root.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10)) | |
2531 | blm.Scale = blm.Scale + Vector3.new(0.5, 0.5, 0.5) | |
2532 | bl.Transparency = bl.Transparency + 0.05 | |
2533 | - | p.BrickColor = BrickColor.new("Lime green") |
2533 | + | |
2534 | pt2.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(-i*2),0) | |
2535 | msh.Scale = msh.Scale + Vector3.new(0.05,0,0.05) | |
2536 | msh2.Scale = msh2.Scale + Vector3.new(0.05,0,0.05) | |
2537 | elseif Charging == false then break | |
2538 | end | |
2539 | end | |
2540 | end)) | |
2541 | ||
2542 | ||
2543 | repeat | |
2544 | local p = Instance.new('Part',torso) | |
2545 | p.formFactor = 'Custom' | |
2546 | p.Size = Vector3.new(1,1,1) | |
2547 | ||
2548 | if holy == true then | |
2549 | p.BrickColor = BrickColor.new("Toothpaste") | |
2550 | else | |
2551 | p.BrickColor = BrickColor.new("Really black") | |
2552 | end | |
2553 | ||
2554 | p.CanCollide = false | |
2555 | p.Transparency = 0 | |
2556 | p.Anchored = true | |
2557 | p.Locked=true | |
2558 | p.Material = "Neon" | |
2559 | s = math.random(1,40)/10 | |
2560 | local m = Instance.new("BlockMesh",p) | |
2561 | m.Scale = Vector3.new(s,s,s) | |
2562 | p.CFrame = torso.CFrame*CFrame.new(custommath[math.random(1,#custommath)]/10,-math.random(5,7),custommath[math.random(1,#custommath)]/10)*CFrame.Angles(math.random(),math.random(),math.random()) | |
2563 | --[[coroutine.wrap(function() | |
2564 | wait(2) | |
2565 | while Charging == true do | |
2566 | wait(2) | |
2567 | GroundWave1() | |
2568 | wait(2) | |
2569 | end | |
2570 | end)()]]-- | |
2571 | Spawn(function() | |
2572 | while rs:wait() do | |
2573 | if Charging == true then | |
2574 | rarm.Weld.C0 = CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(math.random(-36,-20)),math.rad(math.random(-30,-20)),math.rad(math.random(30,50))) | |
2575 | larm.Weld.C0 = CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(math.random(-36,-20)),math.rad(math.random(20,30)),math.rad(math.random(-50,-30))) | |
2576 | hed.Weld.C0 = CFrame.new(0,1.5,.1)*CFrame.Angles(math.rad(math.random(26,34)),math.rad(math.random(-5,5)),math.rad(0)) | |
2577 | torso.Weld.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(math.random(-4,4)), math.rad(0)) | |
2578 | lleg.Weld.C0 = CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(math.random(-10,-6)), math.rad(math.random(10,20)), math.rad(math.random(-20,-10))) | |
2579 | rleg.Weld.C0 = CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(math.random(-10,-6)), math.rad(math.random(-20,-10)), math.rad(math.random(10,20))) | |
2580 | elseif Charging == false then break | |
2581 | end | |
2582 | end | |
2583 | end) | |
2584 | Spawn(function() | |
2585 | while rs:wait() do | |
2586 | if p.Transparency >= 1 then p:Destroy() break end | |
2587 | p.CFrame = p.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))+Vector3.new(0,0.2,0) | |
2588 | p.Transparency = p.Transparency+0.01 | |
2589 | end | |
2590 | end) | |
2591 | wait(.3) | |
2592 | ||
2593 | ||
2594 | until Charging == false | |
2595 | end | |
2596 | end | |
2597 | end | |
2598 | end) | |
2599 | ||
2600 | ---------------------------------------------------- | |
2601 | mouse.KeyUp:connect(function(key) | |
2602 | if key == "h" then | |
2603 | if Charging == true and chargewait == true then | |
2604 | chargewait = false | |
2605 | wait(1) | |
2606 | Charging = false | |
2607 | ||
2608 | --[[for i,v in pairs (torso:GetChildren()) do | |
2609 | if v:IsA("Sound") then | |
2610 | v:Destroy() | |
2611 | end | |
2612 | end]] | |
2613 | ||
2614 | ||
2615 | --so("http://roblox.com/asset/?id=160867463",torso,1,0.7) | |
2616 | ||
2617 | pt:Destroy() | |
2618 | pt2:Destroy() | |
2619 | bl:Destroy() | |
2620 | if Debounces.CanAttack == false then | |
2621 | Debounces.CanAttack = true | |
2622 | Debounces.NoIdl = false | |
2623 | Debounces.on = false | |
2624 | Debounces.grab = false | |
2625 | ||
2626 | end | |
2627 | end | |
2628 | end | |
2629 | end) | |
2630 | ---------------------------------------------------- | |
2631 | Sit = false | |
2632 | mouse.KeyDown:connect(function(key) | |
2633 | if key == "b" then | |
2634 | if Sit == false then | |
2635 | Sit = true | |
2636 | hum.WalkSpeed = 0.1 | |
2637 | stanceToggle = "Sitting" | |
2638 | elseif Sit == true then | |
2639 | Sit = false | |
2640 | hum.WalkSpeed = 7 | |
2641 | stanceToggle = "Normal" | |
2642 | end | |
2643 | end | |
2644 | end) | |
2645 | ------------------------------- | |
2646 | Melee = false | |
2647 | mouse.KeyDown:connect(function(key) | |
2648 | if key == "m" then | |
2649 | if Melee == false then | |
2650 | Melee = true | |
2651 | Vanish() | |
2652 | stanceToggle = "Melee" | |
2653 | elseif Melee == true then | |
2654 | Melee = false | |
2655 | Appear() | |
2656 | stanceToggle = "Normal" | |
2657 | end | |
2658 | end | |
2659 | end) | |
2660 | ------------------------------- | |
2661 | mouse.KeyDown:connect(function(key) | |
2662 | if string.byte(key) == 50 then | |
2663 | if Debounces.CanAttack == true then | |
2664 | if stanceToggle ~= "Floating" then | |
2665 | char.Humanoid.WalkSpeed = 60 | |
2666 | Burst() | |
2667 | elseif Debounces.CanAttack == false then | |
2668 | elseif stanceToggle == "Floating" then | |
2669 | wait() | |
2670 | end | |
2671 | end | |
2672 | end | |
2673 | end) | |
2674 | mouse.KeyUp:connect(function(key) | |
2675 | if string.byte(key) == 50 then | |
2676 | char.Humanoid.WalkSpeed = 9 | |
2677 | end | |
2678 | end) | |
2679 | ------------------------------- | |
2680 | mouse.KeyDown:connect(function(key) | |
2681 | if key == "p" then | |
2682 | if CanAttack == true then | |
2683 | CanAttack = false | |
2684 | Debounces.NoIdl = true | |
2685 | Debounces.on = true | |
2686 | for i = 1, 20 do | |
2687 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.2, -2.75) * CFrame.Angles(math.rad(90), math.rad(40), math.rad(0)), 0.6) | |
2688 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1, 1, -.5) * CFrame.Angles(math.rad(130), math.rad(0), math.rad(40)), 0.3) | |
2689 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1, 1, -.5) * CFrame.Angles(math.rad(130), math.rad(0), math.rad(-40)), 0.3) | |
2690 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-20), 0, math.rad(-10)), 0.6) | |
2691 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-20), 0, math.rad(10)), 0.6) | |
2692 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(20), math.rad(0), 0), 0.6) | |
2693 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 12, 0) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), 0.2) | |
2694 | if Debounces.on == false then | |
2695 | break | |
2696 | end | |
2697 | wait() | |
2698 | end | |
2699 | wait() | |
2700 | z = Instance.new("Sound") | |
2701 | z.SoundId = "http://www.roblox.com/asset/?id=159218913" | |
2702 | z.Parent = char.Head | |
2703 | z.Looped = false | |
2704 | z.Pitch = 1 | |
2705 | z.Volume = 1 | |
2706 | wait(.01) | |
2707 | z:Play() | |
2708 | Debounces.Slashing = true | |
2709 | for i = 1, 20 do | |
2710 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(0, -1.2, -2.75) * CFrame.Angles(math.rad(90), math.rad(40), math.rad(0)), 0.6) | |
2711 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1, .5, -.5) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(40)), 0.6) | |
2712 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1, .5, -.5) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-40)), 0.6) | |
2713 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1.5, -.5) * CFrame.Angles(math.rad(-90), 0, math.rad(0)), 0.6) | |
2714 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -.5, -1) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.6) | |
2715 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-20), math.rad(0), 0), 0.6) | |
2716 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.6) | |
2717 | wait() | |
2718 | if Debounces.on == false then | |
2719 | break | |
2720 | end | |
2721 | wait() | |
2722 | end | |
2723 | Debounces.Slashing = false | |
2724 | Debounces.NoIdl = false | |
2725 | wait() | |
2726 | if CanAttack == false then | |
2727 | CanAttack = true | |
2728 | end | |
2729 | end | |
2730 | end | |
2731 | end) | |
2732 | -------------------------------- | |
2733 | ---------------------------------------------------- | |
2734 | mouse.KeyDown:connect(function(key) | |
2735 | if key == "v" then | |
2736 | if Debounces.CanAttack == true then | |
2737 | Debounces.CanAttack = false | |
2738 | Debounces.on = true | |
2739 | Debounces.NoIdl = true | |
2740 | for i = 1, 15 do | |
2741 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(30)), 0.2) | |
2742 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-90)), 0.6) | |
2743 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.2) | |
2744 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.4) | |
2745 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2) | |
2746 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2) | |
2747 | if Debounces.on == false then break end | |
2748 | rs:wait(2.7) | |
2749 | end | |
2750 | so("http://roblox.com/asset/?id=231917788",hed,1,0.7) | |
2751 | x = Instance.new("Sound",char.Head) | |
2752 | x.SoundId = "rbxassetid://183763515" | |
2753 | x.Pitch = 0.7 | |
2754 | x.Volume = .8 | |
2755 | x3 = Instance.new("Sound",char.Head) | |
2756 | x3.SoundId = "rbxassetid://183763487" | |
2757 | x3.Pitch = 1 | |
2758 | x3.Volume = .8 | |
2759 | wait(.1) | |
2760 | - | rng.BrickColor = BrickColor.new("Lime green") |
2760 | + | |
2761 | x3:Play() | |
2762 | - | rng.BrickColor = BrickColor.new("Lime green") |
2762 | + | |
2763 | if holy == true then | |
2764 | so("http://roblox.com/asset/?id=233091161",hed,1,0.6) | |
2765 | so("http://roblox.com/asset/?id=2233091183",hed,1,1) | |
2766 | else | |
2767 | end | |
2768 | ||
2769 | Debounces.on = false | |
2770 | Debounces.Here = false | |
2771 | shot = shot + 1 | |
2772 | local rng = Instance.new("Part", larm) | |
2773 | rng.Anchored = true | |
2774 | ||
2775 | if holy ~= true then | |
2776 | rng.BrickColor = BrickColor.new("Toothpaste") | |
2777 | else | |
2778 | rng.BrickColor = BrickColor.new("Toothpaste") | |
2779 | end | |
2780 | ||
2781 | rng.Material = "Neon" | |
2782 | rng.CanCollide = false | |
2783 | rng.FormFactor = 3 | |
2784 | rng.Name = "Ring" | |
2785 | rng.Size = Vector3.new(1, 1, 1) | |
2786 | rng.Transparency = 0.35 | |
2787 | rng.TopSurface = 0 | |
2788 | rng.BottomSurface = 0 | |
2789 | rng2 = rng:clone() | |
2790 | rng3 = rng2:clone() | |
2791 | rng4 = rng2:clone() | |
2792 | local rngm = Instance.new("SpecialMesh", rng) | |
2793 | - | bem.BrickColor = BrickColor.new("Lime green") |
2793 | + | |
2794 | rngm.Scale = Vector3.new(10, 10, 1) | |
2795 | rngm2 = rngm:clone() | |
2796 | rngm2.Scale = Vector3.new(5, 5, 3) | |
2797 | rngm3=rngm2:clone() | |
2798 | rngm3.Parent = rng3 | |
2799 | rngm3.Scale = Vector3.new(8, 8, 1) | |
2800 | rngm4 = rngm2:clone() | |
2801 | rngm4.Parent = rng4 | |
2802 | rngm4.Scale = Vector3.new(6, 6, 1) | |
2803 | local bem = Instance.new("Part", larm) | |
2804 | bem.Anchored = true | |
2805 | ||
2806 | if holy == false then | |
2807 | bem.BrickColor = BrickColor.new("Really black") | |
2808 | else | |
2809 | bem.BrickColor = BrickColor.new("Toothpaste") | |
2810 | end | |
2811 | ||
2812 | bem.CanCollide = false | |
2813 | bem.Material = "Neon" | |
2814 | - | out.BrickColor = BrickColor.new("Lime green") |
2814 | + | |
2815 | bem.Name = "Beam" .. shot | |
2816 | bem.Size = Vector3.new(1, 1, 1) | |
2817 | bem.Transparency = 0.35 | |
2818 | bem.TopSurface = 0 | |
2819 | bem.BottomSurface = 0 | |
2820 | local bemm = Instance.new("SpecialMesh", bem) | |
2821 | bemm.MeshType = 4 | |
2822 | bemm.Scale = Vector3.new(1, 4, 4) | |
2823 | local out = Instance.new("Part", larm) | |
2824 | out.Anchored = true | |
2825 | out.Material = "Neon" | |
2826 | ||
2827 | if holy == false then | |
2828 | out.BrickColor = BrickColor.new("Really black") | |
2829 | else | |
2830 | out.BrickColor = BrickColor.new("Toothpaste") | |
2831 | end | |
2832 | ||
2833 | out.CanCollide = false | |
2834 | out.FormFactor = 3 | |
2835 | out.Name = "Out" | |
2836 | out.Size = Vector3.new(4, 4, 4) | |
2837 | out.Transparency = 0.35 | |
2838 | out.TopSurface = 0 | |
2839 | out.BottomSurface = 0 | |
2840 | local outm = Instance.new("SpecialMesh", out) | |
2841 | outm.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
2842 | outm.Scale = Vector3.new(6, 4, 6) | |
2843 | local bnd = Instance.new("Part", larm) | |
2844 | bnd.Anchored = true | |
2845 | bnd.BrickColor = BrickColor.new("Really red") | |
2846 | bnd.CanCollide = false | |
2847 | bnd.FormFactor = 3 | |
2848 | bnd.Name = "Bend" | |
2849 | bnd.Size = Vector3.new(1, 1, 1) | |
2850 | bnd.Transparency = 1 | |
2851 | bnd.TopSurface = 0 | |
2852 | bnd.BottomSurface = 0 | |
2853 | local bndm = Instance.new("SpecialMesh", bnd) | |
2854 | bndm.MeshType = 3 | |
2855 | bndm.Scale = Vector3.new(8, 8, 8) | |
2856 | out.CFrame = larm.CFrame * CFrame.new(0, -2.7, 0) | |
2857 | bem.CFrame = out.CFrame * CFrame.new(0, -2.5, 0) * CFrame.Angles(0, 0, math.rad(90)) | |
2858 | bnd.CFrame = bem.CFrame * CFrame.new(0, 0, 0) | |
2859 | rng.CFrame = out.CFrame * CFrame.Angles(math.rad(90), 0, 0) | |
2860 | rng3.CFrame = rng.CFrame * CFrame.new(0, -.5, 0) | |
2861 | rng4.CFrame = rng.CFrame * CFrame.new(0, -1, 0) | |
2862 | Debounces.Shewt = true | |
2863 | coroutine.wrap(function() | |
2864 | for i = 1, 20, 0.2 do | |
2865 | rngm.Scale = Vector3.new(10 + i*2, 10 + i*2, 1) | |
2866 | rngm3.Scale = Vector3.new(8 + i*3, 8 + i*3, 1) | |
2867 | rngm4.Scale = Vector3.new(6 + i*4, 6 + i*4, 1) | |
2868 | rng.Transparency = i/20 | |
2869 | - | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(24,73)) |
2869 | + | |
2870 | rng4.Transparency = i/26 | |
2871 | wait() | |
2872 | end | |
2873 | wait() | |
2874 | rng:Destroy() | |
2875 | end)() | |
2876 | if Debounces.Shewt == true then | |
2877 | larm:WaitForChild("Beam" .. shot).Touched:connect(function(ht) | |
2878 | hit = ht.Parent | |
2879 | if hit:IsA("Model") and hit:findFirstChild("Humanoid") then | |
2880 | if HasntTouched(hit.Name) == true and deb == false then | |
2881 | deb = true | |
2882 | coroutine.wrap(function() | |
2883 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
2884 | hit:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180 | |
2885 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(2400,7300)) | |
2886 | end)() | |
2887 | table.insert(Touche, hit.Name) | |
2888 | deb = false | |
2889 | end | |
2890 | elseif hit:IsA("Hat") and hit.Parent:findFirstChild("Humanoid") then | |
2891 | if HasntTouched(hit.Parent.Name) == true and deb == false then | |
2892 | deb = true | |
2893 | coroutine.wrap(function() | |
2894 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = true | |
2895 | hit.Parent:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 180 | |
2896 | wait(1) | |
2897 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = false | |
2898 | end)() | |
2899 | table.insert(Touche, hit.Parent.Name) | |
2900 | deb = false | |
2901 | for i, v in pairs(Touche) do | |
2902 | print(v) | |
2903 | end | |
2904 | end | |
2905 | end | |
2906 | end) | |
2907 | end | |
2908 | for i = 0, 260, 8 do | |
2909 | bem.Size = Vector3.new(i, 3, 3) | |
2910 | out.CFrame = larm.CFrame * CFrame.new(0, -2.7, 0) | |
2911 | bem.CFrame = larm.CFrame * CFrame.new(0, -4.2 -(i/2), 0) * CFrame.Angles(0, 0, math.rad(90)) | |
2912 | bnd.CFrame = bem.CFrame * CFrame.new(-i/2, 0, 1.2) | |
2913 | bnd.Size = Vector3.new(1,1,1) | |
2914 | bndm.Scale = Vector3.new(8,8,8) | |
2915 | if i % 10 == 0 then | |
2916 | local newRng = rng2:Clone() | |
2917 | newRng.Parent = larm | |
2918 | newRng.CFrame = larm.CFrame * CFrame.new(0, -4.2-i, 0) * CFrame.Angles(math.rad(90), 0, 0) | |
2919 | local newRngm = rngm2:clone() | |
2920 | newRngm.Parent=newRng | |
2921 | coroutine.wrap(function() | |
2922 | for i = 1, 10, 0.2 do | |
2923 | newRngm.Scale = Vector3.new(8 + i*2, 8 + i*2, 3) | |
2924 | newRng.Transparency = i/10 | |
2925 | wait() | |
2926 | end | |
2927 | wait() | |
2928 | newRng:Destroy() | |
2929 | end)() | |
2930 | end | |
2931 | wait() | |
2932 | end | |
2933 | wait() | |
2934 | Debounces.Shewt = false | |
2935 | bem:Destroy() | |
2936 | out:Destroy() | |
2937 | bnd:Destroy() | |
2938 | Debounces.Ready = false | |
2939 | for i, v in pairs(Touche) do | |
2940 | table.remove(Touche, i) | |
2941 | end | |
2942 | wait() | |
2943 | table.insert(Touche, char.Name) | |
2944 | Debounces.NoIdl = false | |
2945 | if Debounces.CanAttack == false then | |
2946 | Debounces.CanAttack = true | |
2947 | end | |
2948 | end | |
2949 | end | |
2950 | end) | |
2951 | ---------------------------------------------------- | |
2952 | ---------------------------------------------------- | |
2953 | mouse.KeyDown:connect(function(key) | |
2954 | if key == "y" then | |
2955 | if CanAttack == true then | |
2956 | CanAttack = false | |
2957 | Debounces.NoIdl = true | |
2958 | Debounces.on = true | |
2959 | for i = 1, 20 do | |
2960 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(75), 0, math.rad(30)), 0.2) | |
2961 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(75), 0, math.rad(-30)), 0.2) | |
2962 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, 0.5, -1) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2) | |
2963 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, 0.5, -1) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2) | |
2964 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-26), math.rad(0), 0), 0.2) | |
2965 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 2, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2) | |
2966 | if Debounces.on == false then | |
2967 | break | |
2968 | end | |
2969 | wait() | |
2970 | end | |
2971 | wait() | |
2972 | if Daytime == true then | |
2973 | Daytime = false | |
2974 | l.TimeOfDay = 24 | |
2975 | else | |
2976 | Daytime = true | |
2977 | l.TimeOfDay = 12 | |
2978 | l.OutdoorAmbient = Color3.new(0.498039, 0.498039, 0.498039) | |
2979 | end | |
2980 | char.Humanoid.MaxHealth = math.huge | |
2981 | c = Instance.new("Sound") | |
2982 | c.SoundId = "http://www.roblox.com/asset/?id=152758283" | |
2983 | c.Parent = m | |
2984 | c.Looped = false | |
2985 | if Daytime == true then | |
2986 | c.Pitch = -1 | |
2987 | elseif Daytime == false then | |
2988 | c.Pitch = 1.12 | |
2989 | end | |
2990 | c.Volume = 1 | |
2991 | wait(.01) | |
2992 | - | hit.Parent:findFirstChild("Humanoid").Health = hit.Parent:findFirstChild("Humanoid").Health - 1 |
2992 | + | |
2993 | local Shockwave = function() | |
2994 | local Wave = Instance.new("Part", game.Workspace--[[?]]) | |
2995 | Wave.Name = "Shockwave" | |
2996 | Wave.BrickColor = BrickColor.new("Really black") | |
2997 | Wave.Size = Vector3.new(1, 1, 1) | |
2998 | Wave.Shape = "Ball" | |
2999 | Wave.CanCollide = false | |
3000 | Wave.Anchored = true | |
3001 | Wave.TopSurface = 0 | |
3002 | Wave.BottomSurface = 0 | |
3003 | Wave.Touched:connect(function(hit) | |
3004 | print(hit.Name) | |
3005 | if hit.Parent:findFirstChild("Humanoid") and hit.Parent:findFirstChild("Torso") then | |
3006 | if hit.Parent.Name ~= char.Name then | |
3007 | print("Damaged " .. hit.Parent.Name) | |
3008 | hit.Parent:findFirstChild("Humanoid").Health = hit.Parent:findFirstChild("Humanoid").Health - 10 | |
3009 | hit.Parent:findFirstChild("Torso").Velocity = hit.Parent:findFirstChild("Torso").CFrame.lookVector * -120 | |
3010 | end | |
3011 | end | |
3012 | end) | |
3013 | ||
3014 | Instance.new("SpecialMesh", Wave).MeshType = "Sphere" | |
3015 | ||
3016 | Delay(0, function() | |
3017 | -- | |
3018 | -- Okay. | |
3019 | if Daytime == false then | |
3020 | for i = 1, 38, 1 do | |
3021 | Wave.Size = Vector3.new(1 + i, 1 + i, 1 + i) | |
3022 | Wave.CFrame = char.Torso.CFrame | |
3023 | local t = i / 38 | |
3024 | Wave.Transparency = t | |
3025 | wait() | |
3026 | end | |
3027 | else | |
3028 | for i = 38, 1, -1 do | |
3029 | Wave.Size = Vector3.new(1 + i, 1 + i, 1 + i) | |
3030 | Wave.CFrame = char.Torso.CFrame | |
3031 | local t = i / 38 | |
3032 | Wave.Transparency = t | |
3033 | wait() | |
3034 | end | |
3035 | end | |
3036 | Wave:Destroy() | |
3037 | end) | |
3038 | Delay(0, function() | |
3039 | while wait() do | |
3040 | if Wave ~= nil then | |
3041 | Wave.CFrame = char.Torso.CFrame | |
3042 | else | |
3043 | break | |
3044 | end | |
3045 | end | |
3046 | end) | |
3047 | end | |
3048 | ||
3049 | Shockwave() | |
3050 | ||
3051 | for i = 1, 20 do | |
3052 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, .5, 0) * CFrame.Angles(math.rad(120), 0, math.rad(-100)), 0.6) | |
3053 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, .5, 0) * CFrame.Angles(math.rad(120), 0, math.rad(100)), 0.6) | |
3054 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(-20)), 0.6) | |
3055 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(20)), 0.6) | |
3056 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(35), math.rad(0), 0), 0.6) | |
3057 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 2, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.6) | |
3058 | wait() | |
3059 | if Debounces.on == false then | |
3060 | break | |
3061 | end | |
3062 | wait() | |
3063 | end | |
3064 | wait(2) | |
3065 | Debounces.NoIdl = false | |
3066 | if CanAttack == false then | |
3067 | CanAttack = true | |
3068 | wait() | |
3069 | end | |
3070 | end -- for the canattack thing | |
3071 | end | |
3072 | end) | |
3073 | ------------------------------- | |
3074 | local animpose = "Idle" | |
3075 | local lastanimpose = "Idle" | |
3076 | local grab = false | |
3077 | local sine = 0 | |
3078 | local change = 1 | |
3079 | local val = 0 | |
3080 | local ffing = false | |
3081 | local jump = false | |
3082 | ------------------------------- | |
3083 | --[[if stanceToggle == "Sitting" then | |
3084 | if wait(math.random(1,2)) == 1 then | |
3085 | stanceToggle = "Sitting2" | |
3086 | wait(8) | |
3087 | stanceToggle = "Sitting" | |
3088 | end | |
3089 | end]]-- | |
3090 | ------------------------------- | |
3091 | game:GetService("RunService").RenderStepped:connect(function() | |
3092 | if char.Humanoid.Jump == true then | |
3093 | jump = true | |
3094 | else | |
3095 | jump = false | |
3096 | end | |
3097 | char.Humanoid.FreeFalling:connect(function(f) | |
3098 | if f then | |
3099 | ffing = true | |
3100 | else | |
3101 | ffing = false | |
3102 | end | |
3103 | end) | |
3104 | sine = sine + change | |
3105 | if jump == true then | |
3106 | animpose = "Jumping" | |
3107 | elseif ffing == true then | |
3108 | animpose = "Freefalling" | |
3109 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then | |
3110 | animpose = "Idle" | |
3111 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then | |
3112 | animpose = "Walking" | |
3113 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then | |
3114 | animpose = "Running" | |
3115 | end | |
3116 | if animpose ~= lastanimpose then | |
3117 | sine = 0 | |
3118 | if Debounces.NoIdl == false then | |
3119 | if stanceToggle == "Normal" and holy ~= true then | |
3120 | for i = 1, 2 do | |
3121 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40)), 0.2) | |
3122 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(-20)), 0.2) | |
3123 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.2) | |
3124 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.2) | |
3125 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2) | |
3126 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-15), math.rad(20)), 0.2) | |
3127 | cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
3128 | end | |
3129 | elseif stanceToggle == "Sitting" then | |
3130 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/30),0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(20+2*math.cos(sine/30))), 0.2) | |
3131 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2, 0.5, -.54) * CFrame.Angles(math.rad(88), 0, math.rad(48)), 0.6) | |
3132 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-10), 0, 0), 0.3) | |
3133 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-20), math.sin(sine/60)/3, 0), 0.3) | |
3134 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1) * CFrame.Angles(math.rad(-6), 0, 0), 0.3) | |
3135 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-56), 0, 0), 0.3) | |
3136 | elseif stanceToggle == "Floating" then | |
3137 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.4) | |
3138 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.4) | |
3139 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(0),0), 0.2) | |
3140 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.4*math.cos(sine/14), 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.05) | |
3141 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8-2*math.cos(sine/14))), 0.4) | |
3142 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8+2*math.cos(sine/14))), 0.4) | |
3143 | wait() | |
3144 | end | |
3145 | else | |
3146 | end | |
3147 | end | |
3148 | lastanimpose = animpose | |
3149 | if Debounces.NoIdl == false then | |
3150 | if animpose == "Idle" then | |
3151 | if stanceToggle == "Normal" and holy ~= true then | |
3152 | change = 0.5 | |
3153 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40+2*math.cos(sine/14))), 0.2) | |
3154 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(-20-2*math.cos(sine/14))), 0.2) | |
3155 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(50),0), 0.2) | |
3156 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.2) | |
3157 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2) | |
3158 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-15), math.rad(20)), 0.2) | |
3159 | elseif stanceToggle == "Normal" and holy == true then | |
3160 | change = 0.8 | |
3161 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.4) | |
3162 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.4) | |
3163 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(0),0), 0.2) | |
3164 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.05) | |
3165 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8-2*math.cos(sine/14))), 0.4) | |
3166 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8+2*math.cos(sine/14))), 0.4) | |
3167 | elseif stanceToggle == "Melee" and holy ~= true then | |
3168 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(20+2*math.cos(sine/14))), 0.2) | |
3169 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20-2*math.cos(sine/14))), 0.2) | |
3170 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-20+1*math.cos(sine/14)),math.rad(0),0), 0.2) | |
3171 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) | |
3172 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
3173 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
3174 | elseif stanceToggle == "Melee" and holy == true then | |
3175 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.4) | |
3176 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.4) | |
3177 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(0),0), 0.2) | |
3178 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.05) | |
3179 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8-2*math.cos(sine/14))), 0.4) | |
3180 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8+2*math.cos(sine/14))), 0.4) | |
3181 | elseif stanceToggle == "Sitting" then | |
3182 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(20)), 0.2) | |
3183 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2, 0.5, -.54) * CFrame.Angles(math.rad(88), 0, math.rad(48)), 0.6) | |
3184 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-10), 0, 0), 0.3) | |
3185 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5-0.06*math.cos(sine/25), -.2) * CFrame.Angles(math.rad(0-20*math.cos(sine/25)/2), math.sin(sine/50)/2.4, 0), 0.3) | |
3186 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1) * CFrame.Angles(math.rad(-6), 0, 0), 0.3) | |
3187 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-56), 0, 0), 0.3) | |
3188 | elseif stanceToggle == "Floating" then | |
3189 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.4) | |
3190 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.4) | |
3191 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(0),0), 0.2) | |
3192 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.4*math.cos(sine/14), 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.05) | |
3193 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8-2*math.cos(sine/14))), 0.4) | |
3194 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8+2*math.cos(sine/14))), 0.4) | |
3195 | elseif stanceToggle == "Grabbed" and holy ~= true then | |
3196 | grab = true | |
3197 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40+2*math.cos(sine/14))), 0.2) | |
3198 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),-.5)*CFrame.Angles(math.rad(130+4*math.cos(sine/14)),math.rad(0),math.rad(-60+4*math.cos(sine/14))), 0.3) | |
3199 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14+2*math.cos(sine/14)),math.rad(70-4*math.cos(sine/14)),0), 0.3) | |
3200 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3) | |
3201 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3) | |
3202 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3) | |
3203 | elseif stanceToggle == "Grabbed" and holy == true then | |
3204 | grab = true | |
3205 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40+2*math.cos(sine/14))), 0.2) | |
3206 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),-.5)*CFrame.Angles(math.rad(130+4*math.cos(sine/14)),math.rad(0),math.rad(-60+4*math.cos(sine/14))), 0.3) | |
3207 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14+2*math.cos(sine/14)),math.rad(70-4*math.cos(sine/14)),0), 0.3) | |
3208 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05) | |
3209 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(-8)), 0.4) | |
3210 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(8)), 0.4) | |
3211 | end | |
3212 | elseif animpose == "Walking" then | |
3213 | if stanceToggle == "Normal" and holy ~= true then | |
3214 | change = 1 | |
3215 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5, 0)*CFrame.Angles(math.rad(-20), math.rad(-20),math.rad(40)), 0.2) | |
3216 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6, -math.sin(sine/8)/2.8)*CFrame.Angles(math.sin(sine/8)/4, -math.sin(sine/8)/2, math.rad(-10)), 0.2) | |
3217 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-8+2*math.cos(sine/4)), math.rad(0), math.rad(0)),0.2) | |
3218 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.1*math.cos(sine/4), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/4)), 0, math.rad(0)), 0.2) | |
3219 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1-0.14*math.cos(sine/8)/2.8, -0.05 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + -math.sin(sine/8)/2.3, 0, 0), .4) | |
3220 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1+0.14*math.cos(sine/8)/2.8, -0.05 + -math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + math.sin(sine/8)/2.3, 0, 0), .4) | |
3221 | elseif stanceToggle == "Normal" and holy == true then | |
3222 | for i = 1, 2 do | |
3223 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2) | |
3224 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2) | |
3225 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14),0,0), 0.4) | |
3226 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05) | |
3227 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(-8)), 0.4) | |
3228 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(8)), 0.4) | |
3229 | end | |
3230 | elseif stanceToggle == "Melee" and holy ~= true then | |
3231 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/4), math.sin(sine/8)/4) * CFrame.Angles(-math.sin(sine/8)/2.8, -math.sin(sine/8)/3, math.rad(10+2*math.cos(sine/4))), 0.2) | |
3232 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5+.05*math.cos(sine/4), -math.sin(sine/8)/4)*CFrame.Angles(math.sin(sine/8)/2.8, -math.sin(sine/8)/3, math.rad(-10-2*math.cos(sine/4))), 0.2) | |
3233 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-8+2*math.cos(sine/4)), math.rad(0), math.rad(0)),0.2) | |
3234 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.07*math.cos(sine/4), 0) * CFrame.Angles(math.rad(-4+1*math.cos(sine/4)), 0, math.rad(0)), 0.2) | |
3235 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1-0.14*math.cos(sine/8)/2.8, -0.05 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + -math.sin(sine/8)/2.3, 0, 0), .4) | |
3236 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1+0.14*math.cos(sine/8)/2.8, -0.05 + -math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + math.sin(sine/8)/2.3, 0, 0), .4) | |
3237 | elseif stanceToggle == "Melee" and holy == true then | |
3238 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2) | |
3239 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2) | |
3240 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14),0,0), 0.4) | |
3241 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05) | |
3242 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(-8)), 0.4) | |
3243 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(8)), 0.4) | |
3244 | elseif stanceToggle == "Floating" then | |
3245 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2) | |
3246 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2) | |
3247 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14-4*math.cos(sine/14)),0,0), 0.4) | |
3248 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0-8*math.cos(sine/14)), 0, math.rad(-8)), 0.4) | |
3249 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(1-9*math.cos(sine/13)), 0, math.rad(8)), 0.4) | |
3250 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.2*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05) | |
3251 | elseif stanceToggle == "Grabbed" and holy ~= true then | |
3252 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5, 0)*CFrame.Angles(math.rad(-20), math.rad(-20),math.rad(40)), 0.2) | |
3253 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(120),math.rad(0),math.rad(-30)), 0.3) | |
3254 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-8+2*math.cos(sine/4)), math.rad(0), math.rad(0)),0.2) | |
3255 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.1*math.cos(sine/4), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/4)), 0, math.rad(0)), 0.2) | |
3256 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1-0.14*math.cos(sine/8)/2.8, -0.05 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + -math.sin(sine/8)/2.3, 0, 0), .4) | |
3257 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1+0.14*math.cos(sine/8)/2.8, -0.05 + -math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + math.sin(sine/8)/2.3, 0, 0), .4) | |
3258 | elseif stanceToggle == "Grabbed" and holy == true then | |
3259 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5, 0)*CFrame.Angles(math.rad(-20), math.rad(-20),math.rad(40)), 0.2) | |
3260 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(120),math.rad(0),math.rad(-30)), 0.3) | |
3261 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14-4*math.cos(sine/14)),0,0), 0.4) | |
3262 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0-8*math.cos(sine/14)), 0, math.rad(-8)), 0.4) | |
3263 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(1-9*math.cos(sine/13)), 0, math.rad(8)), 0.4) | |
3264 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05) | |
3265 | end | |
3266 | elseif animpose == "Running" then | |
3267 | if stanceToggle == "Normal" and holy ~= true then | |
3268 | change = 1 | |
3269 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles (math.rad(44), math.rad (0), math.rad(0)), 0.15) | |
3270 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 1-0.1*math.cos(sine/14), -1) * CFrame.Angles(math.rad(- 80), math.rad(0), 0), 0.15) | |
3271 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad (0), math.rad(50), math.rad(-40)), 0.15) | |
3272 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(40)), 0.15) | |
3273 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(8), math.rad(0), math.rad(- 10)), .15) | |
3274 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(8), math.rad(0), math.rad(10)), .15) | |
3275 | elseif stanceToggle == "Normal" and holy == true then | |
3276 | change = 1 | |
3277 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.35,.4)*CFrame.Angles(math.rad(250),math.rad(350),math.rad(-30+2*math.cos(sine/14))), 0.2)--cfawm | |
3278 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.55,-.4)*CFrame.Angles(math.rad(110),math.rad(0),math.rad(40-2*math.cos(sine/14))), 0.2) | |
3279 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, .2) * CFrame.Angles(math.rad(20),math.rad(10),0), 0.4) | |
3280 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-40),math.rad(-10), math.rad(0)), 0.2) | |
3281 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1.2) * CFrame.Angles(math.rad(-20), math.rad(10), math.rad(0)), 0.4) | |
3282 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(10), math.rad(0)), 0.4) | |
3283 | elseif stanceToggle == "Floating" then | |
3284 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2) | |
3285 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2) | |
3286 | hed.Weld.C0 = CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-14-4*math.cos(sine/14)),0,0) | |
3287 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10-12*math.cos(sine/16)), 0, math.rad(-8)), 0.4) | |
3288 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10-12*math.cos(sine/16)), 0, math.rad(8)), 0.4) | |
3289 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.4*math.cos(sine/14), -.2) * CFrame.Angles(math.rad(-15),0, math.rad(0)), 0.05) | |
3290 | end | |
3291 | end | |
3292 | end | |
3293 | end) | |
3294 | ||
3295 | Spawn(function() | |
3296 | while wait() do | |
3297 | updateFly() | |
3298 | end | |
3299 | end) | |
3300 | ||
3301 | Spawn(function() | |
3302 | while wait(.1) do | |
3303 | Magik() | |
3304 | end | |
3305 | end) | |
3306 | ||
3307 | Spawn(function() | |
3308 | while wait(.1) do | |
3309 | Magik2() | |
3310 | end | |
3311 | end) | |
3312 | ||
3313 | Spawn(function() | |
3314 | while wait(4) do | |
3315 | GroundWave() | |
3316 | end | |
3317 | end) | |
3318 | ||
3319 | ||
3320 | ||
3321 | ||
3322 | ||
3323 | function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans) -- Lightning module | |
3324 | --[[Part0 = Vector3 (Start pos) | |
3325 | Part1 = Vector3 (End pos) | |
3326 | Times = number (Amount of lightning parts) | |
3327 | Offset = number (Offset) | |
3328 | Color = color (brickcolor value) | |
3329 | Thickness = number (thickness) | |
3330 | Trans = number (transparency) | |
3331 | ]]-- | |
3332 | local magz = (Part0 - Part1).magnitude | |
3333 | local curpos = Part0 | |
3334 | local trz = {-Offset,Offset} | |
3335 | for i=1,Times do | |
3336 | local li = Instance.new("Part", torso) | |
3337 | li.Name = "Lightning" | |
3338 | li.TopSurface =0 | |
3339 | li.Material = "Neon" | |
3340 | li.BottomSurface = 0 | |
3341 | li.Anchored = true | |
3342 | li.Locked = true | |
3343 | li.Transparency = Trans or 0.4 | |
3344 | li.BrickColor = BrickColor.new(Color) | |
3345 | li.formFactor = "Custom" | |
3346 | li.CanCollide = false | |
3347 | li.Size = Vector3.new(Thickness,Thickness,magz/Times) | |
3348 | local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)]) | |
3349 | local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet | |
3350 | if Times == i then | |
3351 | local magz2 = (curpos - Part1).magnitude | |
3352 | li.Size = Vector3.new(Thickness,Thickness,magz2) | |
3353 | li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2) | |
3354 | else | |
3355 | li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2) | |
3356 | end | |
3357 | curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p | |
3358 | game.Debris:AddItem(li,.1) | |
3359 | end | |
3360 | end | |
3361 | ||
3362 | BodyParts = {} -- Parts to emit lightning effects from | |
3363 | for _, v in pairs(char.Genkadda:GetChildren()) do | |
3364 | if v:IsA("Part") and v.Name ~= "HitBox" and v.Name ~= "Thingy" then | |
3365 | table.insert(BodyParts, v) | |
3366 | end | |
3367 | end | |
3368 | ||
3369 | Bounding = {} -- Calculate the bounding boxes | |
3370 | for _, v in pairs(BodyParts) do | |
3371 | local temp = {X=nil, Y=nil, Z=nil} | |
3372 | temp.X = v.Size.X/2 * 10 | |
3373 | temp.Y = v.Size.Y/2 * 10 | |
3374 | temp.Z = v.Size.Z/2 * 10 | |
3375 | Bounding[v.Name] = temp | |
3376 | --table.insert(Bounding, v.Name, temp) | |
3377 | end | |
3378 | ||
3379 | ||
3380 | ||
3381 | while wait(lightspeed) do -- Emit the Lightning effects randomly, original was (1,10)/10 | |
3382 | ||
3383 | if Melee ~= true then --[[Make sure we only see the lightning when holding our sword]] | |
3384 | ||
3385 | if holy == true then | |
3386 | lightspeed = math.random(0.1,0.2) | |
3387 | else | |
3388 | lightspeed = math.random(0.5,1) | |
3389 | end | |
3390 | ||
3391 | local Body1 = BodyParts[math.random(#BodyParts)] | |
3392 | local Body2 = BodyParts[math.random(#BodyParts)] | |
3393 | local Pos1 = Vector3.new( | |
3394 | math.random(-Bounding[Body1.Name].X, Bounding[Body1.Name].X)/10, | |
3395 | math.random(-Bounding[Body1.Name].Y, Bounding[Body1.Name].Y)/10, | |
3396 | math.random(-Bounding[Body1.Name].Z, Bounding[Body1.Name].Z)/10 | |
3397 | ) | |
3398 | local Pos2 = Vector3.new( | |
3399 | math.random(-Bounding[Body2.Name].X, Bounding[Body2.Name].X)/10, | |
3400 | math.random(-Bounding[Body2.Name].Y, Bounding[Body2.Name].Y)/10, | |
3401 | math.random(-Bounding[Body2.Name].Z, Bounding[Body2.Name].Z)/10 | |
3402 | ) | |
3403 | local SPos1 = Body1.Position + Pos1 | |
3404 | local SPos2 = Body2.Position + Pos2 | |
3405 | ||
3406 | ||
3407 | ||
3408 | Lightning(SPos1, SPos2, 4, 3, eColors[math.random(1,#eColors)], .2, .56) | |
3409 | ||
3410 | ||
3411 | end | |
3412 | while true do | |
3413 | wait() | |
3414 | gui3.Text = "HP "..hum.Health.."/10000" | |
3415 | hum.Health = hum.Health + 2 | |
3416 | end | |
3417 | end |