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