SHOW:
|
|
- or go back to the newest paste.
1 | local p = game.Players.LocalPlayer | |
2 | local char = p.Character | |
3 | local mouse = p:GetMouse() | |
4 | local larm = char["Left Arm"] | |
5 | local rarm = char["Right Arm"] | |
6 | local lleg = char["Left Leg"] | |
7 | local rleg = char["Right Leg"] | |
8 | local hed = char.Head | |
9 | local torso = char.Torso | |
10 | local hum = char.Humanoid | |
11 | local cam = game.Workspace.CurrentCamera | |
12 | local root = char.HumanoidRootPart | |
13 | local deb = false | |
14 | local shot = 0 | |
15 | local debris=game:service"Debris" | |
16 | local l = game:GetService("Lighting") | |
17 | local rs = game:GetService("RunService").RenderStepped | |
18 | ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1} | |
19 | math.randomseed(os.time()) | |
20 | for i,v in pairs (hed:GetChildren()) do | |
21 | if v:IsA("Sound") then | |
22 | v:Destroy() | |
23 | end | |
24 | end | |
25 | -------------------------------------------------------------------- | |
26 | CV="Eggplant" | |
27 | p = game.Players.LocalPlayer | |
28 | char = p.Character | |
29 | local txt = Instance.new("BillboardGui", char) | |
30 | txt.Adornee = char .Head | |
31 | txt.Name = "_status" | |
32 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
33 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
34 | local text = Instance.new("TextLabel", txt) | |
35 | text.Size = UDim2.new(10, 0, 7, 0) | |
36 | text.FontSize = "Size24" | |
37 | text.TextScaled = true | |
38 | text.TextTransparency = 0 | |
39 | text.BackgroundTransparency = 1 | |
40 | text.TextTransparency = 0 | |
41 | text.TextStrokeTransparency = 0 | |
42 | text.Font = "Arcade" | |
43 | text.TextStrokeColor3 = Color3.new(0,0,0) | |
44 | ||
45 | v=Instance.new("Part") | |
46 | v.Name = "ColorBrick" | |
47 | v.Parent=p.Character | |
48 | v.FormFactor="Symmetric" | |
49 | v.Anchored=true | |
50 | v.CanCollide=false | |
51 | v.BottomSurface="Smooth" | |
52 | v.TopSurface="Smooth" | |
53 | v.Size=Vector3.new(10,5,3) | |
54 | v.Transparency=1 | |
55 | v.CFrame=char.Torso.CFrame | |
56 | v.BrickColor=BrickColor.new(CV) | |
57 | v.Transparency=1 | |
58 | text.TextColor3 = Color3.new(125,125,125) | |
59 | v.Shape="Block" | |
60 | wait() | |
61 | text.Text = "Welp, Sorry Edd, Tom, Matt, I just.."; | |
62 | wait(3) | |
63 | text.Text = "WHAT TO KILL YOU, UlTrA."; | |
64 | wait(3) | |
65 | text.TextColor3 = Color3.new(225,0,0) | |
66 | text.Text = "{-Hyper Tord-}"; | |
67 | hed.face.Texture = "rbxassetid://515293110" | |
68 | ||
69 | ---------------------------------------------------- | |
70 | Debounces = { | |
71 | CanAttack = true; | |
72 | NoIdl = false; | |
73 | Slashing = false; | |
74 | Slashed = false; | |
75 | RPunch = false; | |
76 | RPunched = false; | |
77 | LPunch = false; | |
78 | LPunched = false; | |
79 | } | |
80 | local Touche = {char.Name, } | |
81 | ---------------------------------------------------- | |
82 | char["Body Colors"].HeadColor = BrickColor.new("Bright red") | |
83 | char["Body Colors"].TorsoColor = BrickColor.new("Bright red") | |
84 | char["Body Colors"].LeftArmColor = BrickColor.new("Bright red") | |
85 | char["Body Colors"].RightArmColor = BrickColor.new("Bright red") | |
86 | ---------------------------------------------------- | |
87 | ---------------------------------------------------------------- | |
88 | ||
89 | ---------------------------- SHIRT AND PANTS -- | |
90 | -------------------------------- | |
91 | shirt = Instance.new("Shirt", char) | |
92 | shirt.Name = "Shirt" | |
93 | pants = Instance.new("Pants", char) | |
94 | pants.Name = "Pants" | |
95 | - | char.Shirt.ShirtTemplate = "rbxassetid://357134154" |
95 | + | char.Shirt.ShirtTemplate = "rbxassetid://344089667" |
96 | - | char.Pants.PantsTemplate = "rbxassetid://343128365" |
96 | + | char.Pants.PantsTemplate = "rbxassetid://344084364" |
97 | ||
98 | --------------------------------------------------------- | |
99 | ||
100 | -------------- | |
101 | purple = Color3.new(1, 1, 1) | |
102 | local player = "LocalPlayer" | |
103 | local Character = game.Players[player].Character | |
104 | it = Instance.new | |
105 | vt = Vector3.new | |
106 | bc = BrickColor.new | |
107 | cf = CFrame.new | |
108 | local hed = Character.Head | |
109 | local ultcooldown = 99999 | |
110 | ||
111 | paly = game.Players.LocalPlayer | |
112 | p = game.Players.LocalPlayer | |
113 | char = paly.Character | |
114 | torso = char.Torso | |
115 | neck = char.Torso.Neck | |
116 | hum = char.Humanoid | |
117 | Player = game:GetService("Players").LocalPlayer | |
118 | local mouse = Player:GetMouse() | |
119 | Character = Player.Character | |
120 | tors = Character.Torso | |
121 | lleg = Character["Left Leg"] | |
122 | root = Character.HumanoidRootPart | |
123 | hed = Character.Head | |
124 | rleg = Character["Right Leg"] | |
125 | rarm = Character["Right Arm"] | |
126 | larm = Character["Left Arm"] | |
127 | local Effects = {} | |
128 | ||
129 | ||
130 | function ExplodeMass(rad,par) | |
131 | local expart = Instance.new("Part",script.Parent) | |
132 | local expart2 = Instance.new("Part",script.Parent) | |
133 | local partMesh = Instance.new("SpecialMesh",expart) | |
134 | partMesh.MeshType = "Sphere" | |
135 | local partMesh2 = Instance.new("SpecialMesh",expart2) | |
136 | partMesh2.MeshType = "Sphere" | |
137 | local expld = Instance.new("Explosion", script.Parent) | |
138 | local plode = Instance.new("Sound",workspace) | |
139 | plode.SoundId = "rbxassetid://579687077" | |
140 | plode.Volume = 1 | |
141 | plode.Pitch = 0.85 | |
142 | plode.Looped = false | |
143 | plode:Play() | |
144 | local plodez = Instance.new("Sound",workspace) | |
145 | plodez.SoundId = "rbxassetid://" | |
146 | plodez.Volume = 1 | |
147 | plodez.Pitch = 0.75 | |
148 | plodez.Looped = false | |
149 | plodez:Play() | |
150 | local plodeza = Instance.new("Sound",workspace) | |
151 | plodeza.SoundId = "rbxassetid://197161452" | |
152 | plodeza.Volume = 0.85 | |
153 | plodeza.Pitch = 0.65 | |
154 | plodeza.Looped = false | |
155 | plodeza:Play() | |
156 | local plodezar = Instance.new("Sound",workspace) | |
157 | plodezar.SoundId = "rbxassetid://197161452" | |
158 | plodezar.Volume = 0.85 | |
159 | plodezar.Pitch = 0.25 | |
160 | plodezar.Looped = false | |
161 | plodezar:Play() | |
162 | local s3 = Instance.new("Sound",workspace) | |
163 | s3.SoundId = "rbxassetid://268931189" | |
164 | s3.Pitch = 1 | |
165 | s3.Volume = 1 | |
166 | s3.Looped = false | |
167 | s3:Play() | |
168 | xay = Instance.new("Sound",workspace) | |
169 | xay.SoundId = "rbxassetid://419447292" | |
170 | xay.Pitch = 1 | |
171 | xay.Volume = 2.5 | |
172 | xay:Play() | |
173 | expld.BlastRadius = rad | |
174 | expld.Position = par.Position | |
175 | partMesh.Scale = vt(rad,rad,rad) | |
176 | expart.Size = vt(1,1,1)*1.5 | |
177 | expart.Transparency = 0 | |
178 | expart.Anchored = true | |
179 | expart.Material = "Neon" | |
180 | expart.BrickColor = bc("Really red") | |
181 | expart.CFrame = par.CFrame | |
182 | partMesh2.Scale = vt(rad,rad,rad) | |
183 | expart2.Size = vt(1.15,1.15,1.15)*1.5 | |
184 | expart2.Transparency = 0.5 | |
185 | expart2.Anchored = true | |
186 | expart2.Material = "Neon" | |
187 | expart2.BrickColor = Character.Torso.BrickColor | |
188 | expart2.CFrame = par.CFrame | |
189 | local value = 1*rad/10 | |
190 | par:Destroy() | |
191 | for i = 0, 300 do | |
192 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
193 | expart.CFrame = expart.CFrame | |
194 | partMesh2.Scale = partMesh2.Scale + vt(value,value,value) | |
195 | expart2.CFrame = expart.CFrame | |
196 | value = value - 0.0175*rad/10 | |
197 | if value <= 0 then | |
198 | expart.Transparency = expart.Transparency + 0.0125 | |
199 | expart2.Transparency = expart2.Transparency + 0.0125 | |
200 | value = 0.25 | |
201 | end | |
202 | wait() | |
203 | end | |
204 | plode.Parent = nil | |
205 | expart.Parent = nil | |
206 | expart2.Parent = nil | |
207 | expld.Parent = nil | |
208 | end | |
209 | ||
210 | function ExplodeMass2(rad,par) | |
211 | local expart = Instance.new("Part",script.Parent) | |
212 | local expart2 = Instance.new("Part",script.Parent) | |
213 | local partMesh = Instance.new("SpecialMesh",expart) | |
214 | partMesh.MeshType = "Sphere" | |
215 | local partMesh2 = Instance.new("SpecialMesh",expart2) | |
216 | partMesh2.MeshType = "Sphere" | |
217 | local expld = Instance.new("Explosion", script.Parent) | |
218 | local plode = Instance.new("Sound",workspace) | |
219 | plode.SoundId = "rbxassetid://579687077" | |
220 | plode.Volume = 1 | |
221 | plode.Pitch = 0.8 | |
222 | plode.Looped = false | |
223 | plode:Play() | |
224 | local plodez = Instance.new("Sound",workspace) | |
225 | plodez.SoundId = "rbxassetid://288641686" | |
226 | plodez.Volume = 1 | |
227 | plodez.Pitch = 0.7 | |
228 | plodez.Looped = false | |
229 | plodez:Play() | |
230 | local plodeza = Instance.new("Sound",workspace) | |
231 | plodeza.SoundId = "rbxassetid://197161452" | |
232 | plodeza.Volume = 0.85 | |
233 | plodeza.Pitch = 0.6 | |
234 | plodeza.Looped = false | |
235 | plodeza:Play() | |
236 | local plodezar = Instance.new("Sound",workspace) | |
237 | plodezar.SoundId = "rbxassetid://197161452" | |
238 | plodezar.Volume = 0.85 | |
239 | plodezar.Pitch = 0.2 | |
240 | plodezar.Looped = false | |
241 | plodezar:Play() | |
242 | local s3 = Instance.new("Sound",workspace) | |
243 | s3.SoundId = "rbxassetid://268931189" | |
244 | s3.Pitch = 0.85 | |
245 | s3.Volume = 1 | |
246 | s3.Looped = false | |
247 | s3:Play() | |
248 | xay = Instance.new("Sound",workspace) | |
249 | xay.SoundId = "rbxassetid://419447292" | |
250 | xay.Pitch = 1 | |
251 | xay.Volume = 3.5 | |
252 | xay:Play() | |
253 | expld.BlastRadius = rad | |
254 | expld.Position = par.Position | |
255 | partMesh.Scale = vt(rad,rad,rad) | |
256 | expart.Size = vt(1,1,1)*1.5 | |
257 | expart.Transparency = 0 | |
258 | expart.Anchored = true | |
259 | expart.Material = "Neon" | |
260 | expart.BrickColor = bc("Really black") | |
261 | expart.CFrame = par.CFrame | |
262 | partMesh2.Scale = vt(rad,rad,rad) | |
263 | expart2.Size = vt(1.15,1.15,1.15)*1.5 | |
264 | expart2.Transparency = 0.5 | |
265 | expart2.Anchored = true | |
266 | expart2.Material = "Neon" | |
267 | expart2.BrickColor = Character.Torso.BrickColor | |
268 | expart2.CFrame = par.CFrame | |
269 | local value = 1*rad/10 | |
270 | par:Destroy() | |
271 | for i = 0, 300 do | |
272 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
273 | expart.CFrame = expart.CFrame | |
274 | partMesh2.Scale = partMesh2.Scale + vt(value,value,value) | |
275 | expart2.CFrame = expart.CFrame | |
276 | value = value - 0.0175*rad/10 | |
277 | if value <= 0 then | |
278 | expart.Transparency = expart.Transparency + 0.0125 | |
279 | expart2.Transparency = expart2.Transparency + 0.0125 | |
280 | value = 0.25 | |
281 | end | |
282 | wait() | |
283 | end | |
284 | plode.Parent = nil | |
285 | expart.Parent = nil | |
286 | expart2.Parent = nil | |
287 | expld.Parent = nil | |
288 | end | |
289 | ||
290 | function Blaze2() | |
291 | if ultcooldown >= 30 then | |
292 | ultcooldown = ultcooldown - 30 | |
293 | wit = Character.Torso.BrickColor.Color | |
294 | local sloc = Instance.new("Part",workspace) | |
295 | local msh = Instance.new("SpecialMesh",sloc) | |
296 | msh.MeshType = "Sphere" | |
297 | sloc.Size = vt(1,1,1) | |
298 | sloc.Transparency = 1 | |
299 | sloc.BrickColor = Character.Torso.BrickColor | |
300 | sloc.Position = hed.Position + vt(0,0,0) | |
301 | sloc.CanCollide = false | |
302 | sloc.Shape = "Ball" | |
303 | sloc.Anchored = true | |
304 | sloc.Material = "Neon" | |
305 | local forcefield = Instance.new("ForceField",Character) | |
306 | local kolor = Instance.new("ColorCorrectionEffect",game.Lighting) | |
307 | kolor.TintColor = Character.Torso.BrickColor.Color | |
308 | local glowz = Instance.new("ParticleEmitter") | |
309 | glowz.LightEmission = 0 | |
310 | glowz.Parent = sloc | |
311 | glowz.Texture = "rbxassetid://284205403" | |
312 | glowz.Color = ColorSequence.new(wit) | |
313 | glowz.Size = NumberSequence.new(15) | |
314 | glowz.Speed = NumberRange.new(100,250) | |
315 | glowz.LockedToPart = false | |
316 | glowz.Transparency = NumberSequence.new(0.75) | |
317 | glowz.RotSpeed = NumberRange.new(-2000,2000) | |
318 | glowz.Lifetime = NumberRange.new(1) | |
319 | glowz.Rate = 50 | |
320 | glowz.VelocitySpread = 9001 | |
321 | local s = Instance.new("Sound",workspace) | |
322 | s.SoundId = "rbxassetid://331888777" | |
323 | s.Pitch = 0.45 | |
324 | s.Volume = 1.5 | |
325 | s.Looped = false | |
326 | s:Play() | |
327 | local s2 = Instance.new("Sound",workspace) | |
328 | s2.SoundId = "rbxassetid://160442087" | |
329 | s2.Pitch = 0.5 | |
330 | s2.Volume = 1.5 | |
331 | s2.Looped = false | |
332 | s2:Play() | |
333 | local val = 1*5 | |
334 | for i = 0 , 20 do | |
335 | sloc.Transparency = sloc.Transparency - 0.055 | |
336 | msh.Scale = msh.Scale + vt(val,val,val) | |
337 | val = val - 0.05*5 | |
338 | kolor.Brightness = kolor.Brightness - 0.1 | |
339 | kolor.Contrast = kolor.Contrast + 0.1 | |
340 | wait() | |
341 | end | |
342 | for i = 0 , 5 do | |
343 | msh.Scale = msh.Scale + vt(val,val,val) | |
344 | val = val + 0.05*5 | |
345 | kolor.Brightness = kolor.Brightness + 0.5 | |
346 | kolor.Contrast = kolor.Contrast - 0.5 | |
347 | wait() | |
348 | end | |
349 | for i = 0 , 5 do | |
350 | msh.Scale = msh.Scale + vt(val,val,val) | |
351 | val = val - 0.05*5 | |
352 | kolor.Brightness = kolor.Brightness - 0.5 | |
353 | kolor.Contrast = kolor.Contrast + 0.5 | |
354 | wait() | |
355 | end | |
356 | for i = 0 , 5 do | |
357 | msh.Scale = msh.Scale + vt(val,val,val) | |
358 | val = val + 0.05*10 | |
359 | kolor.Brightness = kolor.Brightness + 0.5 | |
360 | kolor.Contrast = kolor.Contrast - 0.5 | |
361 | wait() | |
362 | end | |
363 | for i = 0 , 5 do | |
364 | msh.Scale = msh.Scale + vt(val,val,val) | |
365 | val = val - 0.05*10 | |
366 | kolor.Brightness = kolor.Brightness - 0.5 | |
367 | kolor.Contrast = kolor.Contrast + 0.5 | |
368 | wait() | |
369 | end | |
370 | for i = 0 , 5 do | |
371 | msh.Scale = msh.Scale + vt(val,val,val) | |
372 | val = val + 0.05*20 | |
373 | kolor.Brightness = kolor.Brightness + 0.5 | |
374 | kolor.Contrast = kolor.Contrast - 0.5 | |
375 | wait() | |
376 | end | |
377 | for i = 0 , 5 do | |
378 | msh.Scale = msh.Scale + vt(val,val,val) | |
379 | val = val - 0.05*20 | |
380 | kolor.Brightness = kolor.Brightness - 0.5 | |
381 | kolor.Contrast = kolor.Contrast + 0.5 | |
382 | wait() | |
383 | end | |
384 | for i = 0 , 5 do | |
385 | msh.Scale = msh.Scale + vt(val,val,val) | |
386 | val = val + 0.05*40 | |
387 | kolor.Brightness = kolor.Brightness + 0.5 | |
388 | kolor.Contrast = kolor.Contrast - 0.5 | |
389 | wait() | |
390 | end | |
391 | for i = 0 , 5 do | |
392 | msh.Scale = msh.Scale + vt(val,val,val) | |
393 | val = val - 0.05*40 | |
394 | kolor.Brightness = kolor.Brightness - 0.5 | |
395 | kolor.Contrast = kolor.Contrast + 0.5 | |
396 | wait() | |
397 | end | |
398 | for i = 0 , 5 do | |
399 | msh.Scale = msh.Scale + vt(val,val,val) | |
400 | val = val + 0.05*45 | |
401 | kolor.Brightness = kolor.Brightness + 0.5 | |
402 | kolor.Contrast = kolor.Contrast - 0.5 | |
403 | wait() | |
404 | end | |
405 | for i = 0 , 5 do | |
406 | msh.Scale = msh.Scale + vt(val,val,val) | |
407 | val = val - 0.05*45 | |
408 | kolor.Brightness = kolor.Brightness - 0.5 | |
409 | kolor.Contrast = kolor.Contrast + 0.5 | |
410 | wait() | |
411 | end | |
412 | for i = 0 , 5 do | |
413 | msh.Scale = msh.Scale + vt(val,val,val) | |
414 | val = val + 0.05*50 | |
415 | kolor.Brightness = kolor.Brightness + 0.5 | |
416 | kolor.Contrast = kolor.Contrast - 0.5 | |
417 | wait() | |
418 | end | |
419 | for i = 0 , 20 do | |
420 | sloc.Transparency = sloc.Transparency + 0.055 | |
421 | msh.Scale = msh.Scale + vt(val,val,val) | |
422 | val = val - 0.05*50 | |
423 | wait() | |
424 | end | |
425 | kolor:Destroy() | |
426 | ExplodeMass2(125,sloc) | |
427 | sloc:Destroy() | |
428 | forcefield:Destroy() | |
429 | end | |
430 | if ultcooldown < 1 then | |
431 | for i = 0, 29 do | |
432 | ultcooldown = ultcooldown + 1 | |
433 | wait(1) | |
434 | end | |
435 | end | |
436 | end | |
437 | ||
438 | function Blaze() | |
439 | if ultcooldown >= 30 then | |
440 | local kolor = Instance.new("ColorCorrectionEffect",game.Lighting) | |
441 | local see = Instance.new("Sound",workspace) | |
442 | see.SoundId = "rbxassetid://21420962" | |
443 | see.Pitch = 1 | |
444 | see.Volume = 2.75 | |
445 | see.Looped = false | |
446 | see:Play() | |
447 | kolor.Brightness = -1 | |
448 | kolor.Contrast = -1 | |
449 | kolor.TintColor = Character.Torso.BrickColor.Color | |
450 | wait(0.1) | |
451 | for i = 0, 9 do | |
452 | kolor.Brightness = kolor.Brightness + 0.35 | |
453 | kolor.Contrast = kolor.Contrast + 0.35 | |
454 | wait(0.05) | |
455 | end | |
456 | for i = 0, 9 do | |
457 | kolor.Brightness = kolor.Brightness - 0.35 | |
458 | kolor.Contrast = kolor.Contrast - 0.35 | |
459 | wait(0.05) | |
460 | end | |
461 | kolor:Destroy() | |
462 | local sloc = Instance.new("Part",workspace) | |
463 | local msh = Instance.new("SpecialMesh",sloc) | |
464 | msh.MeshType = "Sphere" | |
465 | sloc.Size = vt(1,1,1) | |
466 | sloc.Transparency = 1 | |
467 | sloc.BrickColor = Character.Torso.BrickColor | |
468 | sloc.Position = hed.Position + vt(0,5,0) | |
469 | sloc.CanCollide = false | |
470 | sloc.Shape = "Ball" | |
471 | sloc.Anchored = true | |
472 | sloc.Material = "Neon" | |
473 | local s = Instance.new("Sound",workspace) | |
474 | s.SoundId = "rbxassetid://342793847" | |
475 | s.Pitch = 1 | |
476 | s.Volume = 1 | |
477 | s.Looped = false | |
478 | s:Play() | |
479 | local s2 = Instance.new("Sound",workspace) | |
480 | s2.SoundId = "rbxassetid://137463716" | |
481 | s2.Pitch = 0.25 | |
482 | s2.Volume = 1 | |
483 | s2.Looped = false | |
484 | s2:Play() | |
485 | local val = 0.65*5 | |
486 | for i = 0 , 75 do | |
487 | sloc.Transparency = sloc.Transparency - 0.035 | |
488 | msh.Scale = msh.Scale + vt(val,val,val) | |
489 | sloc.Position = sloc.Position + vt(0,val,0) | |
490 | val = val - 0.0075*5 | |
491 | wait() | |
492 | end | |
493 | msh.Scale = msh.Scale - vt(1,1,1) | |
494 | sloc.Transparency = sloc.Transparency + 0.015 | |
495 | local spart = Instance.new("Part",workspace) | |
496 | local msh2 = Instance.new("SpecialMesh",spart) | |
497 | msh2.MeshType = "Sphere" | |
498 | spart.Size = vt(2,2,2) | |
499 | spart.Shape = "Ball" | |
500 | spart.BrickColor = Character.Torso.BrickColor | |
501 | spart.Material = "Neon" | |
502 | spart.Transparency = 0 | |
503 | spart.Anchored = false | |
504 | msh2.Scale = msh.Scale/2 | |
505 | spart.Rotation = hed.Rotation | |
506 | spart.CanCollide = false | |
507 | spart.Position = sloc.Position + vt(math.random(-0,0),math.random(-0,0),math.random(-0,0)) | |
508 | local bv = Instance.new("BodyVelocity") | |
509 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
510 | bv.velocity = spart.CFrame.lookVector*75 | |
511 | bv.Parent = spart | |
512 | local tick = Instance.new("Sound",workspace) | |
513 | tick.SoundId = "rbxassetid://203691467" | |
514 | tick.Volume = 2 | |
515 | tick.Pitch = 0.75 | |
516 | tick:Play() | |
517 | sloc:Destroy() | |
518 | wait(0.00001) | |
519 | pewdiepie=spart.Touched:connect(function(hit) | |
520 | ExplodeMass(100,spart) | |
521 | end) | |
522 | sloc:Destroy() | |
523 | end | |
524 | if ultcooldown < 1 then | |
525 | for i = 0, 29 do | |
526 | ultcooldown = ultcooldown + 1 | |
527 | wait(1) | |
528 | end | |
529 | end | |
530 | end | |
531 | ||
532 | euler = CFrame.fromEulerAnglesXYZ | |
533 | angles = CFrame.Angles | |
534 | mr = math.rad | |
535 | local Weapon = {} | |
536 | local p = game.Players.LocalPlayer | |
537 | local char = p.Character | |
538 | local mouse = p:GetMouse() | |
539 | local larm = char["Left Arm"] | |
540 | local rarm = char["Right Arm"] | |
541 | local lleg = char["Left Leg"] | |
542 | local rleg = char["Right Leg"] | |
543 | local hed = char.Head | |
544 | local torso = char.Torso | |
545 | local hum = char.Humanoid | |
546 | local cam = game.Workspace.CurrentCamera | |
547 | local root = char.HumanoidRootPart | |
548 | local deb = false | |
549 | local shot = 0 | |
550 | local debris=game:service"Debris" | |
551 | local l = game:GetService("Lighting") | |
552 | local rs = game:GetService("RunService").RenderStepped | |
553 | ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1} | |
554 | math.randomseed(os.time()) | |
555 | for i,v in pairs (hed:GetChildren()) do | |
556 | if v:IsA("Sound") then | |
557 | v:Destroy() | |
558 | end | |
559 | end | |
560 | ||
561 | wait(0.016666666666667) | |
562 | script.Archivable = false | |
563 | Effects = {} | |
564 | local Player = game.Players.localPlayer | |
565 | local Character = Player.Character | |
566 | local Humanoid = Character.Humanoid | |
567 | local mouse = Player:GetMouse() | |
568 | local m = Instance.new("Model", Character) | |
569 | m.Name = "WeaponModel" | |
570 | local effect = Instance.new("Model", Character) | |
571 | effect.Name = "effecsfsafzx" | |
572 | local demon = Instance.new("Model", Character) | |
573 | demon.Name = "demdemd" | |
574 | local LeftArm = Character["Left Arm"] | |
575 | local RightArm = Character["Right Arm"] | |
576 | local LeftLeg = Character["Left Leg"] | |
577 | local RightLeg = Character["Right Leg"] | |
578 | local do2target = nil | |
579 | local Head = Character.Head | |
580 | local Torso = Character.Torso | |
581 | TorsoColor = Torso.BrickColor | |
582 | z = Instance.new("Sound", Torso) | |
583 | z.SoundId = "rbxassetid://181547615" -- Put Music ID Here. | |
584 | z.Looped = true | |
585 | z.Pitch = 1 | |
586 | z.Volume = 2 | |
587 | wait(.1) | |
588 | z:Play() | |
589 | local cam = game.Workspace.CurrentCamera | |
590 | local RootPart = Character.HumanoidRootPart | |
591 | local RootJoint = RootPart.RootJoint | |
592 | local equipped = false | |
593 | local attack = false | |
594 | local Anim = "Idle" | |
595 | local idle = 0 | |
596 | local attacktype = 1 | |
597 | local Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude | |
598 | local velocity = RootPart.Velocity.y | |
599 | local sine = 0 | |
600 | local change = 1 | |
601 | local mana = 0 | |
602 | local it = Instance.new | |
603 | vt = Vector3.new | |
604 | local grabbed = false | |
605 | local cf = CFrame.new | |
606 | local mr = math.rad | |
607 | local angles = CFrame.Angles | |
608 | local ud = UDim2.new | |
609 | local c3 = Color3.new | |
610 | local NeckCF = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
611 | Humanoid.Animator:Destroy() | |
612 | Character.Animate:Destroy() | |
613 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
614 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
615 | local LHCF = (CFrame.fromEulerAnglesXYZ(0, -1.6, 0)) | |
616 | RSH = nil | |
617 | RW = Instance.new("Weld") | |
618 | LW = Instance.new("Weld") | |
619 | RH = Torso["Right Hip"] | |
620 | LH = Torso["Left Hip"] | |
621 | RSH = Torso["Right Shoulder"] | |
622 | LSH = Torso["Left Shoulder"] | |
623 | RSH.Parent = nil | |
624 | LSH.Parent = nil | |
625 | RW.Name = "RW" | |
626 | RW.Part0 = Torso | |
627 | RW.C0 = cf(1.5, 0.5, 0) | |
628 | RW.C1 = cf(0, 0.5, 0) | |
629 | RW.Part1 = RightArm | |
630 | RW.Parent = Torso | |
631 | LW.Name = "LW" | |
632 | LW.Part0 = Torso | |
633 | LW.C0 = cf(-1.5, 0.5, 0) | |
634 | LW.C1 = cf(0, 0.5, 0) | |
635 | LW.Part1 = LeftArm | |
636 | LW.Parent = Torso | |
637 | clerp = function(a, b, t) | |
638 | ||
639 | return a:lerp(b, t) | |
640 | end | |
641 | ||
642 | local RbxUtility = LoadLibrary("RbxUtility") | |
643 | local Create = RbxUtility.Create | |
644 | RemoveOutlines = function(part) | |
645 | ||
646 | part.TopSurface = 10 | |
647 | end | |
648 | ||
649 | CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
650 | ||
651 | local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material}) | |
652 | RemoveOutlines(Part) | |
653 | return Part | |
654 | end | |
655 | ||
656 | CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
657 | ||
658 | local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale}) | |
659 | if Mesh == "SpecialMesh" then | |
660 | Msh.MeshType = MeshType | |
661 | Msh.MeshId = MeshId | |
662 | end | |
663 | return Msh | |
664 | end | |
665 | ||
666 | local co1 = 3 | |
667 | local co2 = 10 | |
668 | local co3 = 15 | |
669 | local co4 = 30 | |
670 | local cooldown1 = 0 | |
671 | local cooldown2 = 0 | |
672 | local cooldown3 = 0 | |
673 | local cooldown4 = 0 | |
674 | local maxEnergy = 100 | |
675 | local Energy = 0 | |
676 | local skill1stam = 1000 | |
677 | local skill2stam = 1000 | |
678 | local skill3stam = 1000 | |
679 | local skill4stam = 1000 | |
680 | local recovermana = 5 | |
681 | local skillcolorscheme = BrickColor.new("White").Color | |
682 | local scrn = Instance.new("ScreenGui", Player.PlayerGui) | |
683 | makeframe = function(par, trans, pos, size, color) | |
684 | ||
685 | local frame = Instance.new("Frame", par) | |
686 | frame.BackgroundTransparency = trans | |
687 | frame.BorderSizePixel = 0 | |
688 | frame.Position = pos | |
689 | frame.Size = size | |
690 | frame.BackgroundColor3 = color | |
691 | return frame | |
692 | end | |
693 | ||
694 | makelabel = function(par, text) | |
695 | ||
696 | local label = Instance.new("TextLabel", par) | |
697 | label.BackgroundTransparency = 1 | |
698 | label.Size = UDim2.new(1, 0, 1, 0) | |
699 | label.Position = UDim2.new(0, 0, 0, 0) | |
700 | label.TextColor3 = Color3.new(255, 255, 255) | |
701 | label.TextStrokeTransparency = 0 | |
702 | label.FontSize = Enum.FontSize.Size32 | |
703 | label.Font = Enum.Font.SourceSansLight | |
704 | label.BorderSizePixel = 0 | |
705 | label.TextScaled = true | |
706 | label.Text = text | |
707 | end | |
708 | ||
709 | ArtificialHB = Instance.new("BindableEvent", script) | |
710 | ArtificialHB.Name = "Heartbeat" | |
711 | script:WaitForChild("Heartbeat") | |
712 | frame = 0.033333333333333 | |
713 | tf = 0 | |
714 | allowframeloss = false | |
715 | tossremainder = false | |
716 | lastframe = tick() | |
717 | script.Heartbeat:Fire() | |
718 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
719 | ||
720 | tf = tf + s | |
721 | if frame <= tf then | |
722 | if allowframeloss then | |
723 | script.Heartbeat:Fire() | |
724 | lastframe = tick() | |
725 | else | |
726 | for i = 1, math.floor(tf / frame) do | |
727 | script.Heartbeat:Fire() | |
728 | end | |
729 | lastframe = tick() | |
730 | end | |
731 | if tossremainder then | |
732 | tf = 0 | |
733 | else | |
734 | tf = tf - frame * math.floor(tf / frame) | |
735 | end | |
736 | end | |
737 | end | |
738 | ) | |
739 | swait = function(num) | |
740 | ||
741 | if num == 0 or num == nil then | |
742 | ArtificialHB.Event:wait() | |
743 | else | |
744 | for i = 0, num do | |
745 | ArtificialHB.Event:wait() | |
746 | end | |
747 | end | |
748 | end | |
749 | ||
750 | CreateWeld = function(Parent, Part0, Part1, C0, C1) | |
751 | ||
752 | local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1}) | |
753 | return Weld | |
754 | end | |
755 | ||
756 | rayCast = function(Position, Direction, Range, Ignore) | |
757 | ||
758 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
759 | end | |
760 | ||
761 | CreateSound = function(id, par, vol, pit) | |
762 | ||
763 | coroutine.resume(coroutine.create(function() | |
764 | ||
765 | local sou = Instance.new("Sound", par or workspace) | |
766 | sou.Volume = vol | |
767 | sou.Pitch = pit or 1 | |
768 | sou.SoundId = id | |
769 | swait() | |
770 | sou:play() | |
771 | game:GetService("Debris"):AddItem(sou, 6) | |
772 | end | |
773 | )) | |
774 | end | |
775 | ||
776 | local getclosest = function(obj, distance) | |
777 | ||
778 | local last, lastx = distance + 1, nil | |
779 | for i,v in pairs(workspace:GetChildren()) do | |
780 | if v:IsA("Model") and v ~= Character and v:findFirstChild("Humanoid") and v:findFirstChild("Torso") and v:findFirstChild("Humanoid").Health > 0 then | |
781 | local t = v.Torso | |
782 | local dist = t.Position - obj.Position.magnitude | |
783 | if dist <= distance and dist < last then | |
784 | last = dist | |
785 | lastx = v | |
786 | end | |
787 | end | |
788 | end | |
789 | return lastx | |
790 | end | |
791 | ||
792 | CreatePart2 = function(Parent, Material, Reflectance, Transparency, PartType, BColor, Name, Size) | |
793 | ||
794 | if PartType == "Part" then | |
795 | local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material}) | |
796 | RemoveOutlines(Part) | |
797 | return Part | |
798 | else | |
799 | do | |
800 | if PartType == "WedgePart" then | |
801 | local Part = Create("WedgePart")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material}) | |
802 | RemoveOutlines(Part) | |
803 | return Part | |
804 | end | |
805 | end | |
806 | end | |
807 | end | |
808 | ||
809 | for _,c in pairs(m:children()) do | |
810 | if c.className == "Weld" then | |
811 | table.insert(CBladeWelds, R67_PC6072) | |
812 | print(R66_PC6093) | |
813 | end | |
814 | end | |
815 | -- NIGH-OMNI FATAL ERROR at PC6105: Re-wrote register: R67 in 'AssignReg' | |
816 | ||
817 | -- NIGH-OMNI FATAL ERROR at PC6106: Re-wrote register: R67 in 'AssignReg' | |
818 | ||
819 | --Hit = CreatePart(demon, Enum.Material.Neon, 0, 0, "Really black", R66_PC6093, R67_PC6072(5, 0.200000003, 5)) | |
820 | -- NIGH-OMNI FATAL ERROR at PC6120: Re-wrote register: R66 in 'AssignReg' | |
821 | ||
822 | -- NIGH-OMNI FATAL ERROR at PC6134: Re-wrote register: R66 in 'AssignReg' | |
823 | ||
824 | HitWeld = CreateWeld(demon, Character.HumanoidRootPart, Hit, CFrame.new(0, R66_PC6093, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(R66_PC6093, -3.50004387, 0.0299530029, 0, 1, 0, 0, 0, -1, -1, 0, 0)) | |
825 | CreateMesh("SpecialMesh", Hit, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1033714", Vector3.new(0, 0, 0), Vector3.new(3, 4, 3)) | |
826 | FakeMotor = CreatePart(demon, Enum.Material.Neon, 0, 1, "Really black", "FakeMotor", Vector3.new(2.01999998, 0.2016, 2.36000013)) | |
827 | FakeMotorWeld = CreateWeld(demon, Hit, FakeMotor, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0199999809, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
828 | Part = CreatePart(demon, Enum.Material.Neon, 0, 0, "Really black", "Part", Vector3.new(2.25000024, 0.200000003, 2.55000019)) | |
829 | PartWeld = CreateWeld(demon, FakeMotor, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -5.06998634, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1)) | |
830 | CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1033714", Vector3.new(0, 0, 0), Vector3.new(2.5, 10, 2.5)) | |
831 | Part = CreatePart(demon, Enum.Material.Neon, 0, 0, "Really black", "Part", Vector3.new(2.25000024, 0.200000003, 2.55000019)) | |
832 | PartWeld = CreateWeld(demon, FakeMotor, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -7.1599884, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1)) | |
833 | CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1033714", Vector3.new(0, 0, 0), Vector3.new(1, 10, 1)) | |
834 | TornadoHat = CreatePart(demon, Enum.Material.Neon, 0.20000000298023, 0.5, "Really black", "TornadoHat", Vector3.new(3, 0.400000006, 3)) | |
835 | TornadoHatWeld = CreateWeld(demon, FakeMotor, TornadoHat, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00997924805, -1.65001106, -0.0699994564, 0, 0, -1, 0, -1, 0, -1, 0, 0)) | |
836 | CreateMesh("SpecialMesh", TornadoHat, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1051557", Vector3.new(0, 0, 0), Vector3.new(5, 5, 5)) | |
837 | local DBlade = {} | |
838 | local DBladeWelds = {} | |
839 | for _,c in pairs(demon:children()) do | |
840 | if c.className == "Part" then | |
841 | table.insert(DBlade, c) | |
842 | end | |
843 | end | |
844 | for _,c in pairs(demon:children()) do | |
845 | if c.className == "Weld" then | |
846 | table.insert(DBladeWelds, c) | |
847 | print(c) | |
848 | end | |
849 | end | |
850 | demon.Parent = nil | |
851 | ||
852 | Debounces = { | |
853 | CanAttack = true; | |
854 | NoIdl = false; | |
855 | Slashing = false; | |
856 | Slashed = false; | |
857 | RPunch = false; | |
858 | RPunched = false; | |
859 | LPunch = false; | |
860 | LPunched = false; | |
861 | } | |
862 | local Touche = {char.Name, } | |
863 | ---------------------------------------------------- | |
864 | function lerp(a, b, t) -- Linear interpolation | |
865 | return a + (b - a)*t | |
866 | end | |
867 | ||
868 | function slerp(a, b, t) --Spherical interpolation | |
869 | dot = a:Dot(b) | |
870 | if dot > 0.99999 or dot < -0.99999 then | |
871 | return t <= 0.5 and a or b | |
872 | else | |
873 | r = math.acos(dot) | |
874 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
875 | end | |
876 | end | |
877 | ||
878 | function matrixInterpolate(a, b, t) | |
879 | local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() | |
880 | local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() | |
881 | local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position | |
882 | local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right | |
883 | local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up | |
884 | local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back | |
885 | local t = v1:Dot(v2) | |
886 | if not (t < 0 or t == 0 or t > 0) then -- Failsafe | |
887 | return CFrame.new() | |
888 | end | |
889 | return CFrame.new( | |
890 | v0.x, v0.y, v0.z, | |
891 | v1.x, v1.y, v1.z, | |
892 | v2.x, v2.y, v2.z, | |
893 | v3.x, v3.y, v3.z) | |
894 | end | |
895 | ---------------------------------------------------- | |
896 | function genWeld(a,b) | |
897 | local w = Instance.new("Weld",a) | |
898 | w.Part0 = a | |
899 | w.Part1 = b | |
900 | return w | |
901 | end | |
902 | function weld(a, b) | |
903 | local weld = Instance.new("Weld") | |
904 | weld.Name = "W" | |
905 | weld.Part0 = a | |
906 | weld.Part1 = b | |
907 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
908 | weld.Parent = a | |
909 | return weld; | |
910 | end | |
911 | ---------------------------------------------------- | |
912 | function Lerp(c1,c2,al) | |
913 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
914 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
915 | for i,v in pairs(com1) do | |
916 | com1[i] = v+(com2[i]-v)*al | |
917 | end | |
918 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
919 | end | |
920 | ---------------------------------------------------- | |
921 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
922 | local wld = Instance.new("Weld", wp1) | |
923 | wld.Part0 = wp0 | |
924 | wld.Part1 = wp1 | |
925 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
926 | end | |
927 | ---------------------------------------------------- | |
928 | function Tween(a,b,c) | |
929 | return a+(b-a)*c | |
930 | end | |
931 | ---------------------------------------------------- | |
932 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
933 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
934 | local List = {} | |
935 | for i,v in pairs(workspace:GetChildren())do | |
936 | if v:IsA("Model")then | |
937 | if v:findFirstChild("Torso")then | |
938 | if v ~= char then | |
939 | if(v.Torso.Position -Position).magnitude <= Distance then | |
940 | table.insert(List,v) | |
941 | end | |
942 | end | |
943 | end | |
944 | end | |
945 | end | |
946 | return List | |
947 | end | |
948 | ||
949 | mod3 = Instance.new("Model",rleg) | |
950 | ||
951 | function Stomp() | |
952 | part=Instance.new('Part',mod3) | |
953 | part.Anchored=true | |
954 | part.CanCollide=false | |
955 | part.FormFactor='Custom' | |
956 | part.Size=Vector3.new(.2,.2,.2) | |
957 | part.CFrame=rleg.CFrame*CFrame.new(0,-2.4,0)*CFrame.Angles(math.rad(90),0,0) | |
958 | part.Transparency=.7 | |
959 | part.BrickColor=BrickColor.new('Bright green') | |
960 | mesh=Instance.new('SpecialMesh',part) | |
961 | mesh.MeshId='http://www.roblox.com/asset/?id=3270017' | |
962 | mesh.Scale=Vector3.new(25,25,25) | |
963 | part2=part:clone() | |
964 | part2.Parent=mod3 | |
965 | part2.BrickColor=BrickColor.new('Bright green') | |
966 | mesh2=mesh:clone() | |
967 | mesh2.Parent=part2 | |
968 | mesh2.Scale=Vector3.new(15,15,15) | |
969 | part3=part:clone() | |
970 | part3.Parent=mod3 | |
971 | part3.TopSurface=0 | |
972 | part3.BottomSurface=0 | |
973 | part3.CFrame=rleg.CFrame*CFrame.new(0,-3,0) | |
974 | mesh3=Instance.new('SpecialMesh',part3) | |
975 | mesh3.MeshType = 3 | |
976 | mesh3.Scale=Vector3.new(12,12,12) | |
977 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,50))do | |
978 | if v:FindFirstChild('Humanoid') then | |
979 | v.Humanoid:TakeDamage(math.random(20,60)) | |
980 | v.Humanoid.PlatformStand = true | |
981 | v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100 | |
982 | end | |
983 | end | |
984 | coroutine.resume(coroutine.create(function() | |
985 | for i=0,3.8,0.05 do | |
986 | wait() | |
987 | part.CFrame=part.CFrame | |
988 | part.Transparency=i | |
989 | mesh.Scale=mesh.Scale+Vector3.new(2.8,2.8,2.8) | |
990 | part2.CFrame=part2.CFrame | |
991 | part2.Transparency=i | |
992 | mesh2.Scale=mesh2.Scale+Vector3.new(1,1,1) | |
993 | part3.CFrame=part3.CFrame | |
994 | part3.Transparency=i | |
995 | mesh3.Scale=mesh3.Scale+Vector3.new(1.5,1.5,1.5) | |
996 | end | |
997 | end)) | |
998 | end | |
999 | ---------------------------------------------------- | |
1000 | function nwPrt(prnt,siz,cf,col) | |
1001 | local prt=Instance.new("Part") | |
1002 | prt.Parent=prnt | |
1003 | prt.FormFactor=3 | |
1004 | prt.Name="Part" | |
1005 | prt.Size=siz | |
1006 | prt.CanCollide=false | |
1007 | prt.Anchored=true | |
1008 | prt.Locked=true | |
1009 | prt.TopSurface=10 | |
1010 | prt.BottomSurface=10 | |
1011 | prt.FrontSurface=10 | |
1012 | prt.BackSurface=10 | |
1013 | prt.LeftSurface=10 | |
1014 | prt.RightSurface=10 | |
1015 | prt:BreakJoints() | |
1016 | prt.CFrame=cf or CFrame.new(30,10,30) | |
1017 | prt.Material="Neon" | |
1018 | prt.BrickColor=TorsoColor | |
1019 | m=Instance.new("SpecialMesh",prt) | |
1020 | m.MeshType=6 | |
1021 | return prt | |
1022 | end | |
1023 | ---------------------------------------------------- | |
1024 | function nwSnd(prnt,pch,vol,id) | |
1025 | local s=Instance.new("Sound",prnt) | |
1026 | s.Pitch=pch | |
1027 | s.Volume=vol | |
1028 | s.SoundId="rbxassetid://"..id | |
1029 | s.PlayOnRemove=true | |
1030 | return s | |
1031 | end | |
1032 | ---------------------------------------------------- | |
1033 | function newRay(start,face,range,wat) | |
1034 | local rey=Ray.new(start.p,(face.p-start.p).Unit*range) | |
1035 | hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat) | |
1036 | return rey,hit,pos | |
1037 | end | |
1038 | ---------------------------------------------------- | |
1039 | function Lerp(c1,c2,al) | |
1040 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
1041 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
1042 | for i,v in pairs(com1) do | |
1043 | com1[i] = v+(com2[i]-v)*al | |
1044 | end | |
1045 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
1046 | end | |
1047 | ---------------------------------------------------- | |
1048 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
1049 | local wld = Instance.new("Weld", wp1) | |
1050 | wld.Part0 = wp0 | |
1051 | wld.Part1 = wp1 | |
1052 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
1053 | end | |
1054 | ---------------------------------------------------- | |
1055 | function weld5(part0, part1, c0, c1) | |
1056 | weeld=Instance.new("Weld", part0) | |
1057 | weeld.Part0=part0 | |
1058 | weeld.Part1=part1 | |
1059 | weeld.C0=c0 | |
1060 | weeld.C1=c1 | |
1061 | return weeld | |
1062 | end | |
1063 | ---------------------------------------------------- | |
1064 | function HasntTouched(plrname) | |
1065 | local ret = true | |
1066 | for _, v in pairs(Touche) do | |
1067 | if v == plrname then | |
1068 | ret = false | |
1069 | end | |
1070 | end | |
1071 | return ret | |
1072 | end | |
1073 | ---------------------------------------------------- | |
1074 | newWeld(torso, larm, -1.5, 0.5, 0) | |
1075 | larm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
1076 | newWeld(torso, rarm, 1.5, 0.5, 0) | |
1077 | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) | |
1078 | newWeld(torso, hed, 0, 1.5, 0) | |
1079 | newWeld(torso, lleg, -0.5, -1, 0) | |
1080 | lleg.Weld.C1 = CFrame.new(0, 1, 0) | |
1081 | newWeld(torso, rleg, 0.5, -1, 0) | |
1082 | rleg.Weld.C1 = CFrame.new(0, 1, 0) | |
1083 | newWeld(root, torso, 0, -1, 0) | |
1084 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
1085 | ---------------------------------------------------- | |
1086 | z = Instance.new("Sound", char) | |
1087 | z.SoundId = "rbxassetid://0"-- | |
1088 | z.Looped = true | |
1089 | z.Pitch = 0 | |
1090 | z.Volume = 0 | |
1091 | wait(.1) | |
1092 | z:Play() | |
1093 | ---------------------------------------------------- | |
1094 | local Transforming = true | |
1095 | hum.WalkSpeed = 0 | |
1096 | local fx = Instance.new("Part",torso) | |
1097 | wit = torso.BrickColor.Color | |
1098 | wit2 = Color3.new(0,0,0) | |
1099 | local glowz = Instance.new("ParticleEmitter",fx) | |
1100 | glowz.LightEmission = 1 | |
1101 | glowz.Texture = "rbxassetid://284205403" | |
1102 | glowz.Color = ColorSequence.new(wit) | |
1103 | glowz.Size = NumberSequence.new(5) | |
1104 | glowz.Speed = NumberRange.new(25,50) | |
1105 | glowz.LockedToPart = false | |
1106 | glowz.Transparency = NumberSequence.new(0.75) | |
1107 | glowz.RotSpeed = NumberRange.new(-2000,2000) | |
1108 | glowz.Lifetime = NumberRange.new(1) | |
1109 | glowz.Rate = 50000 | |
1110 | glowz.VelocitySpread = 9001 | |
1111 | local glowz2 = Instance.new("ParticleEmitter",fx) | |
1112 | glowz2.LightEmission = 0.5 | |
1113 | glowz.Texture = "rbxassetid://284205403" | |
1114 | glowz2.Color = ColorSequence.new(wit2) | |
1115 | glowz2.Size = NumberSequence.new(5) | |
1116 | glowz2.Speed = NumberRange.new(25,50) | |
1117 | glowz2.LockedToPart = false | |
1118 | glowz2.Transparency = NumberSequence.new(0.75) | |
1119 | glowz2.RotSpeed = NumberRange.new(-2000,2000) | |
1120 | glowz2.Lifetime = NumberRange.new(1) | |
1121 | glowz2.Rate = 50000 | |
1122 | glowz2.VelocitySpread = 9001 | |
1123 | fx.Anchored = true | |
1124 | fx.Material = "Neon" | |
1125 | fx.CanCollide = false | |
1126 | fx.Locked = true | |
1127 | fx.Transparency = 1 | |
1128 | fx.Material = "Neon" | |
1129 | fx.Size = Vector3.new(1,1,1) | |
1130 | fx.TopSurface = "SmoothNoOutlines" | |
1131 | fx.BottomSurface = "SmoothNoOutlines" | |
1132 | fx.BrickColor = BrickColor.new("Really black") | |
1133 | fxm = Instance.new("SpecialMesh",fx) | |
1134 | fxm.MeshType = "Sphere" | |
1135 | local sa2 = Instance.new("Sound",torso) | |
1136 | sa2.SoundId = "rbxassetid://93724183" | |
1137 | sa2.Pitch = 0.5 | |
1138 | sa2.Volume = 5 | |
1139 | sa2.Looped = false | |
1140 | sa2:Play() | |
1141 | local value = 1 | |
1142 | fxm.Scale = Vector3.new(1,1,1) | |
1143 | for i = 1, 20 do rs:wait() | |
1144 | value = value - 0.05 | |
1145 | fx.Transparency = fx.Transparency - (1/20) | |
1146 | fx.CFrame = torso.CFrame | |
1147 | fxm.Scale = fxm.Scale + Vector3.new(value,value,value) | |
1148 | rs:wait() | |
1149 | end | |
1150 | ---------------------------------------------------- | |
1151 | GroundWave1 = function() | |
1152 | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
1153 | local Colors = {"Really red", "Really black"} | |
1154 | local wave = Instance.new("Part", torso) | |
1155 | wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
1156 | wave.Anchored = true | |
1157 | wave.CanCollide = false | |
1158 | wave.Locked = true | |
1159 | wave.Size = Vector3.new(1, 1, 1) | |
1160 | wave.TopSurface = "Smooth" | |
1161 | wave.BottomSurface = "Smooth" | |
1162 | wave.Transparency = 0.35 | |
1163 | wave.CFrame = HandCF | |
1164 | wm = Instance.new("SpecialMesh", wave) | |
1165 | wm.MeshId = "rbxassetid://3270017" | |
1166 | coroutine.wrap(function() | |
1167 | for i = 1, 30, 1 do | |
1168 | wm.Scale = Vector3.new(50, 50, 1 + i*50) | |
1169 | wave.Size = wm.Scale | |
1170 | wave.CFrame = HandCF | |
1171 | wave.Transparency = i/30 | |
1172 | wait() | |
1173 | end | |
1174 | wait() | |
1175 | wave:Destroy() | |
1176 | end)() | |
1177 | end | |
1178 | ---------------------------------------------------- | |
1179 | GroundWave = function() | |
1180 | if Transforming == true then | |
1181 | local value = 5 | |
1182 | local value2 = 10 | |
1183 | local value3 = 20 | |
1184 | local sa2 = Instance.new("Sound",torso) | |
1185 | sa2.SoundId = "rbxassetid://413682983" | |
1186 | sa2.Pitch = 1 | |
1187 | sa2.Volume = 10 | |
1188 | sa2.Looped = false | |
1189 | sa2:Play() | |
1190 | local wave = Instance.new("Part", torso) | |
1191 | local glowz = Instance.new("ParticleEmitter",wave) | |
1192 | glowz.LightEmission = 1 | |
1193 | glowz.Texture = "rbxassetid://284205403" | |
1194 | glowz.Color = ColorSequence.new(wit) | |
1195 | glowz.Size = NumberSequence.new(30) | |
1196 | glowz.Speed = NumberRange.new(25,100) | |
1197 | glowz.LockedToPart = false | |
1198 | glowz.Transparency = NumberSequence.new(0.75) | |
1199 | glowz.RotSpeed = NumberRange.new(-2000,2000) | |
1200 | glowz.Lifetime = NumberRange.new(1) | |
1201 | glowz.Rate = 50000 | |
1202 | glowz.VelocitySpread = 9001 | |
1203 | local glowz2 = Instance.new("ParticleEmitter",wave) | |
1204 | glowz2.LightEmission = 1 | |
1205 | glowz.Texture = "rbxassetid://284205403" | |
1206 | glowz2.Color = ColorSequence.new(wit) | |
1207 | glowz2.Size = NumberSequence.new(30) | |
1208 | glowz2.Speed = NumberRange.new(25,100) | |
1209 | glowz2.LockedToPart = false | |
1210 | glowz2.Transparency = NumberSequence.new(0.75) | |
1211 | glowz2.RotSpeed = NumberRange.new(-2000,2000) | |
1212 | glowz2.Lifetime = NumberRange.new(1) | |
1213 | glowz2.Rate = 50000 | |
1214 | glowz2.VelocitySpread = 9001 | |
1215 | wave.BrickColor = TorsoColor | |
1216 | wave.Anchored = true | |
1217 | wave.CanCollide = false | |
1218 | wave.Locked = true | |
1219 | wave.Size = Vector3.new(1, 1, 1) | |
1220 | wave.TopSurface = "Smooth" | |
1221 | wave.BottomSurface = "Smooth" | |
1222 | wave.Transparency = 0.35 | |
1223 | wave.CFrame = fx.CFrame | |
1224 | wave.Material = "Neon" | |
1225 | wm = Instance.new("SpecialMesh", wave) | |
1226 | wm.MeshType = "Sphere" | |
1227 | wm.Scale = Vector3.new(1,1,1) | |
1228 | local wave2 = Instance.new("Part", torso) | |
1229 | wave2.BrickColor = TorsoColor | |
1230 | wave2.Anchored = true | |
1231 | wave2.CanCollide = false | |
1232 | wave2.Locked = true | |
1233 | wave2.Size = Vector3.new(1, 1, 1) | |
1234 | wave2.TopSurface = "Smooth" | |
1235 | wave2.BottomSurface = "Smooth" | |
1236 | wave2.Transparency = 0.35 | |
1237 | wave2.CFrame = fx.CFrame | |
1238 | wave2.Material = "Neon" | |
1239 | wm2 = Instance.new("SpecialMesh", wave2) | |
1240 | wm2.MeshType = "FileMesh" | |
1241 | wm2.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1242 | wm2.Scale = Vector3.new(1,1,1) | |
1243 | local wave3 = Instance.new("Part", torso) | |
1244 | wave3.BrickColor = BrickColor.new("Really red") | |
1245 | wave3.Anchored = true | |
1246 | wave3.CanCollide = false | |
1247 | wave3.Locked = true | |
1248 | wave3.Size = Vector3.new(1, 1, 1) | |
1249 | wave3.TopSurface = "Smooth" | |
1250 | wave3.BottomSurface = "Smooth" | |
1251 | wave3.Transparency = 0.35 | |
1252 | wave3.CFrame = fx.CFrame | |
1253 | wave3.Material = "Neon" | |
1254 | wm3 = Instance.new("SpecialMesh", wave3) | |
1255 | wm3.MeshType = "FileMesh" | |
1256 | wm3.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1257 | wm3.Scale = Vector3.new(1,1,1) | |
1258 | coroutine.wrap(function() | |
1259 | for i = 1, 18, 1 do | |
1260 | value = value - 0.5 | |
1261 | value2 = value2 - 0.75*1.5 | |
1262 | value3 = value3 - 0.475*1.5 | |
1263 | wm.Scale = wm.Scale + Vector3.new(value*3.5,value*3.5,value*3.5) | |
1264 | wm2.Scale = wm.Scale + Vector3.new(value2*3.5,value2*3.5,0.5) | |
1265 | wm3.Scale = wm.Scale + Vector3.new(value3*3.5,value3*3.5,0.25) | |
1266 | --wave.Size = wm.Scale | |
1267 | wave.CFrame = fx.CFrame | |
1268 | wave.Transparency = i/14 | |
1269 | --wave2.Size = wm2.Scale | |
1270 | wave2.CFrame = fx.CFrame | |
1271 | wave2.Rotation = Vector3.new(90, 0, 0) | |
1272 | wave2.Transparency = i/14 | |
1273 | --wave3.Size = wm3.Scale | |
1274 | wave3.CFrame = fx.CFrame | |
1275 | wave3.Rotation = Vector3.new(90, 0, 0) | |
1276 | wave3.Transparency = i/14 | |
1277 | wait() | |
1278 | glowz.Rate = 0 | |
1279 | glowz2.Rate = 0 | |
1280 | end | |
1281 | wait() | |
1282 | wave:Destroy() | |
1283 | wave2:Destroy() | |
1284 | wave3:Destroy() | |
1285 | end)() | |
1286 | elseif Transforming == false then | |
1287 | wait() | |
1288 | end | |
1289 | end | |
1290 | ||
1291 | for i = 1, 100 do rs:wait() | |
1292 | fx.CFrame = torso.CFrame | |
1293 | end | |
1294 | ||
1295 | Spawn(function() | |
1296 | while wait(1) do | |
1297 | GroundWave() | |
1298 | end | |
1299 | end) | |
1300 | ||
1301 | wait(4) | |
1302 | ||
1303 | Transforming = false | |
1304 | ||
1305 | local value2 = 1 | |
1306 | for i = 1, 20 do rs:wait() | |
1307 | value2 = value2 - 0.05 | |
1308 | glowz.Rate = 0 | |
1309 | glowz2.Rate = 0 | |
1310 | fx.Transparency = fx.Transparency + (1/20) | |
1311 | fx.CFrame = torso.CFrame | |
1312 | fxm.Scale = fxm.Scale + Vector3.new(value2,value2,value2) | |
1313 | rs:wait() | |
1314 | end | |
1315 | glowz:Destroy() | |
1316 | glowz2:Destroy() | |
1317 | ||
1318 | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
1319 | local valuer = 5 | |
1320 | local valuer2 = 10 | |
1321 | local valuer3 = 15 | |
1322 | local sa2 = Instance.new("Sound",torso) | |
1323 | sa2.SoundId = "rbxassetid://130972023" | |
1324 | sa2.Pitch = 1 | |
1325 | sa2.Volume = 5 | |
1326 | sa2.Looped = false | |
1327 | sa2:Play() | |
1328 | local sar2 = Instance.new("Sound",torso) | |
1329 | sar2.SoundId = "rbxassetid://153274423" | |
1330 | sar2.Pitch = 1 | |
1331 | sar2.Volume = 5 | |
1332 | sar2.Looped = false | |
1333 | sar2:Play() | |
1334 | local wave = Instance.new("Part", torso) | |
1335 | wave.BrickColor = TorsoColor | |
1336 | wave.Anchored = true | |
1337 | wave.CanCollide = false | |
1338 | wave.Locked = true | |
1339 | wave.Size = Vector3.new(1, 1, 1) | |
1340 | wave.TopSurface = "Smooth" | |
1341 | wave.BottomSurface = "Smooth" | |
1342 | wave.Transparency = 0.35 | |
1343 | wave.CFrame = HandCF | |
1344 | wm = Instance.new("SpecialMesh", wave) | |
1345 | wm.MeshId = "rbxassetid://3270017" | |
1346 | local wave2 = Instance.new("Part", torso) | |
1347 | wave2.BrickColor = BrickColor.new("Really red") | |
1348 | wave2.Anchored = true | |
1349 | wave2.CanCollide = false | |
1350 | wave2.Locked = true | |
1351 | wave2.Size = Vector3.new(1, 1, 1) | |
1352 | wave2.TopSurface = "Smooth" | |
1353 | wave2.BottomSurface = "Smooth" | |
1354 | wave2.Transparency = 0.35 | |
1355 | wave2.CFrame = HandCF | |
1356 | wm2 = Instance.new("SpecialMesh", wave2) | |
1357 | wm2.MeshId = "rbxassetid://3270017" | |
1358 | local wave3 = Instance.new("Part", torso) | |
1359 | wave3.BrickColor = TorsoColor | |
1360 | wave3.Anchored = true | |
1361 | wave3.CanCollide = false | |
1362 | wave3.Locked = true | |
1363 | wave3.Size = Vector3.new(1, 1, 1) | |
1364 | wave3.TopSurface = "Smooth" | |
1365 | wave3.BottomSurface = "Smooth" | |
1366 | wave3.Transparency = 0.35 | |
1367 | wave3.CFrame = HandCF | |
1368 | wm3 = Instance.new("SpecialMesh", wave3) | |
1369 | wm3.MeshId = "rbxassetid://3270017" | |
1370 | coroutine.wrap(function() | |
1371 | for i = 1, 14, 1 do | |
1372 | valuer = valuer - 0.35 | |
1373 | valuer2 = valuer - 0.45 | |
1374 | valuer3 = valuer3 - 0.475 | |
1375 | wm.Scale = wm.Scale + Vector3.new(valuer*2.5,valuer*2.5, 1 + i*200) | |
1376 | wave.Size = wm.Scale | |
1377 | wave.CFrame = HandCF | |
1378 | wave.Transparency = i/14 | |
1379 | wm2.Scale = wm2.Scale + Vector3.new(valuer2*2.5,valuer2*2.5, 0 + i*10) | |
1380 | wave2.Size = wm2.Scale | |
1381 | wave2.CFrame = HandCF | |
1382 | wave2.Transparency = i/14 | |
1383 | wm3.Scale = wm3.Scale + Vector3.new(valuer3*2.5,valuer3*2.5, 1) | |
1384 | wave3.Size = wm2.Scale | |
1385 | wave3.CFrame = HandCF | |
1386 | wave3.Transparency = i/14 | |
1387 | wait() | |
1388 | end | |
1389 | wait() | |
1390 | wave:Destroy() | |
1391 | wave2:Destroy() | |
1392 | end)() | |
1393 | hum.WalkSpeed = 16 | |
1394 | ---------------------------------------------------- | |
1395 | local cor = Instance.new("Part", char) | |
1396 | cor.Name = "Thingy" | |
1397 | cor.Locked = true | |
1398 | cor.BottomSurface = 0 | |
1399 | cor.CanCollide = false | |
1400 | cor.Size = Vector3.new(1, 13, 1) | |
1401 | cor.Transparency = 1 | |
1402 | cor.TopSurface = 0 | |
1403 | corw = Instance.new("Weld", cor) | |
1404 | corw.Part0 = rarm | |
1405 | corw.Part1 = cor | |
1406 | corw.C0 = CFrame.new(0, -1, -1.1) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
1407 | corw.C1 = CFrame.new(0, 0, 0) | |
1408 | weld1 = Instance.new("Weld", char) | |
1409 | weld1.Part0 = cor | |
1410 | weld1.Part1 = p6 | |
1411 | weld1.C0 = CFrame.new(0, 0, 0) | |
1412 | ---------------------------------------------------- | |
1413 | Blast = function() | |
1414 | local Colors = {"Really red", "Really black"} | |
1415 | local wave = Instance.new("Part", torso) | |
1416 | wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
1417 | wave.Anchored = true | |
1418 | wave.CanCollide = false | |
1419 | wave.Locked = true | |
1420 | wave.Size = Vector3.new(1, 1, 1) | |
1421 | wave.TopSurface = "Smooth" | |
1422 | wave.BottomSurface = "Smooth" | |
1423 | wave.Transparency = 0.35 | |
1424 | wave.CFrame = rarm.CFrame | |
1425 | wm = Instance.new("SpecialMesh", wave) | |
1426 | wm.MeshType = "Sphere" | |
1427 | wm.Scale = Vector3.new(1,1,1) | |
1428 | z = Instance.new("Sound",wave) | |
1429 | z.SoundId = "rbxassetid://237035051" | |
1430 | z.Volume = 1 | |
1431 | z.Pitch = .9 | |
1432 | z:Play() | |
1433 | coroutine.wrap(function() | |
1434 | for i = 1, 30, 1 do | |
1435 | wave.Size = Vector3.new(1 + i*4, 1 + i*4, 1 + i*4) | |
1436 | --wave.Size = wm.Scale | |
1437 | wave.CFrame = rarm.CFrame | |
1438 | wave.Transparency = (1/14) | |
1439 | rs:wait() | |
1440 | end | |
1441 | rs:wait() | |
1442 | wave:Destroy() | |
1443 | z:Destroy() | |
1444 | end)() | |
1445 | end | |
1446 | ---------------------------------------------------- | |
1447 | rarm.Touched:connect(function(ht) | |
1448 | hit = ht.Parent | |
1449 | if ht and hit:IsA("Model") then | |
1450 | if hit:FindFirstChild("Humanoid") then | |
1451 | if hit.Name ~= p.Name then | |
1452 | if Debounces.RPunch == true and Debounces.RPunched == false then | |
1453 | Debounces.RPunched = true | |
1454 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8)) | |
1455 | if Debounces.ks==true then | |
1456 | z = Instance.new("Sound",hed) | |
1457 | z.SoundId = "rbxassetid://169380525" | |
1458 | z.Pitch = ptz[math.random(1,#ptz)] | |
1459 | z.Volume = 1 | |
1460 | z:Play() | |
1461 | end | |
1462 | wait(.2) | |
1463 | Debounces.RPunched = false | |
1464 | end | |
1465 | end | |
1466 | end | |
1467 | elseif ht and hit:IsA("Hat") then | |
1468 | if hit.Parent.Name ~= p.Name then | |
1469 | if hit.Parent:FindFirstChild("Humanoid") then | |
1470 | if Debounces.RPunch == true and Debounces.RPunched == false then | |
1471 | Debounces.RPunched = true | |
1472 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8)) | |
1473 | if Debounces.ks==true then | |
1474 | z = Instance.new("Sound",hed) | |
1475 | z.SoundId = "rbxassetid://169380525" | |
1476 | z.Pitch = ptz[math.random(1,#ptz)] | |
1477 | z.Volume = 1 | |
1478 | z:Play() | |
1479 | end | |
1480 | wait(.2) | |
1481 | Debounces.RPunched = false | |
1482 | end | |
1483 | end | |
1484 | end | |
1485 | end | |
1486 | end) | |
1487 | larm.Touched:connect(function(ht) | |
1488 | hit = ht.Parent | |
1489 | if ht and hit:IsA("Model") then | |
1490 | if hit:FindFirstChild("Humanoid") then | |
1491 | if hit.Name ~= p.Name then | |
1492 | if Debounces.LPunch == true and Debounces.LPunched == false then | |
1493 | Debounces.LPunched = true | |
1494 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8)) | |
1495 | if Debounces.ks2==true then | |
1496 | z = Instance.new("Sound",hed) | |
1497 | z.SoundId = "rbxassetid://169380525" | |
1498 | z.Pitch = ptz[math.random(1,#ptz)] | |
1499 | z.Volume = 1 | |
1500 | z:Play() | |
1501 | end | |
1502 | wait(.2) | |
1503 | Debounces.LPunched = false | |
1504 | end | |
1505 | end | |
1506 | end | |
1507 | elseif ht and hit:IsA("Hat") then | |
1508 | if hit.Parent.Name ~= p.Name then | |
1509 | if hit.Parent:FindFirstChild("Humanoid") then | |
1510 | if Debounces.LPunch == true and Debounces.LPunched == false then | |
1511 | Debounces.LPunched = true | |
1512 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8)) | |
1513 | if Debounces.ks2==true then | |
1514 | z = Instance.new("Sound",hed) | |
1515 | z.SoundId = "rbxassetid://169380525" | |
1516 | z.Pitch = ptz[math.random(1,#ptz)] | |
1517 | z.Volume = 1 | |
1518 | z:Play() | |
1519 | end | |
1520 | wait(.2) | |
1521 | Debounces.LPunched = false | |
1522 | end | |
1523 | end | |
1524 | end | |
1525 | end | |
1526 | end) | |
1527 | ---------------------------------------------------- | |
1528 | mod4 = Instance.new("Model",char) | |
1529 | ||
1530 | ptez = {0.7, 0.8, 0.9, 1} | |
1531 | ||
1532 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
1533 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
1534 | local List = {} | |
1535 | for i,v in pairs(workspace:GetChildren())do | |
1536 | if v:IsA("Model")then | |
1537 | if v:findFirstChild("Torso")then | |
1538 | if v ~= char then | |
1539 | if(v.Torso.Position -Position).magnitude <= Distance then | |
1540 | table.insert(List,v) | |
1541 | end | |
1542 | end | |
1543 | end | |
1544 | end | |
1545 | end | |
1546 | return List | |
1547 | end | |
1548 | ||
1549 | function Punch() | |
1550 | part=Instance.new('Part',mod4) | |
1551 | part.Anchored=true | |
1552 | part.CanCollide=false | |
1553 | part.FormFactor='Custom' | |
1554 | part.Size=Vector3.new(.2,.2,.2) | |
1555 | part.CFrame=root.CFrame*CFrame.new(0,1.5,-2.4)*CFrame.Angles(math.rad(0),0,0) | |
1556 | part.Transparency=.7 | |
1557 | part.BrickColor=BrickColor.new('Really black') | |
1558 | mesh=Instance.new('SpecialMesh',part) | |
1559 | mesh.MeshId='http://www.roblox.com/asset/?id=3270017' | |
1560 | mesh.Scale=Vector3.new(3,3,3) | |
1561 | part2=Instance.new('Part',mod4) | |
1562 | part2.Anchored=true | |
1563 | part2.CanCollide=false | |
1564 | part2.FormFactor='Custom' | |
1565 | part2.Size=Vector3.new(.2,.2,.2) | |
1566 | part2.CFrame=root.CFrame*CFrame.new(0,1.5,-2.4)*CFrame.Angles(math.rad(90),0,0) | |
1567 | part2.Transparency=.7 | |
1568 | part2.BrickColor=BrickColor.new('Really black') | |
1569 | mesh2=Instance.new('SpecialMesh',part2) | |
1570 | mesh2.MeshId='http://www.roblox.com/asset/?id=20329976' | |
1571 | mesh2.Scale=Vector3.new(3,1.5,3) | |
1572 | for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do | |
1573 | if v:FindFirstChild('Humanoid') then | |
1574 | v.Humanoid:TakeDamage(math.random(2,6)) | |
1575 | end | |
1576 | end | |
1577 | coroutine.resume(coroutine.create(function() | |
1578 | for i=0,0.62,0.4 do | |
1579 | wait() | |
1580 | part.CFrame=part.CFrame | |
1581 | part.Transparency=i | |
1582 | mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4) | |
1583 | part2.CFrame=part2.CFrame | |
1584 | part2.Transparency=i | |
1585 | mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4) | |
1586 | end | |
1587 | part.Parent=nil | |
1588 | part2.Parent=nil | |
1589 | end)) | |
1590 | end | |
1591 | ---------------------------------------------------- | |
1592 | rarm.Touched:connect(function(ht) | |
1593 | hit = ht.Parent | |
1594 | if ht and hit:IsA("Model") then | |
1595 | if hit:FindFirstChild("Humanoid") then | |
1596 | if hit.Name ~= p.Name then | |
1597 | if Debounces.RPunch == true and Debounces.RPunched == false then | |
1598 | Debounces.RPunched = true | |
1599 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8)) | |
1600 | if Debounces.ks==true then | |
1601 | z = Instance.new("Sound",hed) | |
1602 | z.SoundId = "rbxassetid://169380525" | |
1603 | z.Pitch = ptz[math.random(1,#ptz)] | |
1604 | z.Volume = 1 | |
1605 | z:Play() | |
1606 | end | |
1607 | wait(.2) | |
1608 | Debounces.RPunched = false | |
1609 | end | |
1610 | end | |
1611 | end | |
1612 | elseif ht and hit:IsA("Hat") then | |
1613 | if hit.Parent.Name ~= p.Name then | |
1614 | if hit.Parent:FindFirstChild("Humanoid") then | |
1615 | if Debounces.RPunch == true and Debounces.RPunched == false then | |
1616 | Debounces.RPunched = true | |
1617 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(5,8)) | |
1618 | if Debounces.ks==true then | |
1619 | z = Instance.new("Sound",hed) | |
1620 | z.SoundId = "rbxassetid://169380525" | |
1621 | z.Pitch = ptz[math.random(1,#ptz)] | |
1622 | z.Volume = 1 | |
1623 | z:Play() | |
1624 | end | |
1625 | wait(.2) | |
1626 | Debounces.RPunched = false | |
1627 | end | |
1628 | end | |
1629 | end | |
1630 | end | |
1631 | end) | |
1632 | larm.Touched:connect(function(ht) | |
1633 | hit = ht.Parent | |
1634 | if ht and hit:IsA("Model") then | |
1635 | if hit:FindFirstChild("Humanoid") then | |
1636 | if hit.Name ~= p.Name then | |
1637 | if Debounces.LPunch == true and Debounces.LPunched == false then | |
1638 | Debounces.LPunched = true | |
1639 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8)) | |
1640 | if Debounces.ks2==true then | |
1641 | z = Instance.new("Sound",hed) | |
1642 | z.SoundId = "rbxassetid://169380525" | |
1643 | z.Pitch = ptz[math.random(1,#ptz)] | |
1644 | z.Volume = 1 | |
1645 | z:Play() | |
1646 | end | |
1647 | wait(.2) | |
1648 | Debounces.LPunched = false | |
1649 | end | |
1650 | end | |
1651 | end | |
1652 | elseif ht and hit:IsA("Hat") then | |
1653 | if hit.Parent.Name ~= p.Name then | |
1654 | if hit.Parent:FindFirstChild("Humanoid") then | |
1655 | if Debounces.LPunch == true and Debounces.LPunched == false then | |
1656 | Debounces.LPunched = true | |
1657 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,8)) | |
1658 | if Debounces.ks2==true then | |
1659 | z = Instance.new("Sound",hed) | |
1660 | z.SoundId = "rbxassetid://169380525" | |
1661 | z.Pitch = ptz[math.random(1,#ptz)] | |
1662 | z.Volume = 1 | |
1663 | z:Play() | |
1664 | end | |
1665 | wait(.2) | |
1666 | Debounces.LPunched = false | |
1667 | end | |
1668 | end | |
1669 | end | |
1670 | end | |
1671 | end) | |
1672 | ---------------------------------------------------- | |
1673 | local player = game.Players.LocalPlayer | |
1674 | local pchar = player.Character | |
1675 | local mouse = player:GetMouse() | |
1676 | local cam = workspace.CurrentCamera | |
1677 | ||
1678 | local rad = math.rad | |
1679 | ||
1680 | local keysDown = {} | |
1681 | local flySpeed = 0 | |
1682 | local MAX_FLY_SPEED = 3000 | |
1683 | ||
1684 | local canFly = false | |
1685 | local flyToggled = false | |
1686 | ||
1687 | local forward, side = 0, 0 | |
1688 | local lastForward, lastSide = 0, 0 | |
1689 | ||
1690 | local floatBP = Instance.new("BodyPosition") | |
1691 | floatBP.maxForce = Vector3.new(0, math.huge, 0) | |
1692 | local flyBV = Instance.new("BodyVelocity") | |
1693 | flyBV.maxForce = Vector3.new(9e9, 9e9, 9e9) | |
1694 | local turnBG = Instance.new("BodyGyro") | |
1695 | turnBG.maxTorque = Vector3.new(math.huge, math.huge, math.huge) | |
1696 | ||
1697 | mouse.KeyDown:connect(function(key) | |
1698 | keysDown[key] = true | |
1699 | ||
1700 | if key == "f" then | |
1701 | flyToggled = not flyToggled | |
1702 | ||
1703 | if not flyToggled then | |
1704 | stanceToggle = "Normal" | |
1705 | floatBP.Parent = nil | |
1706 | flyBV.Parent = nil | |
1707 | turnBG.Parent = nil | |
1708 | root.Velocity = Vector3.new() | |
1709 | pchar.Humanoid.PlatformStand = false | |
1710 | end | |
1711 | end | |
1712 | ||
1713 | end) | |
1714 | mouse.KeyUp:connect(function(key) | |
1715 | keysDown[key] = nil | |
1716 | end) | |
1717 | ||
1718 | local function updateFly() | |
1719 | ||
1720 | if not flyToggled then return end | |
1721 | ||
1722 | lastForward = forward | |
1723 | lastSide = side | |
1724 | ||
1725 | forward = 0 | |
1726 | side = 0 | |
1727 | ||
1728 | if keysDown.w then | |
1729 | forward = forward + 1 | |
1730 | end | |
1731 | if keysDown.s then | |
1732 | forward = forward - 1 | |
1733 | end | |
1734 | if keysDown.a then | |
1735 | side = side - 1 | |
1736 | end | |
1737 | if keysDown.d then | |
1738 | side = side + 1 | |
1739 | end | |
1740 | ||
1741 | canFly = (forward ~= 0 or side ~= 0) | |
1742 | ||
1743 | if canFly then | |
1744 | stanceToggle = "Floating" | |
1745 | turnBG.Parent = root | |
1746 | floatBP.Parent = nil | |
1747 | flyBV.Parent = root | |
1748 | ||
1749 | flySpeed = flySpeed + 1 + (flySpeed / MAX_FLY_SPEED) | |
1750 | if flySpeed > MAX_FLY_SPEED then flySpeed = MAX_FLY_SPEED end | |
1751 | else | |
1752 | floatBP.position = root.Position | |
1753 | floatBP.Parent = root | |
1754 | ||
1755 | flySpeed = flySpeed - 1 | |
1756 | if flySpeed < 0 then flySpeed = 0 end | |
1757 | end | |
1758 | ||
1759 | local camCF = cam.CoordinateFrame | |
1760 | local in_forward = canFly and forward or lastForward | |
1761 | local in_side = canFly and side or lastSide | |
1762 | ||
1763 | flyBV.velocity = ((camCF.lookVector * in_forward) + (camCF * CFrame.new(in_side, | |
1764 | in_forward * 0.2, 0).p) - camCF.p) * flySpeed | |
1765 | ||
1766 | turnBG.cframe = camCF * CFrame.Angles(-rad(forward * (flySpeed / MAX_FLY_SPEED)), 0, | |
1767 | 0) | |
1768 | end | |
1769 | ||
1770 | game:service'RunService'.RenderStepped:connect(function() | |
1771 | if flyToggled then | |
1772 | pchar.Humanoid.PlatformStand = true | |
1773 | end | |
1774 | updateFly() | |
1775 | end) | |
1776 | ------------------------------- | |
1777 | mouse.KeyDown:connect(function(key) | |
1778 | if key == "q" then | |
1779 | if Debounces.CanAttack == true then | |
1780 | Debounces.CanAttack = false | |
1781 | Debounces.NoIdl = true | |
1782 | Debounces.on = true | |
1783 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
1784 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
1785 | local List = {} | |
1786 | for i,v in pairs(workspace:GetChildren())do | |
1787 | if v:IsA("Model")then | |
1788 | if v:findFirstChild("Torso")then | |
1789 | if v ~= char then | |
1790 | if(v.Torso.Position -Position).magnitude <= Distance then | |
1791 | table.insert(List,v) | |
1792 | end | |
1793 | end | |
1794 | end | |
1795 | end | |
1796 | end | |
1797 | return List | |
1798 | end | |
1799 | z = Instance.new("Sound",workspace) | |
1800 | z.SoundId = "rbxassetid://232213955" | |
1801 | z.Pitch = 0.75 | |
1802 | z.Volume = 5 | |
1803 | wait(0.2) | |
1804 | z:Play() | |
1805 | sp = Instance.new("Part",rarm) | |
1806 | sp.Anchored = true | |
1807 | sp.CanCollide = false | |
1808 | sp.Locked = true | |
1809 | sp.Transparency = 0 | |
1810 | sp.Material = "Neon" | |
1811 | sp.Size = Vector3.new(2,2,2) | |
1812 | sp.TopSurface = "SmoothNoOutlines" | |
1813 | sp.BottomSurface = "SmoothNoOutlines" | |
1814 | sp.BrickColor = TorsoColor | |
1815 | spm = Instance.new("SpecialMesh",sp) | |
1816 | spm.MeshType = "Sphere" | |
1817 | spm.Scale = Vector3.new(42,42,42) | |
1818 | sp2 = Instance.new("Part", rarm) | |
1819 | sp2.Name = "Energy" | |
1820 | sp2.BrickColor = TorsoColor | |
1821 | sp2.Size = Vector3.new(1, 1, 1) | |
1822 | sp2.Shape = "Ball" | |
1823 | sp2.CanCollide = false | |
1824 | sp2.Anchored = true | |
1825 | sp2.Locked = true | |
1826 | sp2.TopSurface = 0 | |
1827 | sp2.BottomSurface = 0 | |
1828 | sp2.Transparency = 1 | |
1829 | spm2 = Instance.new("SpecialMesh",sp2) | |
1830 | spm2.MeshId = "rbxassetid://9982590" | |
1831 | spm2.Scale = Vector3.new(4,4,4) | |
1832 | sp3 = Instance.new("Part", rarm) | |
1833 | sp3.Name = "Energy" | |
1834 | sp3.BrickColor = TorsoColor | |
1835 | sp3.Size = Vector3.new(1, 1, 1) | |
1836 | sp3.Shape = "Ball" | |
1837 | sp3.CanCollide = false | |
1838 | sp3.Anchored = true | |
1839 | sp3.Locked = true | |
1840 | sp3.TopSurface = 0 | |
1841 | sp3.BottomSurface = 0 | |
1842 | sp3.Transparency = 1 | |
1843 | spm3 = Instance.new("SpecialMesh",sp2) | |
1844 | spm3.MeshId = "rbxassetid://9982590" | |
1845 | spm3.Scale = Vector3.new(8,8,8) | |
1846 | for i = 1, 20 do | |
1847 | spm.Scale = spm.Scale - Vector3.new(2,2,2) | |
1848 | sp.CFrame = root.CFrame*CFrame.new(0,1,-2) | |
1849 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(-6),math.rad(8)), 0.4) | |
1850 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.4) | |
1851 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4) | |
1852 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
1853 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
1854 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
1855 | if Debounces.on == false then break end | |
1856 | rs:wait() | |
1857 | end | |
1858 | for i = 1, 100, 20 do rs:wait() | |
1859 | sp.CFrame = root.CFrame*CFrame.new(0,1,-2) | |
1860 | end | |
1861 | for i = 1, 20 do | |
1862 | sp.CFrame = root.CFrame*CFrame.new(0,1,-2) | |
1863 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(8)), 0.4) | |
1864 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.4) | |
1865 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(10),math.rad(-30),0), 0.4) | |
1866 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), math.rad(0)), 0.4) | |
1867 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
1868 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
1869 | if Debounces.on == false then break end | |
1870 | rs:wait() | |
1871 | end | |
1872 | sp.Transparency = 1 | |
1873 | for i = 1, 20 do | |
1874 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(8)), 0.4) | |
1875 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.62,-.2)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.4) | |
1876 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.4) | |
1877 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(-50), math.rad(0)), 0.4) | |
1878 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
1879 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
1880 | if Debounces.on == false then break end | |
1881 | rs:wait() | |
1882 | end | |
1883 | wait(1) | |
1884 | sp.Transparency = 0 | |
1885 | sp2.Transparency = 0.84 | |
1886 | for i = 1, 20 do | |
1887 | --spm.Scale = spm.Scale - Vector3.new(1,1,1) | |
1888 | sp.CFrame = rarm.CFrame*CFrame.new(0,-1,0) | |
1889 | sp2.CFrame = sp.CFrame * CFrame.new(0,0,0) * CFrame.Angles(math.rad(-i), math.rad(-i), math.rad(i)) | |
1890 | sp3.CFrame = sp.CFrame * CFrame.new(0,0,0) * CFrame.Angles(math.rad(-i), math.rad(-i), math.rad(i)) | |
1891 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(110),math.rad(-6),math.rad(140)), 0.4) | |
1892 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(80),math.rad(6),math.rad(-40)), 0.2) | |
1893 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(30),0), 0.2) | |
1894 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3) | |
1895 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(20), 0, math.rad(-14)), 0.2) | |
1896 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-16), 0, math.rad(8)), 0.2) | |
1897 | if Debounces.on == false then break end | |
1898 | rs:wait() | |
1899 | end | |
1900 | for i = 1, 2880, 50 do | |
1901 | rs:wait() | |
1902 | sp.CFrame = rarm.CFrame*CFrame.new(0,-1,0) | |
1903 | sp2.CFrame = rarm.CFrame * CFrame.new(0,-1,0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10)) | |
1904 | sp3.CFrame = rarm.CFrame * CFrame.new(0,-1,0) * CFrame.Angles(math.rad(-i/-10), math.rad(-i/-10), math.rad(i/-10)) | |
1905 | rs:wait() | |
1906 | end | |
1907 | sp:Destroy() | |
1908 | sp2:Destroy() | |
1909 | sp3:Destroy() | |
1910 | local X = Instance.new("Part",char) | |
1911 | local O = Instance.new("ObjectValue",X) | |
1912 | O.Name = "creator" | |
1913 | X.Locked = true | |
1914 | X.Name = "Shell" | |
1915 | X.Anchored = false | |
1916 | X.CanCollide = false | |
1917 | X.Transparency = 0 | |
1918 | X.Reflectance = 0 | |
1919 | X.BottomSurface = 0 | |
1920 | X.TopSurface = 0 | |
1921 | X.Shape = 0 | |
1922 | local V = Instance.new("ObjectValue",X) | |
1923 | V.Value = char | |
1924 | V.Name = "creator" | |
1925 | X.BrickColor = TorsoColor | |
1926 | X.Size = Vector3.new(2,2,2) | |
1927 | X.Material = "Neon" | |
1928 | local Z = Instance.new("SpecialMesh",X) | |
1929 | Z.MeshType = "Sphere" | |
1930 | Z.Scale = Vector3.new(0.5,0.5,1) | |
1931 | X.CFrame = rarm.CFrame*CFrame.new(-3,0,0) | |
1932 | local bv = Instance.new("BodyVelocity",X) | |
1933 | bv.maxForce = Vector3.new(99999,99999,99999) | |
1934 | X.CFrame = CFrame.new(X.Position,mouse.Hit.p) | |
1935 | bv.velocity = X.CFrame.lookVector*75 | |
1936 | ||
1937 | Explode = X.Touched:connect(function(hit) | |
1938 | if hit ~= char and hit.Name ~= "Shell" then | |
1939 | local cf = X.CFrame | |
1940 | bv:Destroy() | |
1941 | X.Anchored = true | |
1942 | Z:Remove() | |
1943 | Explode:disconnect() | |
1944 | X.Size = Vector3.new(6,6,6) | |
1945 | X.Touched:connect(function(hit) end) | |
1946 | X.CanCollide = false | |
1947 | local part3 = Instance.new("Part", rarm) | |
1948 | part3.Anchored=true | |
1949 | part3.CanCollide=false | |
1950 | part3.Locked = true | |
1951 | part3.TopSurface = "SmoothNoOutlines" | |
1952 | part3.BottomSurface = "SmoothNoOutlines" | |
1953 | part3.FormFactor='Custom' | |
1954 | part3.Size=Vector3.new(2,2, 2) | |
1955 | part3.CFrame=X.CFrame | |
1956 | part3.Transparency=0 | |
1957 | part3.BrickColor=TorsoColor | |
1958 | local mesh3 = Instance.new("SpecialMesh",part3) | |
1959 | mesh3.MeshType = "Sphere" | |
1960 | mesh3.Scale = Vector3.new(2,2,2) | |
1961 | --debris:AddItem(X,8) | |
1962 | local part4 = Instance.new("Part", rarm) | |
1963 | part4.Material = "Neon" | |
1964 | part4.Anchored=true | |
1965 | part4.CanCollide=false | |
1966 | part4.Locked = true | |
1967 | part4.TopSurface = "SmoothNoOutlines" | |
1968 | part4.BottomSurface = "SmoothNoOutlines" | |
1969 | part4.FormFactor='Custom' | |
1970 | part4.Size=Vector3.new(2,2, 2) | |
1971 | part4.CFrame=X.CFrame | |
1972 | part4.Transparency=0 | |
1973 | part4.BrickColor=BrickColor.new("Black") | |
1974 | local mesh4 = Instance.new("SpecialMesh",part4) | |
1975 | mesh4.MeshType = "Sphere" | |
1976 | mesh4.Scale = Vector3.new(1,1,1) | |
1977 | local part7 = Instance.new("Part", rarm) | |
1978 | part7.Material = "Neon" | |
1979 | part7.Anchored=true | |
1980 | part7.CanCollide=false | |
1981 | part7.Locked = true | |
1982 | part7.TopSurface = "SmoothNoOutlines" | |
1983 | part7.BottomSurface = "SmoothNoOutlines" | |
1984 | part7.FormFactor='Custom' | |
1985 | part7.Size=Vector3.new(2,2, 2) | |
1986 | part7.CFrame=X.CFrame | |
1987 | part7.Transparency=0 | |
1988 | part7.BrickColor=BrickColor.new("Really red") | |
1989 | local mesh7 = Instance.new("SpecialMesh",part7) | |
1990 | mesh7.MeshType = "Sphere" | |
1991 | mesh7.Scale = Vector3.new(0.2, 0.2, 0.2) | |
1992 | --[[X.Touched:connect(function(ht) | |
1993 | hit = ht.Parent | |
1994 | if ht and hit:IsA("Model") then | |
1995 | if hit:FindFirstChild("Humanoid") then | |
1996 | if hit.Name ~= p.Name then | |
1997 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6)) | |
1998 | wait(.3) | |
1999 | end | |
2000 | end | |
2001 | elseif ht and hit:IsA("Hat") then | |
2002 | if hit.Parent.Name ~= p.Name then | |
2003 | if hit.Parent:FindFirstChild("Humanoid") then | |
2004 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6)) | |
2005 | wait(.3) | |
2006 | end | |
2007 | end | |
2008 | end | |
2009 | end) | |
2010 | part3.Touched:connect(function(ht) | |
2011 | hit = ht.Parent | |
2012 | if ht and hit:IsA("Model") then | |
2013 | if hit:FindFirstChild("Humanoid") then | |
2014 | if hit.Name ~= p.Name then | |
2015 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6)) | |
2016 | wait(.3) | |
2017 | end | |
2018 | end | |
2019 | elseif ht and hit:IsA("Hat") then | |
2020 | if hit.Parent.Name ~= p.Name then | |
2021 | if hit.Parent:FindFirstChild("Humanoid") then | |
2022 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(4,6)) | |
2023 | wait(.3) | |
2024 | end | |
2025 | end | |
2026 | end | |
2027 | end)]]-- | |
2028 | for i,v in pairs(FindNearestTorso(X.CFrame.p,140))do | |
2029 | if v:FindFirstChild('Humanoid') then | |
2030 | v.Humanoid:TakeDamage(math.random(60,90)) | |
2031 | v.Humanoid.PlatformStand = true | |
2032 | v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100 | |
2033 | end | |
2034 | end | |
2035 | ||
2036 | local acos = math.acos | |
2037 | local sqrt = math.sqrt | |
2038 | local Vec3 = Vector3.new | |
2039 | local fromAxisAngle = CFrame.fromAxisAngle | |
2040 | ||
2041 | local function toAxisAngle(CFr) | |
2042 | local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components() | |
2043 | local Angle = math.acos((R00+R11+R22-1)/2) | |
2044 | local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
2045 | A = A == 0 and 0.00001 or A | |
2046 | local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
2047 | B = B == 0 and 0.00001 or B | |
2048 | local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
2049 | C = C == 0 and 0.00001 or C | |
2050 | local x = (R21-R12)/sqrt(A) | |
2051 | local y = (R02-R20)/sqrt(B) | |
2052 | local z = (R10-R01)/sqrt(C) | |
2053 | return Vec3(x,y,z),Angle | |
2054 | end | |
2055 | ||
2056 | function ApplyTrig(Num,Func) | |
2057 | local Min,Max = Func(0),Func(1) | |
2058 | local i = Func(Num) | |
2059 | return (i-Min)/(Max-Min) | |
2060 | end | |
2061 | ||
2062 | function LerpCFrame(CFrame1,CFrame2,Num) | |
2063 | local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2) | |
2064 | return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num | |
2065 | end | |
2066 | ||
2067 | function Crater(Torso,Radius) | |
2068 | Spawn(function() | |
2069 | local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10) | |
2070 | local Ignore = {} | |
2071 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do | |
2072 | if v.Character ~= nil then | |
2073 | Ignore[#Ignore+1] = v.Character | |
2074 | end | |
2075 | end | |
2076 | local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray,Ignore) | |
2077 | if Hit == nil then return end | |
2078 | local Parts = {} | |
2079 | for i = 1,360,10 do | |
2080 | local P = Instance.new("Part",Torso.Parent) | |
2081 | P.Anchored = true | |
2082 | P.FormFactor = "Custom" | |
2083 | P.BrickColor = Hit.BrickColor | |
2084 | P.Material = Hit.Material | |
2085 | P.TopSurface = "Smooth" | |
2086 | P.BottomSurface = "Smooth" | |
2087 | P.Size = Vector3.new(10,20,20)*(math.random(80,100)/100) | |
2088 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,7,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))) | |
2089 | Parts[#Parts+1] = {P,P.CFrame,((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,1,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius)*CFrame.Angles(math.rad(math.random(-50,-20)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15))),P.Size} | |
2090 | if math.random(0,5) == 0 then -- rubble | |
2091 | local P = Instance.new("Part",Torso.Parent) | |
2092 | P.Anchored = true | |
2093 | P.FormFactor = "Custom" | |
2094 | P.BrickColor = Hit.BrickColor | |
2095 | P.Material = Hit.Material | |
2096 | P.TopSurface = "Smooth" | |
2097 | P.BottomSurface = "Smooth" | |
2098 | P.Size = Vector3.new(4,4,4)*(math.random(80,100)/100) | |
2099 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,2.5,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50))) | |
2100 | Parts[#Parts+1] = {P,P.CFrame,(CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius-8)*CFrame.Angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90))),P.Size} | |
2101 | end | |
2102 | end | |
2103 | for i = 0,1,0.05 do | |
2104 | for i2,v in pairs(Parts) do | |
2105 | v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos)) | |
2106 | end | |
2107 | wait(0.02) | |
2108 | end | |
2109 | for i,v in pairs(Parts) do | |
2110 | if v[1].Size.X > 2.1 then | |
2111 | v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0) | |
2112 | end | |
2113 | v[1].Anchored = false | |
2114 | end | |
2115 | for i = 0,1,0.05 do | |
2116 | for i2,v in pairs(Parts) do | |
2117 | v[1].Transparency = i | |
2118 | if i == 1 then | |
2119 | v[1]:Destroy() | |
2120 | elseif i >= 0.25 then | |
2121 | v[1].CanCollide = false | |
2122 | end | |
2123 | end | |
2124 | wait(0.02) | |
2125 | end | |
2126 | Parts = nil | |
2127 | end) | |
2128 | end | |
2129 | ||
2130 | ROW = function(out, trans, s, wt, t, ang, plus) | |
2131 | for i = 1, 360, 360/t do | |
2132 | local c = Instance.new("Part", game.Workspace) | |
2133 | c.FormFactor = 3 | |
2134 | c.TopSurface = 0 | |
2135 | c.BottomSurface = 0 | |
2136 | c.Size = s | |
2137 | c.Anchored = true | |
2138 | c.CanCollide = wt | |
2139 | c.Material=workspace.Base.Material | |
2140 | c.Transparency = trans | |
2141 | c.BrickColor = workspace.Base.BrickColor | |
2142 | c.CFrame = CFrame.new(X.CFrame.x,0,X.CFrame.z) * CFrame.Angles(0, math.rad(i + plus), 0) * CFrame.new(0, 0, out) * ang | |
2143 | c.Locked=true | |
2144 | game.Debris:AddItem(c,15) | |
2145 | end | |
2146 | end | |
2147 | ||
2148 | Part = function(x,y,z,color,tr,cc,an,parent) | |
2149 | local p = Instance.new('Part',parent or Weapon) | |
2150 | p.formFactor = 'Custom' | |
2151 | p.Size = Vector3.new(x,y,z) | |
2152 | p.BrickColor = BrickColor.new(color) | |
2153 | p.CanCollide = cc | |
2154 | p.Transparency = tr | |
2155 | p.Anchored = an | |
2156 | p.TopSurface,p.BottomSurface = 0,0 | |
2157 | p.Locked=true | |
2158 | p:BreakJoints() | |
2159 | return p end | |
2160 | ||
2161 | Mesh = function(par,num,x,y,z) | |
2162 | local msh = _ | |
2163 | if num == 1 then msh = Instance.new("CylinderMesh",par) | |
2164 | elseif num == 2 then msh = Instance.new("SpecialMesh",par) msh.MeshType = 3 | |
2165 | elseif num == 3 then msh = Instance.new("BlockMesh",par) | |
2166 | elseif num == 4 then msh = Instance.new("SpecialMesh",par) msh.MeshType = "Torso" | |
2167 | elseif type(num) == 'string' then msh = Instance.new("SpecialMesh",par) msh.MeshId = num | |
2168 | end msh.Scale = Vector3.new(x,y,z) | |
2169 | return msh end | |
2170 | ||
2171 | function explosion(col1,col2,cfr,sz,rng,dmg) | |
2172 | local a= Part(1,1,1,col1,.5,false,true,workspace) | |
2173 | local a2= Part(1,1,1,col2,.5,false,true,workspace) | |
2174 | local a3= Part(1,1,1,col2,.5,false,true,workspace) | |
2175 | v1,v2,v3=sz.x,sz.y,sz.z | |
2176 | local m= Mesh(a,'http://www.roblox.com/asset/?id=1185246',v1,v2,v3) | |
2177 | local m2= Mesh(a2,3,v1/3,v2/3,v3/3) | |
2178 | local m3= Mesh(a3,3,v1/3,v2/3,v3/3) | |
2179 | a.CFrame=cfr | |
2180 | a2.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random()) | |
2181 | a3.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random()) | |
2182 | ||
2183 | Spawn(function() | |
2184 | while wait() do | |
2185 | if a.Transparency >= 1 then a:Destroy() a2:Destroy() a3:Destroy() break end | |
2186 | m.Scale=m.Scale+Vector3.new(.1,0.1,0.1) | |
2187 | m2.Scale=m2.Scale+Vector3.new(.1,0.1,0.1) | |
2188 | m3.Scale=m3.Scale+Vector3.new(.1,0.1,0.1) | |
2189 | a.Transparency=a.Transparency+0.05 | |
2190 | a2.Transparency=a2.Transparency+0.05 | |
2191 | a3.Transparency=a3.Transparency+0.05 | |
2192 | end | |
2193 | end) | |
2194 | end | |
2195 | ||
2196 | Crater(X,20) | |
2197 | ROW(12, 0, Vector3.new(34.5, 30, 3), true, 8, CFrame.Angles(math.rad(math.random (30,60)), 0, math.rad (math.random(-30,30))), 0) | |
2198 | z = Instance.new("Sound",workspace) | |
2199 | z.SoundId = "rbxassetid://231917744" | |
2200 | z.Pitch = .5 | |
2201 | z.Volume = 5 | |
2202 | z1 = Instance.new("Sound",workspace) | |
2203 | z1.SoundId = "rbxassetid://231917744" | |
2204 | z1.Pitch = .5 | |
2205 | z1.Volume = 5 | |
2206 | z2 = Instance.new("Sound",workspace) | |
2207 | z2.SoundId = "rbxassetid://231917744" | |
2208 | z2.Pitch = .5 | |
2209 | z2.Volume = 5 | |
2210 | z3 = Instance.new("Sound",workspace) | |
2211 | z3.SoundId = "rbxassetid://245537790" | |
2212 | z3.Pitch = .7 | |
2213 | z3.Volume = 5 | |
2214 | z4 = Instance.new("Sound",workspace) | |
2215 | z4.SoundId = "rbxassetid://245537790" | |
2216 | z4.Pitch = .7 | |
2217 | z4.Volume = 5 | |
2218 | z4a = Instance.new("Sound",workspace) | |
2219 | z4a.SoundId = "rbxassetid://419447292" | |
2220 | z4a.Pitch = 1 | |
2221 | z4a.Volume = 5 | |
2222 | z3a = Instance.new("Sound",workspace) | |
2223 | z3a.SoundId = "rbxassetid://421328847" | |
2224 | z3a.Pitch = 1 | |
2225 | z3a.Volume = 5 | |
2226 | wait(0.1) | |
2227 | z:Play() | |
2228 | z1:Play() | |
2229 | z2:Play() | |
2230 | z3:Play() | |
2231 | z4:Play() | |
2232 | z3a:Play() | |
2233 | z4a:Play() | |
2234 | ||
2235 | local part=Instance.new('Part',rarm) | |
2236 | part.Anchored=true | |
2237 | part.CanCollide=false | |
2238 | part.Locked = true | |
2239 | part.FormFactor='Custom' | |
2240 | part.Size=Vector3.new(2,2,2) | |
2241 | part.CFrame=X.CFrame*CFrame.new(0,0,0) | |
2242 | part.Transparency=0 | |
2243 | part.BrickColor=BrickColor.new('Bright red') | |
2244 | local mesh=Instance.new('SpecialMesh',part) | |
2245 | mesh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
2246 | mesh.Scale=Vector3.new(4,4,4) | |
2247 | local part2=part:clone() | |
2248 | part2.Parent = rarm | |
2249 | part2.BrickColor=TorsoColor | |
2250 | local part5=part:clone() | |
2251 | part5.Parent = rarm | |
2252 | part5.BrickColor=TorsoColor | |
2253 | local part6=part:clone() | |
2254 | part6.Parent = rarm | |
2255 | part6.BrickColor=BrickColor.new("Red") | |
2256 | local mesh2=mesh:clone() | |
2257 | mesh2.Parent=part2 | |
2258 | mesh2.Scale=Vector3.new(6, 6, 6) | |
2259 | local mesh5=mesh:clone() | |
2260 | mesh5.Parent=part5 | |
2261 | mesh5.Scale=Vector3.new(6, 6, 6) | |
2262 | local mesh6=mesh:clone() | |
2263 | mesh6.Parent=part6 | |
2264 | mesh6.Scale=Vector3.new(6, 6, 6) | |
2265 | local blast = Instance.new("Part", rarm) | |
2266 | blast.BrickColor = BrickColor.new("Bright red") | |
2267 | blast.Anchored = true | |
2268 | blast.CanCollide = false | |
2269 | blast.Locked = true | |
2270 | blast.Size = Vector3.new(2, 2, 2) | |
2271 | blast.TopSurface = "Smooth" | |
2272 | blast.BottomSurface = "Smooth" | |
2273 | blast.Transparency = 0 | |
2274 | blast.CFrame = HandCF | |
2275 | local bm = Instance.new("SpecialMesh", blast) | |
2276 | bm.Scale = Vector3.new(10,2,10) | |
2277 | bm.MeshId = "rbxassetid://3270017" | |
2278 | local blast2 = Instance.new("Part", rarm) | |
2279 | blast2.BrickColor = BrickColor.new("Bright red") | |
2280 | blast2.Anchored = true | |
2281 | blast2.CanCollide = false | |
2282 | blast2.Locked = true | |
2283 | blast2.Size = Vector3.new(2, 2, 2) | |
2284 | blast2.TopSurface = "Smooth" | |
2285 | blast2.BottomSurface = "Smooth" | |
2286 | blast2.Transparency = 0 | |
2287 | blast2.CFrame = HandCF | |
2288 | local bm2 = Instance.new("SpecialMesh", blast2) | |
2289 | bm2.Scale = Vector3.new(6,2,6) | |
2290 | bm2.MeshId = "rbxassetid://3270017" | |
2291 | local blast3 = Instance.new("Part", rarm) | |
2292 | blast3.BrickColor = BrickColor.new("Bright red") | |
2293 | blast3.Anchored = true | |
2294 | blast3.CanCollide = false | |
2295 | blast3.Locked = true | |
2296 | blast3.Size = Vector3.new(1, 1, 1) | |
2297 | blast3.TopSurface = "Smooth" | |
2298 | blast3.BottomSurface = "Smooth" | |
2299 | blast3.Transparency = 0 | |
2300 | blast3.CFrame = HandCF | |
2301 | local bm3 = Instance.new("SpecialMesh", blast3) | |
2302 | bm3.Scale = Vector3.new(6,2,6) | |
2303 | bm3.MeshId = "rbxassetid://3270017" | |
2304 | for i = 1,120 do rs:wait() | |
2305 | X.Transparency = X.Transparency + (1/120) | |
2306 | part.Transparency = part.Transparency + (1/120) | |
2307 | part2.Transparency = part2.Transparency + (1/120) | |
2308 | part3.Transparency = part3.Transparency + (1/120) | |
2309 | part4.Transparency = part4.Transparency + (1/120) | |
2310 | part5.Transparency = part5.Transparency + (1/120) | |
2311 | part6.Transparency = part6.Transparency + (1/120) | |
2312 | part7.Transparency = part7.Transparency + (1/120) | |
2313 | blast.Transparency = blast.Transparency + (1/120) | |
2314 | blast2.Transparency = blast2.Transparency + (1/120) | |
2315 | blast3.Transparency = blast3.Transparency + (1/120) | |
2316 | X.Size = X.Size + Vector3.new(1.6,1.6,1.6) | |
2317 | --part3.Size = part3.Size + Vector3.new(6,6,6) | |
2318 | mesh.Scale = mesh.Scale + Vector3.new(2,.4,2) | |
2319 | mesh2.Scale = mesh2.Scale + Vector3.new(2.2,.4,2.2) | |
2320 | mesh3.Scale = mesh3.Scale + Vector3.new(6,6,6) | |
2321 | mesh4.Scale = mesh4.Scale + Vector3.new(3.4,3.4,3.4) | |
2322 | mesh5.Scale = mesh5.Scale + Vector3.new(3.2,.4,3.2) | |
2323 | mesh6.Scale = mesh6.Scale + Vector3.new(4,.4,4) | |
2324 | mesh7.Scale = mesh7.Scale + Vector3.new(8,8,8) | |
2325 | bm.Scale = bm.Scale + Vector3.new(12,12,.4) | |
2326 | bm2.Scale = bm2.Scale + Vector3.new(8,8,.4) | |
2327 | bm3.Scale = bm3.Scale + Vector3.new(8,8,.4) | |
2328 | X.CFrame = cf | |
2329 | part.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2),0) | |
2330 | part2.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2),0) | |
2331 | part3.CFrame=X.CFrame | |
2332 | part4.CFrame=X.CFrame | |
2333 | part7.CFrame=X.CFrame | |
2334 | part5.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2.6),0) | |
2335 | part6.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2.4),0) | |
2336 | blast.CFrame=X.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
2337 | blast2.CFrame=X.CFrame * CFrame.Angles(math.rad(-i*4), math.rad(i*4), math.rad(0)) | |
2338 | blast3.CFrame=X.CFrame * CFrame.Angles(math.rad(180+i*4), math.rad(90-i*4), math.rad(0)) | |
2339 | rs:wait() | |
2340 | end | |
2341 | X:Destroy() | |
2342 | part:Destroy() | |
2343 | part2:Destroy() | |
2344 | part3:Destroy() | |
2345 | part4:Destroy() | |
2346 | part5:Destroy() | |
2347 | part6:Destroy() | |
2348 | blast:Destroy() | |
2349 | blast2:Destroy() | |
2350 | blast3:Destroy() | |
2351 | z:Destroy() | |
2352 | z1:Destroy() | |
2353 | z2:Destroy() | |
2354 | z3:Destroy() | |
2355 | z4:Destroy() | |
2356 | end | |
2357 | end) | |
2358 | for i = 1, 20 do | |
2359 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(70),math.rad(-6),math.rad(-20)), 0.2) | |
2360 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.2) | |
2361 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2) | |
2362 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), 0.4) | |
2363 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-8)), 0.2) | |
2364 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-6), 0, math.rad(8)), 0.2) | |
2365 | if Debounces.on == false then break end | |
2366 | rs:wait() | |
2367 | end | |
2368 | if Debounces.CanAttack == false then | |
2369 | Debounces.CanAttack = true | |
2370 | Debounces.NoIdl = false | |
2371 | Debounces.on = false | |
2372 | end | |
2373 | end | |
2374 | end | |
2375 | end) | |
2376 | ---------------------------------------------------- | |
2377 | mouse.KeyDown:connect(function(key) | |
2378 | if key == "c" then | |
2379 | Blaze() | |
2380 | end | |
2381 | end) | |
2382 | ---------------------------------------------------- | |
2383 | mouse.KeyDown:connect(function(key) | |
2384 | if key == "v" then | |
2385 | Blaze2() | |
2386 | end | |
2387 | end) | |
2388 | ---------------------------------------------------- | |
2389 | mouse.KeyDown:connect(function(key) | |
2390 | if key == "x" then | |
2391 | hum.WalkSpeed = 0.01 | |
2392 | if Debounces.CanAttack == true then | |
2393 | Debounces.CanAttack = false | |
2394 | Debounces.NoIdl = true | |
2395 | Debounces.on = true | |
2396 | for i = 1, 30 do | |
2397 | 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) | |
2398 | 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) | |
2399 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.2) | |
2400 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2) | |
2401 | 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) | |
2402 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, .4, -0.8) * CFrame.Angles(math.rad(-6), math.rad(0), math.rad(0)), 0.2) | |
2403 | if Debounces.on == false then break end | |
2404 | rs:wait(6) | |
2405 | end | |
2406 | v = Instance.new("Sound") | |
2407 | v.SoundId = "rbxassetid://181384451" | |
2408 | v.Parent = char | |
2409 | v.Looped = false | |
2410 | v.Pitch = 0.7 | |
2411 | v.Volume = 18 | |
2412 | wait(.01) | |
2413 | v:Play() | |
2414 | ||
2415 | if Daytime == true then | |
2416 | Daytime = false | |
2417 | l.TimeOfDay = 00 | |
2418 | else | |
2419 | Daytime = true | |
2420 | l.TimeOfDay = 12 | |
2421 | l.OutdoorAmbient = Color3.new(0.498039, 0.498039, 0.498039) | |
2422 | end | |
2423 | ||
2424 | local Shockwave = function() | |
2425 | local rng1 = Instance.new("Part", char) | |
2426 | rng1.Anchored = true | |
2427 | rng1.BrickColor = BrickColor.new("Really red") | |
2428 | rng1.CanCollide = false | |
2429 | rng1.FormFactor = 3 | |
2430 | rng1.Name = "Ring" | |
2431 | rng1.Material = "Neon" | |
2432 | rng1.Size = Vector3.new(1, 1, 1) | |
2433 | rng1.Transparency = 0.35 | |
2434 | rng1.TopSurface = 0 | |
2435 | rng1.BottomSurface = 0 | |
2436 | local rngm1 = Instance.new("SpecialMesh", rng) | |
2437 | rngm1.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2438 | rngm1.Scale = Vector3.new(10, 10, 1) | |
2439 | rng1.CFrame = CFrame.new(0, -2, 0) * CFrame.Angles(0, 0, 0) | |
2440 | local Wave = Instance.new("Part", game.Workspace--[[?]]) | |
2441 | Wave.Name = "Shockwave" | |
2442 | Wave.BrickColor = BrickColor.new("Really red") | |
2443 | Wave.Material = "Neon" | |
2444 | Wave.Size = Vector3.new(1, 1, 1) | |
2445 | Wave.Shape = "Ball" | |
2446 | Wave.CanCollide = false | |
2447 | Wave.Anchored = true | |
2448 | Wave.TopSurface = 0 | |
2449 | Wave.BottomSurface = 0 | |
2450 | local Wave2 = Instance.new("Part", game.Workspace--[[?]]) | |
2451 | Wave2.Name = "Shockwave2" | |
2452 | Wave2.BrickColor = TorsoColor | |
2453 | Wave2.Material = "Neon" | |
2454 | Wave2.Size = Vector3.new(1, 1, 1) | |
2455 | Wave2.Shape = "Ball" | |
2456 | Wave2.CanCollide = false | |
2457 | Wave2.Anchored = true | |
2458 | Wave2.TopSurface = 0 | |
2459 | Wave2.BottomSurface = 0 | |
2460 | Wave2.Touched:connect(function(hit) | |
2461 | if hit.Parent:findFirstChild("Humanoid") and hit.Parent:findFirstChild("Torso") then | |
2462 | local Occlude = true | |
2463 | local NotOccludes = { | |
2464 | char.Name; | |
2465 | "Wings"; | |
2466 | "Scythe"; | |
2467 | "Thingy"; | |
2468 | "Thingy2"; -- put all of the names in a table pls | |
2469 | } | |
2470 | for i,v in pairs(NotOccludes) do | |
2471 | if hit.Parent.Name == v then | |
2472 | Occlude = false | |
2473 | end | |
2474 | end | |
2475 | --if hit.Parent.Name ~= char.Name and hit.Name ~= "Wings" and hit.Name ~= "Scythe" and hit.Name ~= "Thingy" and hit.Name ~= "Thingy2" and hit.Parent.Name ~= "Wings" and hit.Parent.Name ~= "Scythe" and hit.Parent.Name ~= "Thingy" and hit.Parent.Name ~= "Thingy2" then | |
2476 | if Occlude then | |
2477 | hit.Parent:findFirstChild("Humanoid").Health = hit.Parent:findFirstChild("Humanoid").Health - 1 | |
2478 | hit.Parent:findFirstChild("Torso").Velocity = hit.Parent:findFirstChild("Torso").CFrame.lookVector * -120 | |
2479 | end | |
2480 | end | |
2481 | end) | |
2482 | ||
2483 | Instance.new("SpecialMesh", Wave).MeshType = "Sphere" | |
2484 | ||
2485 | coroutine.wrap(function() | |
2486 | for i = 1, 20, 0.2 do | |
2487 | rngm1.Scale = Vector3.new(10 + i*20, 10 + i*20, 20) | |
2488 | rng1.Transparency = i/20 | |
2489 | wait() | |
2490 | end | |
2491 | wait() | |
2492 | rng1:Destroy() | |
2493 | end)() | |
2494 | ||
2495 | Delay(0, function() | |
2496 | ||
2497 | if Daytime == false then | |
2498 | for i = 3, 50, 1 do | |
2499 | Wave.Size = Vector3.new(0 + i*3, 0 + i*3, 0 + i*3) | |
2500 | Wave.CFrame = char.Torso.CFrame | |
2501 | local t = i / 50 | |
2502 | Wave.Transparency = t | |
2503 | Wave2.Size = Vector3.new(1 + i*2.5, 1 + i*2.5, 1 + i*2.5) | |
2504 | Wave2.CFrame = char.Torso.CFrame | |
2505 | local tq = i / 50 | |
2506 | Wave2.Transparency = tq | |
2507 | wait() | |
2508 | end | |
2509 | else | |
2510 | for i = 3, 50, 1 do | |
2511 | Wave.Size = Vector3.new(0 + i*3, 0 + i*3, 0 + i*3) | |
2512 | Wave.CFrame = char.Torso.CFrame | |
2513 | local t = i / 50 | |
2514 | Wave.Transparency = t | |
2515 | Wave2.Size = Vector3.new(1 + i*2.5, 1 + i*2.5, 1 + i*2.5) | |
2516 | Wave2.CFrame = char.Torso.CFrame | |
2517 | local tq = i / 50 | |
2518 | Wave2.Transparency = tq | |
2519 | wait() | |
2520 | end | |
2521 | end | |
2522 | Wave:Destroy() | |
2523 | Wave2:Destroy() | |
2524 | end) | |
2525 | Delay(0, function() | |
2526 | while wait() do | |
2527 | if Wave ~= nil then | |
2528 | Wave.CFrame = char.Torso.CFrame | |
2529 | else | |
2530 | break | |
2531 | end | |
2532 | end | |
2533 | end) | |
2534 | end | |
2535 | Shockwave() | |
2536 | for i = 1, 30 do | |
2537 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(-20),math.rad(50)), 0.4) | |
2538 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(20),math.rad(-50)), 0.4) | |
2539 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,.1)*CFrame.Angles(math.rad(34),math.rad(0),0), 0.4) | |
2540 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), 0.4) | |
2541 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(-10)), 0.4) | |
2542 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(10)), 0.4) | |
2543 | if Debounces.on == false then break end | |
2544 | rs:wait() | |
2545 | end | |
2546 | wait(2.4) | |
2547 | Debounces.NoIdl = false | |
2548 | hum.WalkSpeed = 16 | |
2549 | Debounces.on = false | |
2550 | wait() | |
2551 | if Debounces.CanAttack == false then | |
2552 | Debounces.CanAttack = true | |
2553 | v:Destroy() | |
2554 | end | |
2555 | end | |
2556 | end | |
2557 | end) | |
2558 | ---------------------------------------------------- | |
2559 | mouse.KeyDown:connect(function(key) | |
2560 | if key == "e" then | |
2561 | if Debounces.CanAttack == true then | |
2562 | Debounces.CanAttack = false | |
2563 | Debounces.on = true | |
2564 | Debounces.NoIdl = true | |
2565 | pt = {1, 1.1, 1.2, 1.3, 1.4, 1.5} | |
2566 | z = Instance.new("Sound", rarm) | |
2567 | z.SoundId = "http://www.roblox.com/asset/?id=200633148"--160867463, 161006212 | |
2568 | z.Volume = 1.25 | |
2569 | z.Pitch = pt[math.random(1,#pt)] | |
2570 | z.Looped = false | |
2571 | z:Play() | |
2572 | Debounces.RPunch = true | |
2573 | Debounces.LPunch = true | |
2574 | Debounces.ks = true | |
2575 | Debounces.ks2 = true | |
2576 | for i = 1, 3 do | |
2577 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92) | |
2578 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92) | |
2579 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
2580 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
2581 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
2582 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
2583 | if Debounces.on == false then break end | |
2584 | wait() | |
2585 | end | |
2586 | z2 = Instance.new("Sound", larm) | |
2587 | z2.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
2588 | z2.Volume = 1.25 | |
2589 | z2.Pitch = pt[math.random(1,#pt)] | |
2590 | z2.Looped = false | |
2591 | z2:Play() | |
2592 | for i = 1, 3 do | |
2593 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
2594 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
2595 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
2596 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
2597 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
2598 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
2599 | if Debounces.on == false then break end | |
2600 | wait() | |
2601 | end | |
2602 | z3 = Instance.new("Sound", rarm) | |
2603 | z3.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
2604 | z3.Volume = 1.25 | |
2605 | z3.Pitch = pt[math.random(1,#pt)] | |
2606 | z3.Looped = false | |
2607 | z3:Play() | |
2608 | for i = 1, 3 do | |
2609 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) | |
2610 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) | |
2611 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
2612 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
2613 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
2614 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
2615 | if Debounces.on == false then break end | |
2616 | wait() | |
2617 | end | |
2618 | z4 = Instance.new("Sound", larm) | |
2619 | z4.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
2620 | z4.Volume = 1.25 | |
2621 | z4.Pitch = pt[math.random(1,#pt)] | |
2622 | z4.Looped = false | |
2623 | z4:Play() | |
2624 | for i = 1, 3 do | |
2625 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
2626 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
2627 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
2628 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
2629 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
2630 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
2631 | if Debounces.on == false then break end | |
2632 | wait() | |
2633 | end | |
2634 | z5 = Instance.new("Sound", rarm) | |
2635 | z5.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
2636 | z5.Volume = 1.25 | |
2637 | z5.Pitch = pt[math.random(1,#pt)] | |
2638 | z5.Looped = false | |
2639 | z5:Play() | |
2640 | for i = 1, 3 do | |
2641 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(110),math.rad(30),math.rad(20)), 0.9) | |
2642 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.9) | |
2643 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
2644 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
2645 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.9) | |
2646 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.9) | |
2647 | if Debounces.on == false then break end | |
2648 | wait() | |
2649 | end | |
2650 | z6 = Instance.new("Sound", larm) | |
2651 | z6.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
2652 | z6.Volume = 1.25 | |
2653 | z6.Pitch = pt[math.random(1,#pt)] | |
2654 | z6.Looped = false | |
2655 | z6:Play() | |
2656 | for i = 1, 3 do | |
2657 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
2658 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
2659 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
2660 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
2661 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
2662 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
2663 | if Debounces.on == false then break end | |
2664 | wait() | |
2665 | end | |
2666 | z7 = Instance.new("Sound", rarm) | |
2667 | z7.SoundId = "http://www.roblox.com/asset/?id=200633148"--160867463, 161006212 | |
2668 | z7.Volume = 1.25 | |
2669 | z7.Pitch = pt[math.random(1,#pt)] | |
2670 | z7.Looped = false | |
2671 | z7:Play() | |
2672 | for i = 1, 3 do | |
2673 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92) | |
2674 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92) | |
2675 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
2676 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
2677 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
2678 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
2679 | if Debounces.on == false then break end | |
2680 | wait() | |
2681 | end | |
2682 | z8 = Instance.new("Sound", larm) | |
2683 | z8.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
2684 | z8.Volume = 1.25 | |
2685 | z8.Pitch = pt[math.random(1,#pt)] | |
2686 | z8.Looped = false | |
2687 | z8:Play() | |
2688 | for i = 1, 3 do | |
2689 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
2690 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
2691 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
2692 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
2693 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
2694 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
2695 | if Debounces.on == false then break end | |
2696 | wait() | |
2697 | end | |
2698 | z9 = Instance.new("Sound", rarm) | |
2699 | z9.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
2700 | z9.Volume = 1.25 | |
2701 | z9.Pitch = pt[math.random(1,#pt)] | |
2702 | z9.Looped = false | |
2703 | z9:Play() | |
2704 | for i = 1, 3 do | |
2705 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) | |
2706 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) | |
2707 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
2708 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
2709 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
2710 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
2711 | if Debounces.on == false then break end | |
2712 | wait() | |
2713 | end | |
2714 | z10 = Instance.new("Sound", larm) | |
2715 | z10.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
2716 | z10.Volume = 1.25 | |
2717 | z10.Pitch = pt[math.random(1,#pt)] | |
2718 | z10.Looped = false | |
2719 | z10:Play() | |
2720 | for i = 1, 3 do | |
2721 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
2722 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
2723 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
2724 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
2725 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
2726 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
2727 | if Debounces.on == false then break end | |
2728 | wait() | |
2729 | end | |
2730 | z11 = Instance.new("Sound", rarm) | |
2731 | z11.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
2732 | z11.Volume = 1.25 | |
2733 | z11.Pitch = pt[math.random(1,#pt)] | |
2734 | z11.Looped = false | |
2735 | z11:Play() | |
2736 | for i = 1, 3 do | |
2737 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(110),math.rad(30),math.rad(20)), 0.9) | |
2738 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.9) | |
2739 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
2740 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
2741 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.9) | |
2742 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.9) | |
2743 | if Debounces.on == false then break end | |
2744 | wait() | |
2745 | end | |
2746 | z12 = Instance.new("Sound", larm) | |
2747 | z12.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
2748 | z12.Volume = 1.25 | |
2749 | z12.Pitch = pt[math.random(1,#pt)] | |
2750 | z12.Looped = false | |
2751 | z12:Play() | |
2752 | for i = 1, 3 do | |
2753 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
2754 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
2755 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
2756 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
2757 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
2758 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
2759 | if Debounces.on == false then break end | |
2760 | wait() | |
2761 | end | |
2762 | z13 = Instance.new("Sound", rarm) | |
2763 | z13.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
2764 | z13.Volume = 1.25 | |
2765 | z13.Pitch = pt[math.random(1,#pt)] | |
2766 | z13.Looped = false | |
2767 | z13:Play() | |
2768 | for i = 1, 3 do | |
2769 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) | |
2770 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) | |
2771 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
2772 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
2773 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
2774 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
2775 | if Debounces.on == false then break end | |
2776 | wait() | |
2777 | end | |
2778 | z14 = Instance.new("Sound", larm) | |
2779 | z14.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
2780 | z14.Volume = 1.25 | |
2781 | z14.Pitch = pt[math.random(1,#pt)] | |
2782 | z14.Looped = false | |
2783 | z14:Play() | |
2784 | for i = 1, 3 do | |
2785 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
2786 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
2787 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
2788 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
2789 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
2790 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
2791 | if Debounces.on == false then break end | |
2792 | wait() | |
2793 | end | |
2794 | z15 = Instance.new("Sound", rarm) | |
2795 | z15.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
2796 | z15.Volume = 1.25 | |
2797 | z15.Pitch = pt[math.random(1,#pt)] | |
2798 | z15.Looped = false | |
2799 | z15:Play() | |
2800 | for i = 1, 3 do | |
2801 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(110),math.rad(30),math.rad(20)), 0.9) | |
2802 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.9) | |
2803 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.9) | |
2804 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.9) | |
2805 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.9) | |
2806 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.9) | |
2807 | if Debounces.on == false then break end | |
2808 | wait() | |
2809 | end | |
2810 | z16 = Instance.new("Sound", larm) | |
2811 | z16.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
2812 | z16.Volume = 1.25 | |
2813 | z16.Pitch = pt[math.random(1,#pt)] | |
2814 | z16.Looped = false | |
2815 | z16:Play() | |
2816 | for i = 1, 3 do | |
2817 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
2818 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
2819 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
2820 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
2821 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
2822 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
2823 | if Debounces.on == false then break end | |
2824 | wait() | |
2825 | end | |
2826 | z17 = Instance.new("Sound", rarm) | |
2827 | z17.SoundId = "http://www.roblox.com/asset/?id=200633148"--160867463, 161006212 | |
2828 | z17.Volume = 1.25 | |
2829 | z17.Pitch = pt[math.random(1,#pt)] | |
2830 | z17.Looped = false | |
2831 | z17:Play() | |
2832 | for i = 1, 3 do | |
2833 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(20)), 0.92) | |
2834 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(50)), 0.92) | |
2835 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
2836 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
2837 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
2838 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
2839 | if Debounces.on == false then break end | |
2840 | wait() | |
2841 | end | |
2842 | z18 = Instance.new("Sound", larm) | |
2843 | z18.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
2844 | z18.Volume = 1.25 | |
2845 | z18.Pitch = pt[math.random(1,#pt)] | |
2846 | z18.Looped = false | |
2847 | z18:Play() | |
2848 | for i = 1, 3 do | |
2849 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
2850 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(20),math.rad(-20)), 0.92) | |
2851 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
2852 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
2853 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
2854 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
2855 | if Debounces.on == false then break end | |
2856 | wait() | |
2857 | end | |
2858 | z19 = Instance.new("Sound", rarm) | |
2859 | z19.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
2860 | z19.Volume = 1.25 | |
2861 | z19.Pitch = pt[math.random(1,#pt)] | |
2862 | z19.Looped = false | |
2863 | z19:Play() | |
2864 | for i = 1, 3 do | |
2865 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-20),math.rad(20)), 0.92) | |
2866 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(50)), 0.92) | |
2867 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-50),0), 0.92) | |
2868 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.92) | |
2869 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-50), math.rad(-15)), 0.92) | |
2870 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-50), math.rad(15)), 0.92) | |
2871 | if Debounces.on == false then break end | |
2872 | wait() | |
2873 | end | |
2874 | z20 = Instance.new("Sound", larm) | |
2875 | z20.SoundId = "http://www.roblox.com/asset/?id=200633148" | |
2876 | z20.Volume = 1.25 | |
2877 | z20.Pitch = pt[math.random(1,#pt)] | |
2878 | z20.Looped = false | |
2879 | z20:Play() | |
2880 | for i = 1, 3 do | |
2881 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-50)), 0.92) | |
2882 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(60),math.rad(20),math.rad(-20)), 0.92) | |
2883 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.92) | |
2884 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), 0), 0.92) | |
2885 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.6, -1, 0) * CFrame.Angles(math.rad(10), math.rad(50), math.rad(-15)), 0.92) | |
2886 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.6, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(50), math.rad(15)), 0.92) | |
2887 | if Debounces.on == false then break end | |
2888 | wait() | |
2889 | end | |
2890 | z:Destroy() | |
2891 | z2:Destroy() | |
2892 | z3:Destroy() | |
2893 | z4:Destroy() | |
2894 | z5:Destroy() | |
2895 | z6:Destroy() | |
2896 | z7:Destroy() | |
2897 | z8:Destroy() | |
2898 | z9:Destroy() | |
2899 | z10:Destroy() | |
2900 | z11:Destroy() | |
2901 | z12:Destroy() | |
2902 | z13:Destroy() | |
2903 | z14:Destroy() | |
2904 | z15:Destroy() | |
2905 | z16:Destroy() | |
2906 | z17:Destroy() | |
2907 | z18:Destroy() | |
2908 | z19:Destroy() | |
2909 | z20:Destroy() | |
2910 | Debounces.LPunch = false | |
2911 | Debounces.RPunch = false | |
2912 | Debounces.ks = false | |
2913 | Debounces.ks2 = false | |
2914 | if Debounces.CanAttack == false then | |
2915 | Debounces.CanAttack = true | |
2916 | Debounces.on = false | |
2917 | Debounces.NoIdl = false | |
2918 | end | |
2919 | end | |
2920 | end | |
2921 | end) | |
2922 | ------------------------------- | |
2923 | mouse.KeyDown:connect(function(key) | |
2924 | if key == "t" then | |
2925 | if Debounces.CanAttack == true then | |
2926 | Debounces.CanAttack = false | |
2927 | Debounces.NoIdl = true | |
2928 | Debounces.on = true | |
2929 | Debounces.ks = true | |
2930 | kik = rleg.Touched:connect(function(ht) | |
2931 | hit = ht.Parent | |
2932 | if ht and hit:IsA("Model") then | |
2933 | if hit:FindFirstChild("Humanoid") then | |
2934 | if hit.Name ~= p.Name then | |
2935 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
2936 | Debounces.Slashed = true]]-- | |
2937 | if Debounces.ks==true then | |
2938 | z = Instance.new("Sound",hed) | |
2939 | z.SoundId = "rbxassetid://169380525" | |
2940 | z.Volume = 1 | |
2941 | z:Play() | |
2942 | Debounces.ks=false | |
2943 | end | |
2944 | hit:FindFirstChild("Humanoid"):TakeDamage(2) | |
2945 | hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -300 | |
2946 | --Debounces.Slashed = false | |
2947 | --end | |
2948 | end | |
2949 | end | |
2950 | elseif ht and hit:IsA("Hat") then | |
2951 | if hit.Parent.Name ~= p.Name then | |
2952 | if hit.Parent:FindFirstChild("Humanoid") then | |
2953 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
2954 | Debounces.Slashed = true]]-- | |
2955 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(2) | |
2956 | hit:FindFirstChild("Torso").Velocity = hit:FindFirstChild("Torso").CFrame.lookVector * -300 | |
2957 | --Debounces.Slashed = false | |
2958 | --end | |
2959 | end | |
2960 | end | |
2961 | end | |
2962 | end) | |
2963 | for i = 1,20 do | |
2964 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(8)), 0.4) | |
2965 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-110)), 0.4) | |
2966 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
2967 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(90), math.rad(90)), 0.4) | |
2968 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-90)), 0.4) | |
2969 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.4) | |
2970 | if Debounces.on == false then break end | |
2971 | rs:wait() | |
2972 | end | |
2973 | kik:disconnect() | |
2974 | if Debounces.CanAttack == false then | |
2975 | Debounces.CanAttack = true | |
2976 | Debounces.NoIdl = false | |
2977 | Debounces.on = false | |
2978 | end | |
2979 | end | |
2980 | end | |
2981 | end) | |
2982 | ---------------------------------------------------- | |
2983 | mouse.KeyDown:connect(function(key) | |
2984 | if key == "y" then | |
2985 | if Debounces.CanAttack == true then | |
2986 | Debounces.CanAttack = false | |
2987 | Debounces.on = true | |
2988 | Debounces.NoIdl = true | |
2989 | for i = 1, 15 do | |
2990 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,.6,-0.25)*CFrame.Angles(math.rad(0),math.rad(-35),math.rad(-90)), 0.2) | |
2991 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,.6,0)*CFrame.Angles(math.rad(0),math.rad(-35),math.rad(-90)), 0.6) | |
2992 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.2) | |
2993 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.4) | |
2994 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2) | |
2995 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2) | |
2996 | if Debounces.on == false then break end | |
2997 | rs:wait(2.7) | |
2998 | end | |
2999 | xa = Instance.new("Sound",char) | |
3000 | xa.SoundId = "rbxassetid://419447292" | |
3001 | xa.Pitch = 1 | |
3002 | xa.Volume = 2.5 | |
3003 | wait(.1) | |
3004 | xa:Play() | |
3005 | Debounces.on = false | |
3006 | Debounces.Here = false | |
3007 | shot = shot + 1 | |
3008 | local rng = Instance.new("Part", larm) | |
3009 | rng.Anchored = true | |
3010 | rng.BrickColor = TorsoColor | |
3011 | rng.CanCollide = false | |
3012 | rng.FormFactor = 3 | |
3013 | rng.Name = "Ring" | |
3014 | rng.Size = Vector3.new(1, 1, 1) | |
3015 | rng.Transparency = 0.35 | |
3016 | rng.TopSurface = 0 | |
3017 | rng.BottomSurface = 0 | |
3018 | rng2 = rng:clone() | |
3019 | rng3 = rng2:clone() | |
3020 | rng4 = rng2:clone() | |
3021 | local rngm = Instance.new("SpecialMesh", rng) | |
3022 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
3023 | rngm.Scale = Vector3.new(10, 10, 1) | |
3024 | rngm2 = rngm:clone() | |
3025 | rngm2.Scale = Vector3.new(5, 5, 3) | |
3026 | rngm3=rngm2:clone() | |
3027 | rngm3.Parent = rng3 | |
3028 | rngm3.Scale = Vector3.new(8, 8, 1) | |
3029 | rngm4 = rngm2:clone() | |
3030 | rngm4.Parent = rng4 | |
3031 | rngm4.Scale = Vector3.new(6, 6, 1) | |
3032 | local bem = Instance.new("Part", larm) | |
3033 | bem.Anchored = true | |
3034 | bem.BrickColor = BrickColor.new("Really red") | |
3035 | bem.CanCollide = false | |
3036 | bem.FormFactor = 3 | |
3037 | bem.Name = "Beam" .. shot | |
3038 | bem.Size = Vector3.new(1, 1, 1) | |
3039 | bem.Transparency = 0.35 | |
3040 | bem.Material = "Neon" | |
3041 | bem.TopSurface = 0 | |
3042 | bem.BottomSurface = 0 | |
3043 | local bemm = Instance.new("SpecialMesh", bem) | |
3044 | bemm.MeshType = 4 | |
3045 | bemm.Scale = Vector3.new(1, 50, 50) | |
3046 | local out = Instance.new("Part", larm) | |
3047 | out.Anchored = true | |
3048 | out.BrickColor = BrickColor.new("Bright red") | |
3049 | out.CanCollide = false | |
3050 | out.FormFactor = 3 | |
3051 | out.Name = "Out" | |
3052 | out.Size = Vector3.new(8, 8, 8) | |
3053 | out.Transparency = 0.35 | |
3054 | out.TopSurface = 0 | |
3055 | out.BottomSurface = 0 | |
3056 | local outm = Instance.new("SpecialMesh", out) | |
3057 | outm.MeshId = "http://www.roblox.com/asset/?id=1033714" | |
3058 | outm.Scale = Vector3.new(12, 8, 12) | |
3059 | local bnd = Instance.new("Part", larm) | |
3060 | bnd.Anchored = true | |
3061 | bnd.BrickColor = BrickColor.new("Really red") | |
3062 | bnd.CanCollide = false | |
3063 | bnd.FormFactor = 3 | |
3064 | bnd.Name = "Bend" | |
3065 | bnd.Size = Vector3.new(1, 1, 1) | |
3066 | bnd.Transparency = 1 | |
3067 | bnd.TopSurface = 0 | |
3068 | bnd.BottomSurface = 0 | |
3069 | local bndm = Instance.new("SpecialMesh", bnd) | |
3070 | bndm.MeshType = 3 | |
3071 | bndm.Scale = Vector3.new(16, 16, 16) | |
3072 | out.CFrame = larm.CFrame * CFrame.new(0, -5.4, 0) | |
3073 | bem.CFrame = out.CFrame * CFrame.new(0, -50, 0) * CFrame.Angles(0, 0, math.rad(90)) | |
3074 | bnd.CFrame = bem.CFrame * CFrame.new(0, 0, 0) | |
3075 | rng.CFrame = out.CFrame * CFrame.Angles(math.rad(90), 0, 0) | |
3076 | rng3.CFrame = rng.CFrame * CFrame.new(0, -1, 0) | |
3077 | rng4.CFrame = rng.CFrame * CFrame.new(0, -2, 0) | |
3078 | Debounces.Shewt = true | |
3079 | coroutine.wrap(function() | |
3080 | for i = 1, 20, 0.2 do | |
3081 | rngm.Scale = Vector3.new(20 + i*4, 20 + i*4, 2) | |
3082 | rngm3.Scale = Vector3.new(16 + i*6, 16 + i*6, 2) | |
3083 | rngm4.Scale = Vector3.new(12 + i*8, 12 + i*8, 2) | |
3084 | rng.Transparency = i/20 | |
3085 | rng3.Transparency = 1/24 | |
3086 | rng4.Transparency = i/26 | |
3087 | wait() | |
3088 | end | |
3089 | wait() | |
3090 | rng:Destroy() | |
3091 | end)() | |
3092 | if Debounces.Shewt == true then | |
3093 | larm:WaitForChild("Beam" .. shot).Touched:connect(function(ht) | |
3094 | hit = ht.Parent | |
3095 | if hit:IsA("Model") and hit:findFirstChild("Humanoid") then | |
3096 | if HasntTouched(hit.Name) == true and deb == false then | |
3097 | deb = true | |
3098 | coroutine.wrap(function() | |
3099 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
3100 | hit:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 275 | |
3101 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(24,73)) | |
3102 | end)() | |
3103 | table.insert(Touche, hit.Name) | |
3104 | deb = false | |
3105 | end | |
3106 | elseif hit:IsA("Hat") and hit.Parent:findFirstChild("Humanoid") then | |
3107 | if HasntTouched(hit.Parent.Name) == true and deb == false then | |
3108 | deb = true | |
3109 | coroutine.wrap(function() | |
3110 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = true | |
3111 | hit.Parent:FindFirstChild("Torso").Velocity = char.Head.CFrame.lookVector * 275 | |
3112 | wait(1) | |
3113 | hit.Parent:FindFirstChild("Humanoid").PlatformStand = false | |
3114 | end)() | |
3115 | table.insert(Touche, hit.Parent.Name) | |
3116 | deb = false | |
3117 | for i, v in pairs(Touche) do | |
3118 | print(v) | |
3119 | end | |
3120 | end | |
3121 | end | |
3122 | end) | |
3123 | end | |
3124 | for i = 0, 260, 8 do | |
3125 | bem.Size = Vector3.new(i, 30, 30) | |
3126 | out.CFrame = larm.CFrame * CFrame.new(0, -5.4, 0) | |
3127 | bem.CFrame = larm.CFrame * CFrame.new(0, -42 -(i/2), 0) * CFrame.Angles(0, 0, math.rad(90)) | |
3128 | bnd.CFrame = bem.CFrame * CFrame.new(-i/2, 0, 1.2) | |
3129 | bnd.Size = Vector3.new(2,2,2) | |
3130 | bndm.Scale = Vector3.new(16,16,16) | |
3131 | if i % 10 == 0 then | |
3132 | local newRng = rng2:Clone() | |
3133 | newRng.Parent = larm | |
3134 | newRng.CFrame = larm.CFrame * CFrame.new(0, -8.4-i, 0) * CFrame.Angles(math.rad(90), 0, 0) | |
3135 | local newRngm = rngm2:clone() | |
3136 | newRngm.Parent=newRng | |
3137 | coroutine.wrap(function() | |
3138 | for i = 1, 10, 0.2 do | |
3139 | newRngm.Scale = Vector3.new(16 + i*4, 16 + i*4, 6) | |
3140 | newRng.Transparency = i/10 | |
3141 | wait() | |
3142 | end | |
3143 | wait() | |
3144 | newRng:Destroy() | |
3145 | end)() | |
3146 | end | |
3147 | wait() | |
3148 | end | |
3149 | wait() | |
3150 | Debounces.Shewt = false | |
3151 | bem:Destroy() | |
3152 | out:Destroy() | |
3153 | bnd:Destroy() | |
3154 | Debounces.Ready = false | |
3155 | for i, v in pairs(Touche) do | |
3156 | table.remove(Touche, i) | |
3157 | end | |
3158 | wait() | |
3159 | table.insert(Touche, char.Name) | |
3160 | Debounces.NoIdl = false | |
3161 | if Debounces.CanAttack == false then | |
3162 | Debounces.CanAttack = true | |
3163 | end | |
3164 | end | |
3165 | end | |
3166 | end) | |
3167 | ---------------------------------------------------- | |
3168 | mouse.KeyDown:connect(function(key) | |
3169 | if key == "h" then | |
3170 | if Debounces.CanAttack == true then | |
3171 | Debounces.CanAttack = false | |
3172 | Debounces.on = true | |
3173 | Debounces.NoIdl = true | |
3174 | for i = 1, 20 do | |
3175 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(110),math.rad(-6),math.rad(140)), 0.4) | |
3176 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(80),math.rad(6),math.rad(-40)), 0.2) | |
3177 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(30),0), 0.2) | |
3178 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3) | |
3179 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(20), 0, math.rad(-14)), 0.2) | |
3180 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-16), 0, math.rad(8)), 0.2) | |
3181 | if Debounces.on == false then break end | |
3182 | rs:wait(2.6) | |
3183 | end | |
3184 | Spawn(function() | |
3185 | local Parts = {} | |
3186 | for Y = -5,5 do | |
3187 | local P = Instance.new("Part",char) | |
3188 | P.Anchored = true | |
3189 | P.FormFactor = "Custom" | |
3190 | P.CanCollide = false | |
3191 | P.Size = Vector3.new(2,4,2) | |
3192 | P.TopSurface = "SmoothNoOutlines" | |
3193 | P.BottomSurface = "SmoothNoOutlines" | |
3194 | P.Material = "Neon" | |
3195 | P.BrickColor = BrickColor.new("Really red") | |
3196 | P.Name = tostring(Y) | |
3197 | local i = (Y+5)/(10) | |
3198 | i = 1-math.cos(math.pi*i-(math.pi/2)) | |
3199 | P.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,Y,-15+(i*1.5))*CFrame.Angles(math.rad(Y*5),0,0) | |
3200 | --[[P.Touched:connect(function(ht) | |
3201 | local hit = ht.Parent | |
3202 | if hit:FindFirstChild("Humanoid") then | |
3203 | hit.Humanoid:TakeDamage(math.random(20,50)) | |
3204 | end | |
3205 | end)]]-- | |
3206 | s = Instance.new("Sound",P) | |
3207 | s.SoundId = "rbxassetid://228343271" | |
3208 | s.Volume = 1 | |
3209 | s.Pitch = 0.9 | |
3210 | s:Play() | |
3211 | sa = Instance.new("Sound",P) | |
3212 | sa.SoundId = "rbxassetid://419447292" | |
3213 | sa.Volume = 1 | |
3214 | sa.Pitch = 1 | |
3215 | sa:Play() | |
3216 | P.Touched:connect(function(ht) | |
3217 | hit = ht.Parent | |
3218 | if ht and hit:IsA("Model") then | |
3219 | if hit:FindFirstChild("Humanoid") then | |
3220 | if hit.Name ~= p.Name then | |
3221 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
3222 | Debounces.Slashed = true]]-- | |
3223 | hit:FindFirstChild("Humanoid"):TakeDamage(math.random(1,3)) | |
3224 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
3225 | wait(1) | |
3226 | --Debounces.Slashed = false | |
3227 | --end | |
3228 | end | |
3229 | end | |
3230 | elseif ht and hit:IsA("Hat") then | |
3231 | if hit.Parent.Name ~= p.Name then | |
3232 | if hit.Parent:FindFirstChild("Humanoid") then | |
3233 | --[[if Debounces.Slashing == true and Debounces.Slashed == false then | |
3234 | Debounces.Slashed = true]]-- | |
3235 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random (1,3)) | |
3236 | hit:FindFirstChild("Humanoid").PlatformStand = true | |
3237 | wait(1) | |
3238 | --Debounces.Slashed = false | |
3239 | --end | |
3240 | end | |
3241 | end | |
3242 | end | |
3243 | end) | |
3244 | Parts[#Parts+1] = P | |
3245 | end | |
3246 | local BREAKIT = false | |
3247 | local CParts = {} | |
3248 | local Rocks = {} | |
3249 | local LastPos = nil | |
3250 | for i = 1,70 do | |
3251 | for i2,v in pairs(Parts) do | |
3252 | v.CFrame = v.CFrame*CFrame.new(0,0,-4) | |
3253 | local cf = v.CFrame | |
3254 | v.Size = v.Size+Vector3.new(0.4,0.35,0) | |
3255 | v.CFrame = cf | |
3256 | v.Transparency = v.Transparency+0.02 | |
3257 | if v.Transparency >= 0.975 then BREAKIT = true end | |
3258 | if v.Name == "0" then | |
3259 | local Ignore = {} | |
3260 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do | |
3261 | if v.Character ~= nil then | |
3262 | Ignore[#Ignore+1] = v.Character | |
3263 | end | |
3264 | end | |
3265 | local ray = Ray.new(v.Position+Vector3.new(0,20,0),Vector3.new(0,-200,0)) | |
3266 | local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(ray,Ignore) | |
3267 | if Hit ~= nil then | |
3268 | if #Rocks == 0 then | |
3269 | for i = 1,5 do | |
3270 | local P = Instance.new("Part",char) | |
3271 | Rocks[#Rocks+1] = P | |
3272 | P.Anchored = true | |
3273 | P.FormFactor = "Custom" | |
3274 | P.BrickColor = Hit.BrickColor | |
3275 | P.Material = Hit.Material | |
3276 | P.TopSurface = "Smooth" | |
3277 | P.BottomSurface = "Smooth" | |
3278 | P.Size = Vector3.new(2,2,2)*(math.random(500,900)/100) | |
3279 | end | |
3280 | end | |
3281 | for i,P in pairs(Rocks) do | |
3282 | P.CFrame = ((CFrame.new(Pos)*(v.CFrame-v.Position))*CFrame.new(math.random(-math.ceil(v.Size.X/2),math.ceil(v.Size.X/2)),0,-math.random(5,8))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(20,50))) | |
3283 | end | |
3284 | local P = Instance.new("Part",char) | |
3285 | CParts[#CParts+1] = {P,tick()} | |
3286 | P.Anchored = true | |
3287 | P.FormFactor = "Custom" | |
3288 | P.BrickColor = Hit.BrickColor | |
3289 | P.Material = Hit.Material | |
3290 | P.TopSurface = "Smooth" | |
3291 | P.BottomSurface = "Smooth" | |
3292 | P.Size = Vector3.new(2,2,2)*(math.random(100,300)/100) | |
3293 | Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(v.Size.X/2,0,0) | |
3294 | Pos = Pos.p | |
3295 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(20,50))) | |
3296 | local P = P:Clone() | |
3297 | CParts[#CParts+1] = {P,tick()} | |
3298 | P.Parent = char | |
3299 | Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(-v.Size.X,0,0) | |
3300 | Pos = Pos.p | |
3301 | P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,-20))) | |
3302 | if LastPos ~= nil then | |
3303 | local P = P:Clone() | |
3304 | CParts[#CParts+1] = {P,tick()} | |
3305 | P.Parent = char | |
3306 | P.BrickColor = TorsoColor | |
3307 | P.Material = "Neon" | |
3308 | Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(v.Size.X/2,0,0) | |
3309 | Pos = Pos.p | |
3310 | local CFr = (CFrame.new(Pos)*(v.CFrame-v.Position))-Vector3.new(0,0.4,0) | |
3311 | P.Size = Vector3.new(v.Size.X-0.25,1,(CFr.p-LastPos.p).Magnitude+0.25) | |
3312 | --P.Velocity = Vector3.new(0,-1000,0) | |
3313 | P.CFrame = CFrame.new(CFr.p,LastPos.p)*CFrame.new(0,0,-((CFr.p-LastPos.p).Magnitude+0.25)/2) | |
3314 | end | |
3315 | LastPos = (CFrame.new(Pos)*(v.CFrame-v.Position))-Vector3.new(0,0.4,0) | |
3316 | end | |
3317 | end | |
3318 | end | |
3319 | if BREAKIT then break end | |
3320 | wait(0.002) | |
3321 | end | |
3322 | for i,v in pairs(Rocks) do | |
3323 | CParts[#CParts+1] = {v,tick()} | |
3324 | end | |
3325 | for i,v in pairs(Parts) do | |
3326 | v:Destroy() | |
3327 | end | |
3328 | Parts = nil | |
3329 | while true do | |
3330 | local t = tick() | |
3331 | local p = nil | |
3332 | for i,v in pairs(CParts) do | |
3333 | if t-v[2] > 4 then | |
3334 | v[1].Transparency = v[1].Transparency+0.05 | |
3335 | if v[1].Transparency >= 1 then | |
3336 | v[1]:Destroy() | |
3337 | CParts[i] = nil | |
3338 | end | |
3339 | end | |
3340 | p = v | |
3341 | end | |
3342 | if p == nil then break end | |
3343 | wait(0.002) | |
3344 | end | |
3345 | for i,v in pairs(CParts) do | |
3346 | v:Destroy() | |
3347 | end | |
3348 | CParts = {} | |
3349 | end) | |
3350 | for i = 1, 20 do | |
3351 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(70),math.rad(-6),math.rad(-20)), 0.2) | |
3352 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.2) | |
3353 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2) | |
3354 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), 0.4) | |
3355 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-8)), 0.2) | |
3356 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-6), 0, math.rad(8)), 0.2) | |
3357 | cor.Weld.C0 = Lerp(cor.Weld.C0, CFrame.new(1.4, -3.5, -7) * CFrame.Angles(math.rad(-90), math.rad(-142), math.rad(20)), 1) | |
3358 | if Debounces.on == false then break end | |
3359 | rs:wait(2) | |
3360 | end | |
3361 | if Debounces.CanAttack == false then | |
3362 | Debounces.CanAttack = true | |
3363 | Debounces.on = false | |
3364 | Debounces.NoIdl = false | |
3365 | end | |
3366 | end | |
3367 | end | |
3368 | end) | |
3369 | ---------------------------------------------------- | |
3370 | local orbt={} | |
3371 | local stlt={} | |
3372 | local chot={} | |
3373 | local cfxt={} | |
3374 | local pfxt={} | |
3375 | local cns=0 | |
3376 | local cnOrb=nil | |
3377 | mouse.KeyDown:connect(function(key) | |
3378 | if key == "u" then | |
3379 | if Debounces.CanAttack == true then | |
3380 | Debounces.CanAttack = false | |
3381 | Debounces.NoIdl = true | |
3382 | Debounces.on = true | |
3383 | orbt={} | |
3384 | stlt={} | |
3385 | chot={} | |
3386 | cfxt={} | |
3387 | for i = 1, 20 do | |
3388 | 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) | |
3389 | 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) | |
3390 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.2) | |
3391 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.4) | |
3392 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2) | |
3393 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2) | |
3394 | if Debounces.on == false then end | |
3395 | rs:wait() | |
3396 | end | |
3397 | z2 = Instance.new("Sound",char) | |
3398 | z2.SoundId = "rbxassetid://489657591" | |
3399 | z2.Pitch = 1 | |
3400 | z2.Volume = 2 | |
3401 | wait(0.1) | |
3402 | z2:Play() | |
3403 | cnOrb=nwPrt(char,Vector3.new(1,1,1),larm.CFrame*CFrame.new(0,-3.4,-0.1),"White") | |
3404 | debris:AddItem(cnOrb,50) | |
3405 | cnOrb.Mesh.MeshType=3 | |
3406 | cnOrb.Transparency = 0.5 | |
3407 | table.insert(orbt,cnOrb) | |
3408 | table.insert(stlt,cnOrb) | |
3409 | local nt=0 | |
3410 | for i=0,14.75,0.02 do | |
3411 | nt=nt+1 | |
3412 | cns=i | |
3413 | if nt>=2 then | |
3414 | nt=0 | |
3415 | local cho=nwPrt(mod3,Vector3.new(0.2,0.2,0.2),cnOrb.CFrame*CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))*CFrame.new(0,5+cns,0),"White") | |
3416 | debris:AddItem(cho,1) | |
3417 | cho.Mesh.MeshType=3 | |
3418 | cho.Transparency = 1 | |
3419 | table.insert(chot,cho) | |
3420 | end | |
3421 | cnOrb.CFrame=larm.CFrame*CFrame.new(0,-3.4-(cns/2),-0.1) | |
3422 | cnOrb.Mesh.Scale=Vector3.new(i,i,i) | |
3423 | wait() | |
3424 | end | |
3425 | for i = 1, 14 do | |
3426 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(110),math.rad(-6),math.rad(140)), 0.4) | |
3427 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(80),math.rad(6),math.rad(-40)), 0.2) | |
3428 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(30),0), 0.2) | |
3429 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3) | |
3430 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(20), 0, math.rad(-14)), 0.2) | |
3431 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-16), 0, math.rad(8)), 0.2) | |
3432 | if Debounces.on == false then end | |
3433 | rs:wait() | |
3434 | end | |
3435 | coroutine.wrap(function() | |
3436 | for i = 1, 20 do | |
3437 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(70),math.rad(-6),math.rad(-20)), 0.2) | |
3438 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.2) | |
3439 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2) | |
3440 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), 0.4) | |
3441 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-8)), 0.2) | |
3442 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-6), 0, math.rad(8)), 0.2) | |
3443 | if Debounces.on == false then end | |
3444 | rs:wait() | |
3445 | end | |
3446 | end)() | |
3447 | wait(0.1) | |
3448 | stlt={} | |
3449 | local ry,ht,ps=newRay(root.CFrame*CFrame.new(0,0,-4),root.CFrame*CFrame.new(0,0,-4)*CFrame.Angles(math.rad(-5),0,0)*CFrame.new(0,0,-2),160,{char}) | |
3450 | cnOrb.CFrame=root.CFrame*CFrame.new(0,0,-4)*CFrame.Angles(math.rad(-5),0,0) | |
3451 | local nt=0 | |
3452 | for i=0,160,3 do | |
3453 | cnOrb.CFrame=cnOrb.CFrame*CFrame.new(0,0,-3) | |
3454 | nt=nt+1 | |
3455 | if nt>=6 then | |
3456 | nt=0 | |
3457 | local cfx=nwPrt(mod3,Vector3.new(10,10,10),cnOrb.CFrame*CFrame.new(0,0,2)*CFrame.Angles(math.rad(90),0,0),"Really black") | |
3458 | cfx.Mesh.MeshId="rbxassetid://0" | |
3459 | cfx.Transparency=0.4 | |
3460 | table.insert(cfxt,cfx) | |
3461 | debris:AddItem(cfx,1) | |
3462 | end | |
3463 | if (cnOrb.Position-ps).magnitude<12 then | |
3464 | break | |
3465 | end | |
3466 | wait() | |
3467 | end | |
3468 | orbt={} | |
3469 | ||
3470 | for i=0,1,0.1 do | |
3471 | local cs=cnOrb.Mesh.Scale | |
3472 | cnOrb.Mesh.Scale=Vector3.new(Tween(cs.X,100,i),Tween(cs.Y,100,i),Tween(cs.Z,100,i)) | |
3473 | wait() | |
3474 | end | |
3475 | local ofx=nwPrt(cnOrb,Vector3.new(10,10,10),cnOrb.CFrame,"Really red") | |
3476 | ofx.Transparency=0.5 | |
3477 | ofx.Mesh.MeshType=3 | |
3478 | ofx.Mesh.Scale=Vector3.new(30,30,30) | |
3479 | for _,v in pairs(game:service"Players":GetChildren()) do | |
3480 | pcall(function() | |
3481 | for _,c in pairs(v.Character:GetChildren()) do | |
3482 | if v~=p and c:IsA("Part") and (cnOrb.CFrame.p-c.CFrame.p).magnitude<120 and (cnOrb.CFrame.p-c.CFrame.p).magnitude>50 then | |
3483 | local hrp=v.Character:FindFirstChild("HumanoidRootPart") | |
3484 | hrp.Velocity=CFrame.new(hrp.CFrame.p,(cnOrb.CFrame*CFrame.new(0,10,0)).p).lookVector*2500 | |
3485 | end | |
3486 | end | |
3487 | end) | |
3488 | end | |
3489 | for i=0,1,0.05 do | |
3490 | local cs=cnOrb.Mesh.Scale | |
3491 | cnOrb.Mesh.Scale=Vector3.new(Tween(cs.X,0.1,i),Tween(cs.Y,0.1,i),Tween(cs.Z,0.1,i)) | |
3492 | local ofs=ofx.Mesh.Scale | |
3493 | ofx.Mesh.Scale=Vector3.new(Tween(ofs.X,0.1,i),Tween(ofs.Y,0.1,i),Tween(ofs.Z,0.1,i)) | |
3494 | ofx.Transparency=Tween(ofx.Transparency,1,i) | |
3495 | wait() | |
3496 | end | |
3497 | ofx:Destroy() | |
3498 | cnOrb.CFrame=CFrame.new(cnOrb.Position)*CFrame.new(0,10,0) | |
3499 | local cnfx=nwPrt(cnOrb,Vector3.new(100,100,100),cnOrb.CFrame,"Really red") | |
3500 | cnfx.Mesh.MeshType=3 | |
3501 | cnOrb.Transparency=0.5 | |
3502 | local cnr=nwPrt(cnOrb,Vector3.new(100,100,100),cnOrb.CFrame,"Really red") | |
3503 | cnr.Transparency=0.5 | |
3504 | cnr.Mesh.MeshType=3 | |
3505 | local rn1=nwPrt(cnOrb,Vector3.new(10,10,10),cnOrb.CFrame*CFrame.Angles(math.rad(90),0,0),"White") | |
3506 | rn1.Transparency=1 | |
3507 | rn1.Mesh.MeshId="rbxassetid://3270017" | |
3508 | local rn2=nwPrt(cnOrb,Vector3.new(10,10,10),cnOrb.CFrame,"Bright red") | |
3509 | rn2.Transparency=1 | |
3510 | rn2.Mesh.MeshId="rbxassetid://3270017" | |
3511 | local rn3=nwPrt(cnOrb,Vector3.new(100,100,100),cnOrb.CFrame*CFrame.Angles(math.rad(-90),0,0),"White") | |
3512 | rn3.Transparency=1 | |
3513 | rn3.Mesh.MeshId="rbxassetid://3270017" | |
3514 | local rn4=nwPrt(cnOrb,Vector3.new(100,100,100),cnOrb.CFrame,"Bright red") | |
3515 | rn4.Transparency=1 | |
3516 | rn4.Mesh.MeshId="rbxassetid://3270017" | |
3517 | local rn5=nwPrt(cnOrb,Vector3.new(200,200,100),cnOrb.CFrame,"Bright red") | |
3518 | rn5.Transparency=1 | |
3519 | rn5.Mesh.MeshId="rbxassetid://3270017" | |
3520 | local rn6=nwPrt(cnOrb,Vector3.new(200,200,100),cnOrb.CFrame,"Bright red") | |
3521 | rn6.Transparency=1 | |
3522 | rn6.Mesh.MeshId="rbxassetid://3270017" | |
3523 | local nt=0 | |
3524 | local cs=nil | |
3525 | z4 = Instance.new("Sound",char) | |
3526 | z4.SoundId = "rbxassetid://419447292" | |
3527 | z4.Pitch = 1 | |
3528 | z4.Volume = 10 | |
3529 | wait(0.1) | |
3530 | z4:Play() | |
3531 | z3 = Instance.new("Sound",char) | |
3532 | z3.SoundId = "rbxassetid://421328847" | |
3533 | z3.Pitch = 1 | |
3534 | z3.Volume = 10 | |
3535 | wait(0.1) | |
3536 | z3:Play() | |
3537 | for i=0,1,0.05 do | |
3538 | cs=cnOrb.Mesh.Scale | |
3539 | cnOrb.Mesh.Scale=Vector3.new(Tween(cs.X,100,i),Tween(cs.Y,100,i),Tween(cs.Z,100,i)) | |
3540 | local fs=cnfx.Mesh.Scale | |
3541 | cnfx.Mesh.Scale=Vector3.new(Tween(fs.X,120,i),Tween(fs.Y,120,i),Tween(fs.Z,120,i)) | |
3542 | cnfx.Transparency=cnfx.Transparency+0.05 | |
3543 | rn1.Mesh.Scale=Vector3.new(Tween(fs.X,120,i),Tween(fs.Y,120,i),Tween(fs.Z,60,i)) | |
3544 | rn2.Mesh.Scale=Vector3.new(Tween(fs.X,120,i),Tween(fs.Y,120,i),Tween(fs.Z,60,i)) | |
3545 | rn1.CFrame=rn1.CFrame*CFrame.Angles(math.rad(10),math.rad(6),math.rad(3)) | |
3546 | rn2.CFrame=rn2.CFrame*CFrame.Angles(math.rad(10),math.rad(6),math.rad(3)) | |
3547 | rn1.Transparency=Tween(rn1.Transparency,0.8,i) | |
3548 | rn2.Transparency=Tween(rn2.Transparency,0.8,i) | |
3549 | rn3.Mesh.Scale=Vector3.new(Tween(fs.X,1200,i),Tween(fs.Y,1200,i),Tween(fs.Z,600,i)) | |
3550 | rn4.Mesh.Scale=Vector3.new(Tween(fs.X,1200,i),Tween(fs.Y,1200,i),Tween(fs.Z,600,i)) | |
3551 | rn3.CFrame=rn3.CFrame*CFrame.Angles(math.rad(-10),math.rad(-6),math.rad(-3)) | |
3552 | rn4.CFrame=rn4.CFrame*CFrame.Angles(math.rad(-10),math.rad(-6),math.rad(-3)) | |
3553 | rn3.Transparency=Tween(rn1.Transparency,0.8,i) | |
3554 | rn4.Transparency=Tween(rn2.Transparency,0.8,i) | |
3555 | rn5.Transparency=Tween(rn2.Transparency,0.25,i) | |
3556 | rn5.CFrame=rn5.CFrame*CFrame.Angles(math.rad(-20),math.rad(-18),math.rad(-9)) | |
3557 | rn5.Mesh.Scale=Vector3.new(Tween(fs.X,2400,i),Tween(fs.Y,2400,i),Tween(fs.Z,1200,i)) | |
3558 | rn6.Transparency=Tween(rn2.Transparency,0.25,i) | |
3559 | rn6.CFrame=rn6.CFrame*CFrame.Angles(math.rad(20),math.rad(18),math.rad(9)) | |
3560 | rn6.Mesh.Scale=Vector3.new(Tween(fs.X,2400,i),Tween(fs.Y,2400,i),Tween(fs.Z,1200,i)) | |
3561 | local rs=cnr.Mesh.Scale | |
3562 | cnr.Mesh.Scale=Vector3.new(Tween(rs.X,10,i),Tween(rs.Y,10,i),Tween(rs.Z,10,i)) | |
3563 | nt=nt+1 | |
3564 | if nt>=6 then | |
3565 | local pls={} | |
3566 | for _,v in pairs(game.Players:GetChildren()) do | |
3567 | table.insert(pls,v) | |
3568 | end | |
3569 | local ry2,ht2,ps2=newRay(cnOrb.CFrame,cnOrb.CFrame*CFrame.new(0,-1,0),1000,pls) | |
3570 | local pffx=nwPrt(mod3,Vector3.new(1,1,1),CFrame.new(ps2)*CFrame.new(0,10,-12),"White") | |
3571 | pffx.Mesh.MeshId="rbxassetid://0" | |
3572 | pffx.Mesh.Scale=Vector3.new(cs.X,cs.Y/5,cs.Z) | |
3573 | debris:AddItem(pffx,2) | |
3574 | table.insert(pfxt,pffx) | |
3575 | nt=0 | |
3576 | end | |
3577 | wait() | |
3578 | end | |
3579 | local int=0 | |
3580 | coroutine.wrap(function() | |
3581 | for i=1,500 do | |
3582 | rn1.CFrame=rn1.CFrame*CFrame.Angles(math.rad(10),math.rad(5),math.rad(5)) | |
3583 | rn2.CFrame=rn2.CFrame*CFrame.Angles(math.rad(10),math.rad(5),math.rad(5)) | |
3584 | rn3.CFrame=rn3.CFrame*CFrame.Angles(math.rad(-10),math.rad(-5),math.rad(-5)) | |
3585 | rn4.CFrame=rn4.CFrame*CFrame.Angles(math.rad(-10),math.rad(-5),math.rad(-5)) | |
3586 | rn5.CFrame=rn5.CFrame*CFrame.Angles(math.rad(5),math.rad(5),math.rad(5)) | |
3587 | rn6.CFrame=rn6.CFrame*CFrame.Angles(math.rad(-5),math.rad(-5),math.rad(-5)) | |
3588 | nt=nt+1 | |
3589 | int=int+1 | |
3590 | local htd={p} | |
3591 | for _,v in pairs(game:service"Players":GetChildren()) do | |
3592 | pcall(function() | |
3593 | for _,c in pairs(v.Character:GetChildren()) do | |
3594 | if c:IsA("Part") and not inT(v,htd) and (cnOrb.CFrame.p-c.CFrame.p).magnitude<50 then | |
3595 | v.Character:FindFirstChild("Humanoid").Health=v.Character:FindFirstChild("Humanoid").Health-2 | |
3596 | v.Character:FindFirstChild("HumanoidRootPart").Velocity=Vector3.new(0,0,0) | |
3597 | table.insert(htd,v) | |
3598 | end | |
3599 | end | |
3600 | end) | |
3601 | end | |
3602 | htd={p} | |
3603 | if int>=6 then | |
3604 | for _,v in pairs(game:service"Players":GetChildren()) do | |
3605 | pcall(function() | |
3606 | for _,c in pairs(v.Character:GetChildren()) do | |
3607 | if c:IsA("Part") and not inT(v,htd) and (cnOrb.CFrame.p-c.CFrame.p).magnitude<50 then | |
3608 | table.insert(htd,v) | |
3609 | local hfx=nwPrt(mod3,Vector3.new(1,1,1),c.CFrame*CFrame.new(math.random(-2,2),math.random(-2,2),math.random(-2,2)),"White") | |
3610 | hfx.Mesh.Scale=Vector3.new(2,2,2) | |
3611 | hfx.Mesh.MeshType=3 | |
3612 | debris:AddItem(hfx,2) | |
3613 | coroutine.wrap(function() | |
3614 | pcall(function() | |
3615 | for i=0,1,0.05 do | |
3616 | pcall(function() | |
3617 | local hs=hfx.Mesh.Scale | |
3618 | hfx.CFrame=Lerp(hfx.CFrame,cnOrb.CFrame,i) | |
3619 | hfx.Mesh.Scale=Vector3.new(Tween(hs.X,0.1,i),Tween(hs.Y,0.1,i),Tween(hs.Z,0.1,i)) | |
3620 | end) | |
3621 | wait() | |
3622 | end | |
3623 | hfx:Destroy() | |
3624 | end) | |
3625 | end)() | |
3626 | end | |
3627 | end | |
3628 | end) | |
3629 | end | |
3630 | int=0 | |
3631 | end | |
3632 | if nt>=4 then | |
3633 | local pls={} | |
3634 | for _,v in pairs(game.Players:GetChildren()) do | |
3635 | table.insert(pls,v) | |
3636 | end | |
3637 | local ry2,ht2,ps2=newRay(cnOrb.CFrame,cnOrb.CFrame*CFrame.new(0,-1,0),1000,pls) | |
3638 | local pffx=nwPrt(mod3,Vector3.new(1,1,1),CFrame.new(ps2)*CFrame.new(0,10,-12),"White") | |
3639 | pffx.Transparency=0.4 | |
3640 | pffx.Mesh.MeshId="rbxassetid://0" | |
3641 | pffx.Mesh.Scale=Vector3.new(cs.X-10,cs.Y/5,cs.Z-10) | |
3642 | debris:AddItem(pffx,2) | |
3643 | table.insert(pfxt,pffx) | |
3644 | nt=0 | |
3645 | end | |
3646 | wait() | |
3647 | end | |
3648 | cnOrb:Destroy() | |
3649 | cnfx:Destroy() | |
3650 | for _,v in pairs(mod3:GetChildren()) do | |
3651 | v:Destroy() | |
3652 | end | |
3653 | orbt={} | |
3654 | stlt={} | |
3655 | chot={} | |
3656 | cfxt={} | |
3657 | pfxt={} | |
3658 | end)() | |
3659 | if Debounces.CanAttack == false then | |
3660 | Debounces.CanAttack = true | |
3661 | Debounces.NoIdl = false | |
3662 | Debounces.on = false | |
3663 | end | |
3664 | end | |
3665 | end | |
3666 | end) | |
3667 | ---------------------------------------------------- | |
3668 | --[[mouse.KeyDown:connect(function(key) | |
3669 | if key == "y" then | |
3670 | if Debounces.CanAttack == true then | |
3671 | Debounces.CanAttack = false | |
3672 | Debounces.NoIdl = true | |
3673 | Debounces.on = true | |
3674 | local shell = Instance.new("Part",torso) | |
3675 | shell.BrickColor = TorsoColor | |
3676 | shell.Anchored = false | |
3677 | shell.CanCollide = false | |
3678 | shell.Locked = true | |
3679 | shell.TopSurface = "SmoothNoOutlines" | |
3680 | shell.BottomSurface = "SmoothNoOutlines" | |
3681 | shell.Size = Vector3.new(1.2,1.2,1.2) | |
3682 | shell.FormFactor = 3 | |
3683 | local shellm = Instance.new("SpecialMesh",shell) | |
3684 | shellm.MeshType = "Sphere" | |
3685 | shellm.Scale = Vector3.new(1.2,1.2,1.2) | |
3686 | Omega = function() | |
3687 | local X = Instance.new("Part",char) | |
3688 | local O = Instance.new("ObjectValue",X) | |
3689 | O.Name = "creator" | |
3690 | X.Locked = true | |
3691 | X.Name = "Shell" | |
3692 | X.Anchored = false | |
3693 | X.CanCollide = false | |
3694 | X.Transparency = 0.5 | |
3695 | X.Reflectance = 0 | |
3696 | X.BottomSurface = 0 | |
3697 | X.TopSurface = 0 | |
3698 | X.Shape = 0 | |
3699 | local V = Instance.new("ObjectValue",X) | |
3700 | V.Value = char | |
3701 | V.Name = "creator" | |
3702 | X.BrickColor = TorsoColor | |
3703 | X.Size = Vector3.new(40,40,40) | |
3704 | --X.Material = "Neon" | |
3705 | local Z = Instance.new("SpecialMesh",X) | |
3706 | Z.MeshType = "Sphere" | |
3707 | Z.Scale = Vector3.new(0.2,0.2,0.2) | |
3708 | X.CFrame = rarm.CFrame*CFrame.new(0,-6,0) | |
3709 | local bv = Instance.new("BodyVelocity",X) | |
3710 | bv.maxForce = Vector3.new(99999,99999,99999) | |
3711 | X.CFrame = CFrame.new(X.Position,root.CFrame.lookVector*10) | |
3712 | bv.velocity = root.CFrame.lookVector*10 | |
3713 | Explode = X.Touched:connect(function(hit) | |
3714 | if hit ~= char and hit.Name ~= "Shell" and hit ~= X and hit:IsA("Part") or hit:IsA("BasePart}") then | |
3715 | local cf = X.CFrame | |
3716 | bv:Destroy() | |
3717 | X.Anchored = true | |
3718 | Z:Remove() | |
3719 | Explode:disconnect() | |
3720 | X.Size = Vector3.new(3,3,3) | |
3721 | X.Touched:connect(function(hit) end) | |
3722 | X.CanCollide = false | |
3723 | for i,v in pairs(FindNearestTorso(X.CFrame.p,200))do | |
3724 | if v:FindFirstChild('Humanoid') then | |
3725 | v.Humanoid:TakeDamage(math.random(80,120)) | |
3726 | end | |
3727 | end | |
3728 | for i = 1, (40) do rs:wait() | |
3729 | X.Transparency = X.Transparency + (1/40) | |
3730 | X.Size = X.Size + Vector3.new(1,1,1) | |
3731 | X.CFrame = root.CFrame * CFrame.new(0,0,-10) | |
3732 | end | |
3733 | X:Destroy() | |
3734 | end | |
3735 | end) | |
3736 | end | |
3737 | for i = 1,200 do | |
3738 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
3739 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(170)), 0.03) | |
3740 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4) | |
3741 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
3742 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
3743 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
3744 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
3745 | if Debounces.on == false then break end | |
3746 | rs:wait() | |
3747 | end | |
3748 | for i = 1,30 do | |
3749 | shell.CFrame = torso.CFrame * CFrame.new(0,8,0) | |
3750 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(170)), 0.4) | |
3751 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3,0.62,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-170)), 0.4) | |
3752 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
3753 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
3754 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
3755 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
3756 | if Debounces.on == false then break end | |
3757 | rs:wait() | |
3758 | end | |
3759 | for i = 1,40 do | |
3760 | shell.CFrame = torso.CFrame * CFrame.new(0,20,0) | |
3761 | shell.Size = shell.Size + Vector3.new(1,1,1) | |
3762 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(100)), 0.4) | |
3763 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.6,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-100)), 0.4) | |
3764 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
3765 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
3766 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
3767 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
3768 | if Debounces.on == false then break end | |
3769 | rs:wait() | |
3770 | end | |
3771 | for i = 1,40 do | |
3772 | shell.CFrame = torso.CFrame * CFrame.new(0,0,-30) | |
3773 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.6,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(20)), 0.4) | |
3774 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.6,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(-20)), 0.4) | |
3775 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
3776 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
3777 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
3778 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
3779 | if Debounces.on == false then break end | |
3780 | rs:wait() | |
3781 | end | |
3782 | for i = 1,60 do | |
3783 | shell.CFrame = torso.CFrame * CFrame.new(0,0,-60) | |
3784 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.64,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-30)), 0.4) | |
3785 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.64,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(30)), 0.4) | |
3786 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
3787 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
3788 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
3789 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
3790 | if Debounces.on == false then break end | |
3791 | rs:wait() | |
3792 | end | |
3793 | for i = 1,60 do | |
3794 | shell.CFrame = torso.CFrame * CFrame.new(0,0,-60) | |
3795 | shell.Size = shell.Size + Vector3.new(1,1,1) | |
3796 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4,0.64,0)*CFrame.Angles(math.rad(110),math.rad(0),math.rad(120)), 0.4) | |
3797 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.64,0)*CFrame.Angles(math.rad(110),math.rad(0),math.rad(-120)), 0.4) | |
3798 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4) | |
3799 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
3800 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
3801 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(0)), 0.4) | |
3802 | if Debounces.on == false then break end | |
3803 | rs:wait() | |
3804 | end | |
3805 | if Debounces.CanAttack == false then | |
3806 | Debounces.CanAttack = true | |
3807 | Debounces.NoIdl = false | |
3808 | Debounces.on = false | |
3809 | end | |
3810 | end | |
3811 | end | |
3812 | end)]]-- | |
3813 | ---------------------------------------------------- | |
3814 | Charging = false | |
3815 | mouse.KeyDown:connect(function(key) | |
3816 | if key == "r" then | |
3817 | if Charging == false then | |
3818 | Charging = true | |
3819 | if Debounces.CanAttack == true then | |
3820 | Debounces.CanAttack = false | |
3821 | Debounces.NoIdl = true | |
3822 | Debounces.on = true | |
3823 | for i = 1,20 do | |
3824 | 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) | |
3825 | 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) | |
3826 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.2) | |
3827 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2) | |
3828 | 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) | |
3829 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, .4, -0.8) * CFrame.Angles(math.rad(-6), math.rad(0), math.rad(0)), 0.2) | |
3830 | if Debounces.on == false then break end | |
3831 | rs:wait() | |
3832 | end | |
3833 | --[[for i = 1,20 do | |
3834 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(-20),math.rad(50)), 0.4) | |
3835 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(20),math.rad(-50)), 0.4) | |
3836 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,.1)*CFrame.Angles(math.rad(34),math.rad(0),0), 0.4) | |
3837 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), 0.4) | |
3838 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(-10)), 0.4) | |
3839 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(10)), 0.4) | |
3840 | if Debounces.on == false then break end | |
3841 | rs:wait() | |
3842 | end]]-- | |
3843 | xay = Instance.new("Sound",char) | |
3844 | xay.SoundId = "rbxassetid://419447292" | |
3845 | xay.Pitch = 1 | |
3846 | xay.Volume = 2.5 | |
3847 | xay:Play() | |
3848 | pt=Instance.new('Part',torso) | |
3849 | pt.Anchored=true | |
3850 | pt.CanCollide=false | |
3851 | pt.Locked = true | |
3852 | pt.FormFactor='Custom' | |
3853 | pt.Size=Vector3.new(1,1,1) | |
3854 | pt.CFrame=root.CFrame*CFrame.new(0,-1,0) | |
3855 | pt.Transparency=.6 | |
3856 | pt.BrickColor=BrickColor.new('Really red') | |
3857 | msh=Instance.new('SpecialMesh',pt) | |
3858 | msh.MeshId='http://www.roblox.com/asset/?id=20329976' | |
3859 | msh.Scale=Vector3.new(8,4,8) | |
3860 | pt2=pt:clone() | |
3861 | pt2.Parent = torso | |
3862 | pt2.CFrame=root.CFrame*CFrame.new(0,-1,0) | |
3863 | pt2.BrickColor=TorsoColor | |
3864 | msh2=msh:clone() | |
3865 | msh2.Parent=pt2 | |
3866 | msh2.Scale=Vector3.new(10,5,10) | |
3867 | ||
3868 | 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} | |
3869 | ||
3870 | bl = Instance.new("Part", char) | |
3871 | bl.Locked = true | |
3872 | bl.Name = "Shell" | |
3873 | bl.BrickColor = BrickColor.new("Really red") | |
3874 | bl.Anchored = true | |
3875 | bl.CanCollide = false | |
3876 | bl.Transparency = 0 | |
3877 | bl.Reflectance = 0 | |
3878 | bl.BottomSurface = 0 | |
3879 | bl.TopSurface = 0 | |
3880 | bl.Shape = 0 | |
3881 | blm = Instance.new("SpecialMesh",bl) | |
3882 | blm.MeshType = "Sphere" | |
3883 | blm.Scale = Vector3.new(1,1,1) | |
3884 | blm.MeshId = "rbxassetid://9982590" | |
3885 | ||
3886 | bl2 = Instance.new("Part", char) | |
3887 | bl2.Locked = true | |
3888 | bl2.Name = "Shella" | |
3889 | bl2.BrickColor = BrickColor.new("Really red") | |
3890 | bl2.Anchored = true | |
3891 | bl2.CanCollide = false | |
3892 | bl2.Transparency = 0 | |
3893 | bl2.Reflectance = 0 | |
3894 | bl2.BottomSurface = 0 | |
3895 | bl2.TopSurface = 0 | |
3896 | bl2.Shape = 0 | |
3897 | blm2 = Instance.new("SpecialMesh",bl2) | |
3898 | blm2.MeshType = "Sphere" | |
3899 | blm2.Scale = Vector3.new(1,1,1) | |
3900 | blm2.MeshId = "rbxassetid://9982590" | |
3901 | ||
3902 | coroutine.resume(coroutine.create(function() | |
3903 | for i=1, math.huge, 4 do | |
3904 | if Charging == true then | |
3905 | rs:wait() | |
3906 | bl.CFrame = root.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10)) | |
3907 | blm.Scale = blm.Scale + Vector3.new(15, 15, 15) | |
3908 | bl.Transparency = bl.Transparency + 0.075 | |
3909 | bl2.CFrame = root.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10)) | |
3910 | blm2.Scale = blm2.Scale + Vector3.new(5, 5, 5) | |
3911 | bl2.Transparency = bl2.Transparency + 0.025 | |
3912 | pt.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(i*2),0) | |
3913 | pt2.CFrame = root.CFrame*CFrame.new(0,-1,0) * CFrame.Angles(0,math.rad(-i*2),0) | |
3914 | msh.Scale = msh.Scale + Vector3.new(5,2.5,5) | |
3915 | msh2.Scale = msh2.Scale + Vector3.new(10,5,10) | |
3916 | elseif Charging == false then break | |
3917 | end | |
3918 | end | |
3919 | end)) | |
3920 | ||
3921 | repeat | |
3922 | local p = Instance.new('Part',torso) | |
3923 | p.formFactor = 'Custom' | |
3924 | p.Size = Vector3.new(1,1,1) | |
3925 | p.BrickColor = workspace.Base.BrickColor | |
3926 | p.CanCollide = false | |
3927 | p.Transparency = 0 | |
3928 | p.Anchored = true | |
3929 | p.Locked=true | |
3930 | p.Material = workspace.Base.Material | |
3931 | s = math.random(1,40)/10 | |
3932 | local m = Instance.new("BlockMesh",p) | |
3933 | m.Scale = Vector3.new(s,s,s) | |
3934 | 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()) | |
3935 | --[[coroutine.wrap(function() | |
3936 | wait(2) | |
3937 | while Charging == true do | |
3938 | wait(2) | |
3939 | GroundWave1() | |
3940 | wait(2) | |
3941 | end | |
3942 | end)()]]-- | |
3943 | Spawn(function() | |
3944 | while rs:wait() do | |
3945 | if Charging == true then | |
3946 | 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))) | |
3947 | 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))) | |
3948 | 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)) | |
3949 | torso.Weld.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), math.rad(math.random(-4,4)), math.rad(0)) | |
3950 | 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))) | |
3951 | 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))) | |
3952 | elseif Charging == false then break | |
3953 | end | |
3954 | end | |
3955 | end) | |
3956 | Spawn(function() | |
3957 | while rs:wait() do | |
3958 | if p.Transparency >= 1 then p:Destroy() break end | |
3959 | p.CFrame = p.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))+Vector3.new(0,0.2,0) | |
3960 | p.Transparency = p.Transparency+0.01 | |
3961 | end | |
3962 | end) | |
3963 | wait(.3) | |
3964 | until Charging == false | |
3965 | end | |
3966 | end | |
3967 | end | |
3968 | end) | |
3969 | ---------------------------------------------------- | |
3970 | mouse.KeyUp:connect(function(key) | |
3971 | if key == "r" then | |
3972 | if Charging == true then | |
3973 | Charging = false | |
3974 | pt:Destroy() | |
3975 | pt2:Destroy() | |
3976 | bl:Destroy() | |
3977 | if Debounces.CanAttack == false then | |
3978 | Debounces.CanAttack = true | |
3979 | Debounces.NoIdl = false | |
3980 | Debounces.on = false | |
3981 | end | |
3982 | end | |
3983 | end | |
3984 | end) | |
3985 | ---------------------------------------------------- | |
3986 | mouse.KeyDown:connect(function(key) | |
3987 | if key == "g" then | |
3988 | if Debounces.CanAttack == true then | |
3989 | Debounces.CanAttack = false | |
3990 | Debounces.NoIdl = true | |
3991 | Debounces.on = true | |
3992 | local shell = Instance.new("Part",torso) | |
3993 | shell.BrickColor = TorsoColor | |
3994 | shell.Anchored = true | |
3995 | shell.CanCollide = false | |
3996 | shell.Locked = true | |
3997 | shell.TopSurface = "SmoothNoOutlines" | |
3998 | shell.BottomSurface = "SmoothNoOutlines" | |
3999 | shell.Size = Vector3.new(1,1,1) | |
4000 | shellm = Instance.new("SpecialMesh",shell) | |
4001 | shellm.MeshType = "Sphere" | |
4002 | shellm.Scale = Vector3.new(1,1,1) | |
4003 | local shell2 = Instance.new("Part",torso) | |
4004 | shell2.BrickColor = TorsoColor | |
4005 | shell2.Anchored = true | |
4006 | shell2.CanCollide = false | |
4007 | shell2.Locked = true | |
4008 | shell2.TopSurface = "SmoothNoOutlines" | |
4009 | shell2.BottomSurface = "SmoothNoOutlines" | |
4010 | shell2.Size = Vector3.new(1,1,1) | |
4011 | shellm2 = Instance.new("SpecialMesh",shell2) | |
4012 | shellm2.MeshType = "Sphere" | |
4013 | shellm2.Scale = Vector3.new(1,1,1) | |
4014 | ||
4015 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
4016 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
4017 | local List = {} | |
4018 | for i,v in pairs(workspace:GetChildren())do | |
4019 | if v:IsA("Model")then | |
4020 | if v:findFirstChild("Torso")then | |
4021 | if v ~= char then | |
4022 | if(v.Torso.Position -Position).magnitude <= Distance then | |
4023 | table.insert(List,v) | |
4024 | end | |
4025 | end | |
4026 | end | |
4027 | end | |
4028 | end | |
4029 | return List | |
4030 | end | |
4031 | ||
4032 | Shell = function() | |
4033 | local X = Instance.new("Part",char) | |
4034 | local O = Instance.new("ObjectValue",X) | |
4035 | O.Name = "creator" | |
4036 | X.Locked = true | |
4037 | X.Name = "Shell" | |
4038 | X.Anchored = false | |
4039 | X.CanCollide = false | |
4040 | X.Transparency = 0 | |
4041 | X.Reflectance = 0 | |
4042 | X.BottomSurface = 0 | |
4043 | X.TopSurface = 0 | |
4044 | X.Shape = 0 | |
4045 | local V = Instance.new("ObjectValue",X) | |
4046 | V.Value = char | |
4047 | V.Name = "creator" | |
4048 | X.BrickColor = TorsoColor | |
4049 | X.Size = Vector3.new(1,1,1) | |
4050 | --X.Material = "Neon" | |
4051 | local Z = Instance.new("SpecialMesh",X) | |
4052 | Z.MeshType = "Sphere" | |
4053 | Z.Scale = Vector3.new(1,1,1) | |
4054 | X.CFrame = rarm.CFrame*CFrame.new(0,-6,0) | |
4055 | local bv = Instance.new("BodyVelocity",X) | |
4056 | bv.maxForce = Vector3.new(99999,99999,99999) | |
4057 | X.CFrame = CFrame.new(X.Position,root.CFrame.lookVector*10) | |
4058 | bv.velocity = root.CFrame.lookVector*65 | |
4059 | Explode = X.Touched:connect(function(hit) | |
4060 | if hit ~= char and hit.Name ~= "Shell" and hit:IsA("Part") or hit:IsA("BasePart}") then | |
4061 | local cf = X.CFrame | |
4062 | bv:Destroy() | |
4063 | X.Anchored = true | |
4064 | Z:Remove() | |
4065 | Explode:disconnect() | |
4066 | X.Size = Vector3.new(3,3,3) | |
4067 | X.Touched:connect(function(hit) end) | |
4068 | X.CanCollide = false | |
4069 | for i,v in pairs(FindNearestTorso(X.CFrame.p,40))do | |
4070 | if v:FindFirstChild('Humanoid') then | |
4071 | v.Humanoid:TakeDamage(math.random(6,12)) | |
4072 | end | |
4073 | end | |
4074 | for i = 1, (40) do rs:wait() | |
4075 | X.Transparency = X.Transparency + (1/40) | |
4076 | X.Size = X.Size + Vector3.new(1,1,1) | |
4077 | X.CFrame = cf | |
4078 | end | |
4079 | X:Destroy() | |
4080 | end | |
4081 | end) | |
4082 | end | |
4083 | Shell() | |
4084 | for i = 1, 10 do | |
4085 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
4086 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
4087 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
4088 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
4089 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.7) | |
4090 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.7) | |
4091 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-20)), 0.7) | |
4092 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)), 0.7) | |
4093 | if Debounces.on == false then break end | |
4094 | rs:wait() | |
4095 | end | |
4096 | Shell() | |
4097 | shell.Transparency = 1 | |
4098 | for i = 1, 10 do | |
4099 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
4100 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
4101 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) | |
4102 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
4103 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) | |
4104 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) | |
4105 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) | |
4106 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) | |
4107 | if Debounces.on == false then break end | |
4108 | rs:wait() | |
4109 | end | |
4110 | Shell() | |
4111 | shell.Transparency = 0 | |
4112 | shell2.Transparency = 1 | |
4113 | for i = 1, 10 do | |
4114 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
4115 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
4116 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
4117 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) | |
4118 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7) | |
4119 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) | |
4120 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) | |
4121 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) | |
4122 | if Debounces.on == false then break end | |
4123 | rs:wait() | |
4124 | end | |
4125 | Shell() | |
4126 | shell2.Transparency = 0 | |
4127 | shell.Transparency = 1 | |
4128 | for i = 1, 10 do | |
4129 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
4130 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
4131 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) | |
4132 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
4133 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) | |
4134 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) | |
4135 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) | |
4136 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) | |
4137 | if Debounces.on == false then break end | |
4138 | rs:wait() | |
4139 | end | |
4140 | Shell() | |
4141 | shell.Transparency = 0 | |
4142 | shell2.Transparency = 1 | |
4143 | for i = 1, 10 do | |
4144 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
4145 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
4146 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
4147 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) | |
4148 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7) | |
4149 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) | |
4150 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) | |
4151 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) | |
4152 | if Debounces.on == false then break end | |
4153 | rs:wait() | |
4154 | end | |
4155 | Shell() | |
4156 | shell2.Transparency = 0 | |
4157 | shell.Transparency = 1 | |
4158 | for i = 1, 10 do | |
4159 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
4160 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
4161 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) | |
4162 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
4163 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) | |
4164 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) | |
4165 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) | |
4166 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) | |
4167 | if Debounces.on == false then break end | |
4168 | rs:wait() | |
4169 | end | |
4170 | Shell() | |
4171 | shell.Transparency = 0 | |
4172 | shell2.Transparency = 1 | |
4173 | for i = 1, 10 do | |
4174 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
4175 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
4176 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
4177 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.5) | |
4178 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) | |
4179 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) | |
4180 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) | |
4181 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) | |
4182 | if Debounces.on == false then break end | |
4183 | rs:wait() | |
4184 | end | |
4185 | Shell() | |
4186 | shell2.Transparency = 0 | |
4187 | shell.Transparency = 1 | |
4188 | for i = 1, 10 do | |
4189 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
4190 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
4191 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) | |
4192 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
4193 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) | |
4194 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) | |
4195 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) | |
4196 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) | |
4197 | if Debounces.on == false then break end | |
4198 | rs:wait() | |
4199 | end | |
4200 | Shell() | |
4201 | shell.Transparency = 0 | |
4202 | shell2.Transparency = 1 | |
4203 | for i = 1, 10 do | |
4204 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
4205 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
4206 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
4207 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) | |
4208 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7) | |
4209 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) | |
4210 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) | |
4211 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) | |
4212 | if Debounces.on == false then break end | |
4213 | rs:wait() | |
4214 | end | |
4215 | Shell() | |
4216 | shell2.Transparency = 0 | |
4217 | shell.Transparency = 1 | |
4218 | for i = 1, 10 do | |
4219 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
4220 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
4221 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) | |
4222 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
4223 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) | |
4224 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) | |
4225 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) | |
4226 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) | |
4227 | if Debounces.on == false then break end | |
4228 | rs:wait() | |
4229 | end | |
4230 | Shell() | |
4231 | shell.Transparency = 0 | |
4232 | shell2.Transparency = 1 | |
4233 | for i = 1, 10 do | |
4234 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
4235 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
4236 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
4237 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) | |
4238 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7) | |
4239 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) | |
4240 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) | |
4241 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) | |
4242 | if Debounces.on == false then break end | |
4243 | rs:wait() | |
4244 | end | |
4245 | Shell() | |
4246 | shell2.Transparency = 0 | |
4247 | shell.Transparency = 1 | |
4248 | for i = 1, 10 do | |
4249 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
4250 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
4251 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-40)), 0.7) | |
4252 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-110)), 0.7) | |
4253 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-50),0), 0.7) | |
4254 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.7) | |
4255 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-20)), 0.7) | |
4256 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(20)), 0.7) | |
4257 | if Debounces.on == false then break end | |
4258 | rs:wait() | |
4259 | end | |
4260 | Shell() | |
4261 | shell.Transparency = 0 | |
4262 | shell2.Transparency = 1 | |
4263 | for i = 1, 10 do | |
4264 | shell.CFrame = rarm.CFrame * CFrame.new(0,-1,0) | |
4265 | shell2.CFrame = larm.CFrame * CFrame.new(0,-1,0) | |
4266 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(110)), 0.7) | |
4267 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(40)), 0.7) | |
4268 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.7) | |
4269 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.7) | |
4270 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.7) | |
4271 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(20)), 0.7) | |
4272 | if Debounces.on == false then break end | |
4273 | rs:wait() | |
4274 | end | |
4275 | shell.Transparency = 1 | |
4276 | if Debounces.CanAttack == false then | |
4277 | Debounces.CanAttack = true | |
4278 | Debounces.NoIdl = false | |
4279 | Debounces.on = false | |
4280 | end | |
4281 | end | |
4282 | end | |
4283 | end) | |
4284 | ---------------------------------------------------- | |
4285 | Search = false | |
4286 | mouse.KeyDown:connect(function(key) | |
4287 | if key == "n" then | |
4288 | if Search == false then | |
4289 | Search = true | |
4290 | for i,v in pairs(game.Players:getPlayers()) do | |
4291 | if v.Name~=char.Name then | |
4292 | for j,k in pairs(v.Character:GetChildren()) do | |
4293 | if k:IsA("BasePart") and k.Transparency >= 1 then | |
4294 | bawx=Instance.new("SelectionBox",cam) | |
4295 | bawx.Color = BrickColor.new("Bright red") | |
4296 | bawx.Transparency = .5 | |
4297 | bawx.Adornee = k | |
4298 | end | |
4299 | end | |
4300 | end | |
4301 | end | |
4302 | elseif Search == true then | |
4303 | Search = false | |
4304 | for i, v in pairs(cam:GetChildren()) do | |
4305 | if v:IsA("SelectionBox") then | |
4306 | v:Destroy() | |
4307 | end | |
4308 | end | |
4309 | end | |
4310 | end | |
4311 | end) | |
4312 | ---------------------------------------------------- | |
4313 | Grab = false | |
4314 | mouse.KeyDown:connect(function(key) | |
4315 | if key == "z" then | |
4316 | Debounces.on = true | |
4317 | Debounces.NoIdl = true | |
4318 | Debounces.ks = true | |
4319 | if Grab == false then | |
4320 | gp = nil | |
4321 | for i = 1, 20 do | |
4322 | 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) | |
4323 | 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) | |
4324 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.2) | |
4325 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) | |
4326 | 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) | |
4327 | 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) | |
4328 | if Debounces.on == false then break end | |
4329 | rs:wait() | |
4330 | end | |
4331 | con1=larm.Touched:connect(function(hit) -- this is grab | |
4332 | ht = hit.Parent | |
4333 | hum1=ht:FindFirstChild('Humanoid') | |
4334 | if hum1 ~= nil then | |
4335 | if Debounces.ks==true then | |
4336 | z = Instance.new("Sound",hed) | |
4337 | z.SoundId = "rbxassetid://169380525" | |
4338 | z.Volume = 1 | |
4339 | z:Play() | |
4340 | Debounces.ks=false | |
4341 | end | |
4342 | hum1.PlatformStand=true | |
4343 | gp = ht | |
4344 | Grab = true | |
4345 | asd=weld5(root,ht:FindFirstChild("Torso"),CFrame.new(0,0,-2.4),CFrame.new(0,0,0)) | |
4346 | asd.Parent = larm | |
4347 | asd.Name = "asd" | |
4348 | asd.C0=asd.C0*CFrame.Angles(math.rad(0),math.rad(180),0) | |
4349 | --[[elseif hum1 == nil then | |
4350 | con1:disconnect() | |
4351 | wait() return]]-- | |
4352 | end | |
4353 | end) | |
4354 | for i = 1, 20 do | |
4355 | 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) | |
4356 | 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) | |
4357 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(0),0), 0.2) | |
4358 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) | |
4359 | 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) | |
4360 | 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) | |
4361 | if Debounces.on == false then break end | |
4362 | rs:wait() | |
4363 | end | |
4364 | if hum1 == nil then | |
4365 | Debounces.on = false | |
4366 | Debounces.NoIdl = false | |
4367 | end | |
4368 | con1:disconnect() | |
4369 | elseif Grab == true then | |
4370 | Grab = false | |
4371 | Punch() | |
4372 | z = Instance.new("Sound",hed) | |
4373 | z.SoundId = "rbxassetid://169380525" | |
4374 | z.Pitch = ptz[math.random(1,#ptz)] | |
4375 | z.Volume = 1 | |
4376 | z:Play() | |
4377 | for i = 1, 10 do | |
4378 | 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) | |
4379 | 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) | |
4380 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
4381 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
4382 | 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) | |
4383 | 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) | |
4384 | if Debounces.on == false then break end | |
4385 | rs:wait() | |
4386 | end | |
4387 | Punch() | |
4388 | z = Instance.new("Sound",hed) | |
4389 | z.SoundId = "rbxassetid://169380525" | |
4390 | z.Pitch = ptz[math.random(1,#ptz)] | |
4391 | z.Volume = 1 | |
4392 | z:Play() | |
4393 | for i = 1, 10 do | |
4394 | 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) | |
4395 | 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) | |
4396 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
4397 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
4398 | 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) | |
4399 | 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) | |
4400 | if Debounces.on == false then break end | |
4401 | rs:wait() | |
4402 | end | |
4403 | Punch() | |
4404 | z = Instance.new("Sound",hed) | |
4405 | z.SoundId = "rbxassetid://169380525" | |
4406 | z.Pitch = ptz[math.random(1,#ptz)] | |
4407 | z.Volume = 1 | |
4408 | z:Play() | |
4409 | for i = 1, 10 do | |
4410 | 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) | |
4411 | 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) | |
4412 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
4413 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
4414 | 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) | |
4415 | 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) | |
4416 | if Debounces.on == false then break end | |
4417 | rs:wait() | |
4418 | end | |
4419 | Punch() | |
4420 | z = Instance.new("Sound",hed) | |
4421 | z.SoundId = "rbxassetid://169380525" | |
4422 | z.Pitch = ptz[math.random(1,#ptz)] | |
4423 | z.Volume = 1 | |
4424 | z:Play() | |
4425 | for i = 1, 10 do | |
4426 | 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) | |
4427 | 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) | |
4428 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
4429 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
4430 | 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) | |
4431 | 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) | |
4432 | if Debounces.on == false then break end | |
4433 | rs:wait() | |
4434 | end | |
4435 | Punch() | |
4436 | z = Instance.new("Sound",hed) | |
4437 | z.SoundId = "rbxassetid://169380525" | |
4438 | z.Pitch = ptz[math.random(1,#ptz)] | |
4439 | z.Volume = 1 | |
4440 | z:Play() | |
4441 | for i = 1, 10 do | |
4442 | 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) | |
4443 | 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) | |
4444 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
4445 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
4446 | 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) | |
4447 | 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) | |
4448 | if Debounces.on == false then break end | |
4449 | rs:wait() | |
4450 | end | |
4451 | Punch() | |
4452 | z = Instance.new("Sound",hed) | |
4453 | z.SoundId = "rbxassetid://169380525" | |
4454 | z.Pitch = ptz[math.random(1,#ptz)] | |
4455 | z.Volume = 1 | |
4456 | z:Play() | |
4457 | for i = 1, 10 do | |
4458 | 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) | |
4459 | 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) | |
4460 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
4461 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
4462 | 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) | |
4463 | 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) | |
4464 | if Debounces.on == false then break end | |
4465 | rs:wait() | |
4466 | end | |
4467 | Punch() | |
4468 | z = Instance.new("Sound",hed) | |
4469 | z.SoundId = "rbxassetid://169380525" | |
4470 | z.Pitch = ptz[math.random(1,#ptz)] | |
4471 | z.Volume = 1 | |
4472 | z:Play() | |
4473 | for i = 1, 10 do | |
4474 | 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) | |
4475 | 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) | |
4476 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
4477 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
4478 | 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) | |
4479 | 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) | |
4480 | if Debounces.on == false then break end | |
4481 | rs:wait() | |
4482 | end | |
4483 | Punch() | |
4484 | z = Instance.new("Sound",hed) | |
4485 | z.SoundId = "rbxassetid://169380525" | |
4486 | z.Pitch = ptz[math.random(1,#ptz)] | |
4487 | z.Volume = 1 | |
4488 | z:Play() | |
4489 | for i = 1, 10 do | |
4490 | 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) | |
4491 | 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) | |
4492 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
4493 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
4494 | 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) | |
4495 | 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) | |
4496 | if Debounces.on == false then break end | |
4497 | rs:wait() | |
4498 | end | |
4499 | Punch() | |
4500 | z = Instance.new("Sound",hed) | |
4501 | z.SoundId = "rbxassetid://169380525" | |
4502 | z.Pitch = ptz[math.random(1,#ptz)] | |
4503 | z.Volume = 1 | |
4504 | z:Play() | |
4505 | for i = 1, 10 do | |
4506 | 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) | |
4507 | 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) | |
4508 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
4509 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
4510 | 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) | |
4511 | 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) | |
4512 | if Debounces.on == false then break end | |
4513 | rs:wait() | |
4514 | end | |
4515 | Punch() | |
4516 | z = Instance.new("Sound",hed) | |
4517 | z.SoundId = "rbxassetid://169380525" | |
4518 | z.Pitch = ptz[math.random(1,#ptz)] | |
4519 | z.Volume = 1 | |
4520 | z:Play() | |
4521 | for i = 1, 10 do | |
4522 | 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) | |
4523 | 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) | |
4524 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
4525 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
4526 | 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) | |
4527 | 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) | |
4528 | if Debounces.on == false then break end | |
4529 | rs:wait() | |
4530 | end | |
4531 | Punch() | |
4532 | z = Instance.new("Sound",hed) | |
4533 | z.SoundId = "rbxassetid://169380525" | |
4534 | z.Pitch = ptz[math.random(1,#ptz)] | |
4535 | z.Volume = 1 | |
4536 | z:Play() | |
4537 | for i = 1, 10 do | |
4538 | 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) | |
4539 | 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) | |
4540 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(90),0), 0.4) | |
4541 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-90), 0), 0.6) | |
4542 | 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) | |
4543 | 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) | |
4544 | if Debounces.on == false then break end | |
4545 | rs:wait() | |
4546 | end | |
4547 | Punch() | |
4548 | z = Instance.new("Sound",hed) | |
4549 | z.SoundId = "rbxassetid://169380525" | |
4550 | z.Pitch = ptz[math.random(1,#ptz)] | |
4551 | z.Volume = 1 | |
4552 | z:Play() | |
4553 | for i = 1, 10 do | |
4554 | 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) | |
4555 | 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) | |
4556 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(-90),0), 0.4) | |
4557 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(90), 0), 0.65) | |
4558 | 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) | |
4559 | 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) | |
4560 | if Debounces.on == false then break end | |
4561 | rs:wait() | |
4562 | end | |
4563 | con1:disconnect() | |
4564 | Debounces.on = false | |
4565 | Debounces.NoIdl = false | |
4566 | if gp ~= nil then | |
4567 | gp:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 140 | |
4568 | for i,v in pairs(larm:GetChildren()) do | |
4569 | if v.Name == "asd" and v:IsA("Weld") then | |
4570 | v:Remove() | |
4571 | end | |
4572 | end | |
4573 | --[[bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso")) | |
4574 | bv.maxForce = Vector3.new(400000, 400000, 400000) | |
4575 | bv.P = 125000 | |
4576 | bv.velocity = char.Head.CFrame.lookVector * 200]]-- | |
4577 | hum1=nil | |
4578 | ht=nil | |
4579 | Debounces.on = false | |
4580 | Debounces.NoIdl = false | |
4581 | elseif ht == nil then wait() | |
4582 | Grab = false | |
4583 | Debounces.on = false | |
4584 | Debounces.NoIdl = false | |
4585 | end | |
4586 | end | |
4587 | end | |
4588 | end) | |
4589 | ---------------------------------------------------- | |
4590 | paly = game.Players.LocalPlayer | |
4591 | paly = game.Players.LocalPlayer | |
4592 | p = game.Players.LocalPlayer | |
4593 | char = paly.Character | |
4594 | vt = Vector3.new | |
4595 | rarm = char["Right Arm"] | |
4596 | larm = char["Left Arm"] | |
4597 | local maincolor = char.Torso.BrickColor | |
4598 | ||
4599 | local orb = Instance.new("Part") | |
4600 | orb.Parent = char | |
4601 | orb.Size = Vector3.new(0.5, 0.5, 0.5) | |
4602 | orb.Archivable = true | |
4603 | orb.Transparency = 1 | |
4604 | orb.BrickColor = maincolor | |
4605 | orb.Material = "Neon" | |
4606 | orb.CanCollide = false | |
4607 | local weld1 = Instance.new("Weld") | |
4608 | weld1.Parent = rarm | |
4609 | weld1.Part0 = rarm | |
4610 | weld1.Part1 = orb | |
4611 | weld1.C1 = CFrame.new(0, 1.125, 0) | |
4612 | local pt1 = NumberSequenceKeypoint.new(0,0.85,0) | |
4613 | local pt2 = NumberSequenceKeypoint.new(1,0,0) | |
4614 | local effecto = Instance.new("ParticleEmitter",orb) | |
4615 | effecto.LightEmission = 1 | |
4616 | effecto.Texture = "rbxasset://textures/particles/smoke_main.dds" | |
4617 | effecto.Color = ColorSequence.new(maincolor.Color) | |
4618 | effecto.Rate = 10000 | |
4619 | effecto.Lifetime = NumberRange.new(1) | |
4620 | effecto.Size = NumberSequence.new({pt1,pt2}) | |
4621 | effecto.Speed = NumberRange.new(0,0) | |
4622 | effecto.RotSpeed = NumberRange.new(100,100) | |
4623 | ||
4624 | local orbz = Instance.new("Part") | |
4625 | orbz.Parent = char | |
4626 | orbz.Size = Vector3.new(0.5, 0.5, 0.5) | |
4627 | orbz.Archivable = true | |
4628 | orbz.Transparency = 1 | |
4629 | orbz.BrickColor = maincolor | |
4630 | orbz.Material = "Neon" | |
4631 | orbz.CanCollide = false | |
4632 | local weldz1 = Instance.new("Weld") | |
4633 | weldz1.Parent = larm | |
4634 | weldz1.Part0 = larm | |
4635 | weldz1.Part1 = orbz | |
4636 | weldz1.C1 = CFrame.new(0, 1.125, 0) | |
4637 | local effecton = Instance.new("ParticleEmitter",orbz) | |
4638 | effecton.LightEmission = 1 | |
4639 | effecton.Texture = "rbxasset://textures/particles/smoke_main.dds" | |
4640 | effecton.Color = ColorSequence.new(maincolor.Color) | |
4641 | effecton.Rate = 10000 | |
4642 | effecton.Lifetime = NumberRange.new(1) | |
4643 | effecton.Size = NumberSequence.new({pt1,pt2}) | |
4644 | effecton.Speed = NumberRange.new(0,0) | |
4645 | effecton.RotSpeed = NumberRange.new(100,100) | |
4646 | ------------------------------------------- | |
4647 | ||
4648 | mouse.KeyDown:connect(function(key) | |
4649 | if string.byte(key) == 52 then | |
4650 | char.Humanoid.WalkSpeed = 60 | |
4651 | end | |
4652 | end) | |
4653 | mouse.KeyUp:connect(function(key) | |
4654 | if string.byte(key) == 52 then | |
4655 | char.Humanoid.WalkSpeed = 8 | |
4656 | end | |
4657 | end) | |
4658 | ------------------------------- | |
4659 | local animpose = "Idle" | |
4660 | local lastanimpose = "Idle" | |
4661 | local sine = 0 | |
4662 | local change = 1 | |
4663 | local val = 0 | |
4664 | local och = 0 | |
4665 | local ffing = false | |
4666 | ------------------------------- | |
4667 | game:GetService("RunService").RenderStepped:connect(function() | |
4668 | --[[if char.Humanoid.Jump == true then | |
4669 | jump = true | |
4670 | else | |
4671 | jump = false | |
4672 | end]] | |
4673 | char.Humanoid.FreeFalling:connect(function(f) | |
4674 | if f then | |
4675 | ffing = true | |
4676 | else | |
4677 | ffing = false | |
4678 | end | |
4679 | end) | |
4680 | sine = sine + change | |
4681 | if jumpn == true then | |
4682 | animpose = "Jumping" | |
4683 | elseif ffing == true then | |
4684 | animpose = "Freefalling" | |
4685 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then | |
4686 | animpose = "Idle" | |
4687 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then | |
4688 | animpose = "Walking" | |
4689 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then | |
4690 | animpose = "Running" | |
4691 | end | |
4692 | if animpose ~= lastanimpose then | |
4693 | sine = 0 | |
4694 | if Debounces.NoIdl == false then | |
4695 | if animpose == "Idle" then | |
4696 | for i = 1, 2 do | |
4697 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(-6),math.rad(8)), 0.4) | |
4698 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.4) | |
4699 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4) | |
4700 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4) | |
4701 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.625, -0.35) * CFrame.Angles(0, 0, math.rad(-8)), 0.4) | |
4702 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4) | |
4703 | end | |
4704 | elseif animpose == "Walking" then | |
4705 | for i = 1, 2 do | |
4706 | 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) | |
4707 | 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) | |
4708 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14),0,0), 0.4) | |
4709 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05) | |
4710 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(-8)), 0.4) | |
4711 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-8), 0, math.rad(8)), 0.4) | |
4712 | end | |
4713 | elseif animpose == "Running" then | |
4714 | for i = 1, 2 do | |
4715 | 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) | |
4716 | 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) | |
4717 | 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) | |
4718 | 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) | |
4719 | 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) | |
4720 | 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) | |
4721 | wait() | |
4722 | end | |
4723 | end | |
4724 | else | |
4725 | end | |
4726 | end | |
4727 | lastanimpose = animpose | |
4728 | if Debounces.NoIdl == false then | |
4729 | if animpose == "Idle" then | |
4730 | change = 0.5 | |
4731 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0.2)*CFrame.Angles(math.rad(-12-4*math.cos(sine/22)),math.rad(-12-2*math.cos(sine/22)),math.rad(12+2*math.cos(sine/22))), 0.3) | |
4732 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,-0.2)*CFrame.Angles(math.rad(20+4*math.cos(sine/22)),math.rad(-22-2*math.cos(sine/22)),math.rad(-15-2*math.cos(sine/22))), 0.3) | |
4733 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-12+2.5*math.cos(sine/22)),math.rad(0),math.rad(0)), 0.2) | |
4734 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-2+2*math.cos(sine/22)), math.rad(0), 0), 0.2) | |
4735 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.06) * CFrame.Angles(math.rad(0-2*math.cos(sine/22)), math.rad(5), math.rad(-5)), 0.2) | |
4736 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(0-2*math.cos(sine/22)), math.rad(-5), math.rad(5)), 0.2) | |
4737 | elseif animpose == "Walking" then | |
4738 | change = 1 | |
4739 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(-32),math.rad(-28),math.rad(10+2*math.cos(sine/14))), 0.2) | |
4740 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(50),math.rad(-45),math.rad(-10-2*math.cos(sine/14))), 0.2) | |
4741 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14),0,0), 0.4) | |
4742 | 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) | |
4743 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.215, -0.35) * CFrame.Angles(-0.35, 0, 0), 0.4) | |
4744 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(-0.475,0,0), 0.4) | |
4745 | elseif animpose == "Running" then | |
4746 | change = 1 | |
4747 | 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) | |
4748 | 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) | |
4749 | 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) | |
4750 | 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) | |
4751 | 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) | |
4752 | 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) | |
4753 | end | |
4754 | end | |
4755 | end) | |
4756 | ||
4757 | hum.MaxHealth = math.huge | |
4758 | wait(3) | |
4759 | hum.Health = hum.MaxHealth | |
4760 | ||
4761 | function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans) -- Lightning module | |
4762 | --[[Part0 = Vector3 (Start pos) | |
4763 | Part1 = Vector3 (End pos) | |
4764 | Times = number (Amount of lightning parts) | |
4765 | Offset = number (Offset) | |
4766 | Color = color (brickcolor value) | |
4767 | Thickness = number (thickness) | |
4768 | Trans = number (transparency) | |
4769 | ]]-- | |
4770 | local magz = (Part0 - Part1).magnitude | |
4771 | local curpos = Part0 | |
4772 | local trz = {-Offset,Offset} | |
4773 | for i=1,Times do | |
4774 | local li = Instance.new("Part", torso) | |
4775 | li.Name = "Lightning" | |
4776 | li.TopSurface =0 | |
4777 | li.Material = "Neon" | |
4778 | li.BottomSurface = 0 | |
4779 | li.Anchored = true | |
4780 | li.Locked = true | |
4781 | li.Transparency = Trans or 0.4 | |
4782 | li.BrickColor = TorsoColor | |
4783 | li.formFactor = "Custom" | |
4784 | li.CanCollide = false | |
4785 | li.Size = Vector3.new(Thickness,Thickness,magz/Times) | |
4786 | local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)]) | |
4787 | local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet | |
4788 | if Times == i then | |
4789 | local magz2 = (curpos - Part1).magnitude | |
4790 | li.Size = Vector3.new(Thickness,Thickness,magz2) | |
4791 | li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2) | |
4792 | else | |
4793 | li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2) | |
4794 | end | |
4795 | curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p | |
4796 | game.Debris:AddItem(li,.1) | |
4797 | end | |
4798 | end | |
4799 | ||
4800 | BodyParts = {} -- Parts to emit lightning effects from | |
4801 | for _, v in pairs(char:GetChildren()) do | |
4802 | if v:IsA("Part") then | |
4803 | table.insert(BodyParts, v) | |
4804 | end | |
4805 | end | |
4806 | ||
4807 | Bounding = {} -- Calculate the bounding boxes | |
4808 | for _, v in pairs(BodyParts) do | |
4809 | local temp = {X=nil, Y=nil, Z=nil} | |
4810 | temp.X = v.Size.X/2 * 10 | |
4811 | temp.Y = v.Size.Y/2 * 10 | |
4812 | temp.Z = v.Size.Z/2 * 10 | |
4813 | Bounding[v.Name] = temp | |
4814 | --table.insert(Bounding, v.Name, temp) | |
4815 | end | |
4816 | ||
4817 | while wait(math.random(1,10)/10) do -- Emit the Lightning effects randomly | |
4818 | local Body1 = BodyParts[math.random(#BodyParts)] | |
4819 | local Body2 = BodyParts[math.random(#BodyParts)] | |
4820 | local Pos1 = Vector3.new( | |
4821 | math.random(-Bounding[Body1.Name].X, Bounding[Body1.Name].X)/10, | |
4822 | math.random(-Bounding[Body1.Name].Y, Bounding[Body1.Name].Y)/10, | |
4823 | math.random(-Bounding[Body1.Name].Z, Bounding[Body1.Name].Z)/10 | |
4824 | ) | |
4825 | local Pos2 = Vector3.new( | |
4826 | math.random(-Bounding[Body2.Name].X, Bounding[Body2.Name].X)/10, | |
4827 | math.random(-Bounding[Body2.Name].Y, Bounding[Body2.Name].Y)/10, | |
4828 | math.random(-Bounding[Body2.Name].Z, Bounding[Body2.Name].Z)/10 | |
4829 | ) | |
4830 | local SPos1 = Body1.Position + Pos1 | |
4831 | local SPos2 = Body2.Position + Pos2 | |
4832 | Lightning(SPos1, SPos2, 4, 3, "Bright red", .3, .56) | |
4833 | end | |
4834 | och=och+1 | |
4835 | for _,v in pairs(orbt) do | |
4836 | pcall(function() | |
4837 | v.Mesh.Scale=Vector3.new(cns+(0.2*math.cos(och/12)),cns+(0.2*math.cos(och/10)),cns+(0.2*math.cos(och/8))) | |
4838 | end) | |
4839 | end | |
4840 | for _,v in pairs(stlt) do | |
4841 | pcall(function() | |
4842 | v.CFrame=larm.CFrame*CFrame.new(0,-3.5-(cns/2),-0.1) | |
4843 | end) | |
4844 | end | |
4845 | for _,v in pairs(chot) do | |
4846 | pcall(function() | |
4847 | v.CFrame=Lerp(v.CFrame,cnOrb.CFrame,0.1) | |
4848 | v.Mesh.Scale=Vector3.new(Tween(v.Mesh.Scale.X,0,0.1),Tween(v.Mesh.Scale.Y,0,0.1),Tween(v.Mesh.Scale.Z,0,0.1)) | |
4849 | end) | |
4850 | end | |
4851 | for _,v in pairs(cfxt) do | |
4852 | pcall(function() | |
4853 | local vs=v.Mesh.Scale | |
4854 | v.Mesh.Scale=Vector3.new(vs.x+0.5,vs.y+0.1,vs.z+0.5) | |
4855 | v.Transparency=v.Transparency+0.05 | |
4856 | end) | |
4857 | end | |
4858 | for _,v in pairs(pfxt) do | |
4859 | pcall(function() | |
4860 | local vs=v.Mesh.Scale | |
4861 | v.Mesh.Scale=Vector3.new(vs.x+2,vs.y+0.5,vs.z+2) | |
4862 | v.Transparency=v.Transparency+0.025 | |
4863 | end) | |
4864 | end |