SHOW:
|
|
- or go back to the newest paste.
1 | --fixed by Scenius | |
2 | - | plr = game.Players.battleman22222 |
2 | + | plr = game.Players.XxXexe5 |
3 | repeat | |
4 | wait(0.4) | |
5 | until plr.Character | |
6 | chr = plr.Character | |
7 | human = chr:FindFirstChild("Humanoid") | |
8 | mouse = plr:GetMouse() | |
9 | selected = false | |
10 | equipd = false | |
11 | tors = chr.Torso | |
12 | rarm = chr["Right Arm"] | |
13 | larm = chr["Left Arm"] | |
14 | rleg = chr["Right Leg"] | |
15 | lleg = chr["Left Leg"] | |
16 | hrp = chr.HumanoidRootPart | |
17 | head = chr.Head | |
18 | anim = human.Animator | |
19 | activu = false | |
20 | Heartbeat = Instance.new("BindableEvent") | |
21 | Heartbeat.Name = "Heartbeat" | |
22 | Heartbeat.Parent = script | |
23 | frame = 0.03333333333333333 | |
24 | tf = 0 | |
25 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
26 | tf = tf + s | |
27 | if tf >= frame then | |
28 | for i = 1, math.floor(tf / frame) do | |
29 | Heartbeat:Fire() | |
30 | end | |
31 | tf = tf - frame * math.floor(tf / frame) | |
32 | end | |
33 | end) | |
34 | function swait(num) | |
35 | if num == 0 or num == nil then | |
36 | Heartbeat.Event:wait() | |
37 | else | |
38 | for i = 1, num do | |
39 | Heartbeat.Event:wait() | |
40 | end | |
41 | end | |
42 | end | |
43 | tool = Instance.new("Tool") | |
44 | tool.CanBeDropped = false | |
45 | tool.RequiresHandle = false | |
46 | tool.Name = "fir" | |
47 | tool.Parent = plr.Backpack | |
48 | RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
49 | RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
50 | LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
51 | LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
52 | RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
53 | RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
54 | LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
55 | LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
56 | NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
57 | NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
58 | RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
59 | RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
60 | RS = tors:FindFirstChild("Right Shoulder") | |
61 | LS = tors:FindFirstChild("Left Shoulder") | |
62 | RH = tors:FindFirstChild("Right Hip") | |
63 | LH = tors:FindFirstChild("Left Hip") | |
64 | RJ = hrp:FindFirstChild("RootJoint") | |
65 | N = tors:FindFirstChild("Neck") | |
66 | cf = CFrame.new | |
67 | ang = CFrame.Angles | |
68 | rd = math.rad | |
69 | rd2 = math.random | |
70 | function nooutline(p) | |
71 | p.TopSurface, p.BottomSurface, p.LeftSurface, p.RightSurface, p.FrontSurface, p.BottomSurface = 10, 10, 10, 10, 10, 10 | |
72 | end | |
73 | function makepart(color, name, reflec, mater, parnt, cfram) | |
74 | local port = Instance.new("Part") | |
75 | port.BrickColor = BrickColor.new(color) | |
76 | port.Name = name | |
77 | nooutline(port) | |
78 | port.Reflectance = reflec | |
79 | port.Material = mater | |
80 | port.Anchored = false | |
81 | port.CanCollide = false | |
82 | port.Locked = true | |
83 | port.Size = Vector3.new(0.2, 0.2, 0.2) | |
84 | port.Parent = parnt | |
85 | return port | |
86 | end | |
87 | function makemesh(meshtype, scale, meshid, parent) | |
88 | local mes = Instance.new("SpecialMesh") | |
89 | mes.MeshType = meshtype | |
90 | mes.Scale = scale | |
91 | if meshtype == "FileMesh" then | |
92 | mes.MeshId = meshid | |
93 | end | |
94 | mes.Parent = parent | |
95 | return mes | |
96 | end | |
97 | function makeweld(parent, p0, p1, c0, c1) | |
98 | local wel = Instance.new("Weld") | |
99 | wel.Part0 = p0 | |
100 | wel.Part1 = p1 | |
101 | wel.C0 = c0 | |
102 | if c1 ~= nil then | |
103 | wel.C1 = c1 | |
104 | end | |
105 | wel.Parent = parent | |
106 | return wel | |
107 | end | |
108 | function smokz(prnt) | |
109 | s = Instance.new("Smoke") | |
110 | s.Color = Color3.new(1, 1, 1) | |
111 | s.Enabled = false | |
112 | s.Name = "smok" | |
113 | s.Opacity = 0.5 | |
114 | s.RiseVelocity = 0.2 | |
115 | s.Size = 0.1 | |
116 | s.Parent = prnt | |
117 | end | |
118 | function glow(tz, paz, smokinz, length) | |
119 | if tz.Parent:FindFirstChildOfClass("Humanoid") and paz.Transparency == 1 then | |
120 | do | |
121 | local s = Instance.new("Sound") | |
122 | s.SoundId = "rbxassetid://298181829" | |
123 | s.Volume = 0.25 | |
124 | s.Pitch = math.random(9, 11) / 10 | |
125 | s.Parent = paz | |
126 | s:Play() | |
127 | paz.Transparency = 0.7 | |
128 | if smokinz == true then | |
129 | paz.smok.Enabled = true | |
130 | end | |
131 | delay(length, function() | |
132 | paz.Transparency = 1 | |
133 | paz.smok.Enabled = false | |
134 | s:Destroy() | |
135 | end) | |
136 | end | |
137 | end | |
138 | end | |
139 | function makeglow() | |
140 | for _, p in pairs(chr:GetChildren()) do | |
141 | if p.ClassName == "Accessory" then | |
142 | do | |
143 | local h = p:FindFirstChildOfClass("Part") | |
144 | local nh = h:Clone() | |
145 | nh.Parent = nil | |
146 | nh.CFrame = h.CFrame | |
147 | nh.Transparency = 1 | |
148 | nh.Name = "Glow" | |
149 | nh.Material = "Neon" | |
150 | nh.BrickColor = BrickColor.new("Really red") | |
151 | nh.CustomPhysicalProperties = PhysicalProperties.new(0.2, 0.3, 0.5) | |
152 | nh.Parent = h | |
153 | makeweld(nh, nh, h, cf(0, 0, 0)) | |
154 | local m = nh:FindFirstChildOfClass("SpecialMesh") | |
155 | m.Scale = m.Scale + Vector3.new(0.06, 0.06, 0.06) | |
156 | m.TextureId = "" | |
157 | smokz(nh) | |
158 | nh.Touched:connect(function(po) | |
159 | glow(po, nh, true, 0.8) | |
160 | end) | |
161 | end | |
162 | elseif p.ClassName == "Part" and p ~= hrp then | |
163 | do | |
164 | local n = p:Clone() | |
165 | n.Parent = nil | |
166 | n.Transparency = 1 | |
167 | n.Material = "Neon" | |
168 | n.Name = "Glow" | |
169 | n.BrickColor = BrickColor.new("Really red") | |
170 | n.CFrame = p.CFrame | |
171 | n.CustomPhysicalProperties = PhysicalProperties.new(0.2, 0.3, 0.5) | |
172 | n.Parent = p | |
173 | makeweld(n, n, p, cf(0, 0, 0)) | |
174 | smokz(n) | |
175 | n.Touched:connect(function(po) | |
176 | glow(po, n, true, 0.8) | |
177 | end) | |
178 | if n:FindFirstChildOfClass("Decal") then | |
179 | n:FindFirstChildOfClass("Decal"):Destroy() | |
180 | end | |
181 | if p:FindFirstChildOfClass("SpecialMesh") then | |
182 | local c = p:FindFirstChildOfClass("SpecialMesh"):Clone() | |
183 | c.Parent = nil | |
184 | c.Scale = c.Scale + Vector3.new(0.05, 0.05, 0.05) | |
185 | c.Parent = n | |
186 | else | |
187 | local m = Instance.new("BlockMesh") | |
188 | m.Scale = Vector3.new(1.05, 1.025, 1.05) | |
189 | if p == tors then | |
190 | m.Scale = Vector3.new(1.05, 1.05, 1.05) | |
191 | end | |
192 | m.Parent = n | |
193 | end | |
194 | end | |
195 | end | |
196 | end | |
197 | end | |
198 | makeglow() | |
199 | function fglow(glopart, duration) | |
200 | for _ = 1, 4 do | |
201 | swait() | |
202 | glopart.Transparency = glopart.Transparency - 0.075 | |
203 | end | |
204 | delay(duration, function() | |
205 | for _ = 1, 4 do | |
206 | swait() | |
207 | glopart.Transparency = glopart.Transparency + 0.075 | |
208 | end | |
209 | end) | |
210 | end | |
211 | function lerpz(joint, prop, cfrmz, alp) | |
212 | joint[prop] = joint[prop]:lerp(cfrmz, alp) | |
213 | end | |
214 | function resetlerp() | |
215 | RJ.C0 = RJC0 | |
216 | RJ.C1 = RJC1 | |
217 | N.C0 = NC0 | |
218 | N.C1 = NC1 | |
219 | RS.C0 = RSC0 | |
220 | RS.C1 = RSC1 | |
221 | LS.C0 = LSC0 | |
222 | LS.C1 = LSC1 | |
223 | RH.C0 = RHC0 | |
224 | RH.C1 = RHC1 | |
225 | LH.C0 = LHC0 | |
226 | end | |
227 | function rsmash() | |
228 | if activu == true or selected == false then | |
229 | return | |
230 | end | |
231 | coroutine.resume(coroutine.create(function() | |
232 | fglow(rarm.Glow, 3) | |
233 | end)) | |
234 | activu = true | |
235 | human.WalkSpeed = human.WalkSpeed - 13 | |
236 | animo(false) | |
237 | local pe = Instance.new("ParticleEmitter") | |
238 | pe.Color = ColorSequence.new(Color3.new(1, 0, 0)) | |
239 | pe.LightEmission = 0.9 | |
240 | pe.Size = NumberSequence.new(0.5) | |
241 | pe.Texture = "rbxassetid://272050333" | |
242 | pe.Transparency = NumberSequence.new(0.1) | |
243 | pe.Lifetime = NumberRange.new(0.1) | |
244 | pe.Rate = 1 | |
245 | pe.RotSpeed = NumberRange.new(360) | |
246 | pe.Speed = NumberRange.new(3) | |
247 | pe.VelocitySpread = 360 | |
248 | pe.Parent = rarm.Glow | |
249 | local pe2 = Instance.new("ParticleEmitter") | |
250 | pe2.Color = ColorSequence.new(Color3.new(1, 0, 0)) | |
251 | pe2.LightEmission = 0.9 | |
252 | pe2.Size = NumberSequence.new(5) | |
253 | pe2.Texture = "rbxassetid://516107903" | |
254 | pe2.Transparency = NumberSequence.new(0.4) | |
255 | pe2.ZOffset = 2 | |
256 | pe2.Enabled = false | |
257 | pe2.LockedToPart = true | |
258 | pe2.Lifetime = NumberRange.new(0.07) | |
259 | pe2.Rate = 8 | |
260 | pe2.Rotation = NumberRange.new(0, 360) | |
261 | pe2.RotSpeed = NumberRange.new(0) | |
262 | pe2.Speed = NumberRange.new(0) | |
263 | pe2.VelocitySpread = 180 | |
264 | pe2.Parent = rarm.Glow | |
265 | for _ = 1, 45 do | |
266 | swait() | |
267 | lerpz(RJ, "C0", RJC0 * cf(0, 0.8, -0.2) * ang(rd(10), rd(0), rd(-70)), 0.2) | |
268 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(6), rd(2), rd(68)), 0.2) | |
269 | lerpz(RS, "C0", RSC0 * cf(rd2(-1, 1) / 10, rd2(-1, 1) / 10, rd2(-1, 1) / 10) * ang(rd(rd2(25, 35)), rd(rd2(-15, -5)), rd(rd2(80, 90))), 0.2) | |
270 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
271 | lerpz(LS, "C0", LSC0 * cf(-0.15, -0.4, 0.5) * ang(rd(-10), rd(60), rd(-86)), 0.2) | |
272 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(80), rd(0)), 0.2) | |
273 | lerpz(RH, "C0", RHC0 * cf(0, 0.1, 0) * ang(rd(-6), rd(-29), rd(-2)), 0.2) | |
274 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
275 | lerpz(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-10)), 0.2) | |
276 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
277 | pe.Rate = pe.Rate + 25 | |
278 | end | |
279 | pe2.Enabled = true | |
280 | pe.Speed = NumberRange.new(10) | |
281 | for _ = 1, 30 do | |
282 | swait() | |
283 | lerpz(RJ, "C0", RJC0 * cf(0, 1.2, -0.2) * ang(rd(5), rd(6), rd(-109)), 0.2) | |
284 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-2), rd(-6), rd(96)), 0.2) | |
285 | lerpz(RS, "C0", RSC0 * cf(rd2(-1, 1) / 10, rd2(-1, 1) / 10, rd2(-1, 1) / 10) * ang(rd(rd2(10, 20)), rd(rd2(-25, -15)), rd(rd2(100, 110))), 0.2) | |
286 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(60), rd(-46)), 0.2) | |
287 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(30), rd(0)), 0.2) | |
288 | lerpz(RH, "C0", RHC0 * cf(0, 0.1, 0) * ang(rd(-6), rd(-39), rd(-2)), 0.2) | |
289 | lerpz(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-10)), 0.2) | |
290 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(0)), 0.2) | |
291 | end | |
292 | for l = 1, 3 do | |
293 | swait() | |
294 | lerpz(RJ, "C0", RJC0 * cf(0.4, -1.6, -0.2) * ang(rd(5), rd(6), rd(60)), 0.3 + l / 4) | |
295 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(14), rd(-4), rd(-35)), 0.3 + l / 4) | |
296 | lerpz(RS, "C0", RSC0 * cf(0.3, -0.4, 0.55) * ang(rd(0), rd(-58), rd(95)), 0.3 + l / 4) | |
297 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(-80), rd(0)), 0.3 + l / 4) | |
298 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(60), rd(-66)), 0.3 + l / 4) | |
299 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(30), rd(0)), 0.3 + l / 4) | |
300 | lerpz(RH, "C0", RHC0 * cf(0, 0.1, 0) * ang(rd(-6), rd(-39), rd(-2)), 0.3 + l / 4) | |
301 | lerpz(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-10)), 0.3 + l / 4) | |
302 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(0)), 0.3 + l / 4) | |
303 | end | |
304 | pe:Destroy() | |
305 | pe2:Destroy() | |
306 | KABOOMZ() | |
307 | rarm.Glow.smok.Enabled = true | |
308 | for _ = 1, 8 do | |
309 | swait() | |
310 | lerpz(RJ, "C0", RJC0 * cf(1.5, -1.6, -0.7) * ang(rd(5), rd(18), rd(95)), 0.8) | |
311 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(14), rd(-10), rd(-15)), 0.8) | |
312 | lerpz(RS, "C0", RSC0 * cf(0.3, -0.4, 0.55) * ang(rd(0), rd(40), rd(65)), 0.8) | |
313 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(-80), rd(0)), 0.8) | |
314 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(60), rd(-86)), 0.8) | |
315 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(30), rd(0)), 0.8) | |
316 | lerpz(RH, "C0", RHC0 * cf(0, 0.7, 0) * ang(rd(-6), rd(-39), rd(24)), 0.8) | |
317 | lerpz(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-20)), 0.8) | |
318 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(0)), 0.8) | |
319 | end | |
320 | wait(1.5) | |
321 | animo(true) | |
322 | human.WalkSpeed = human.WalkSpeed + 13 | |
323 | for _ = 1, 24 do | |
324 | swait() | |
325 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
326 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
327 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
328 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
329 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
330 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
331 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
332 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
333 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
334 | end | |
335 | resetlerp() | |
336 | rarm.Glow.smok.Enabled = false | |
337 | activu = false | |
338 | end | |
339 | function jum() | |
340 | if activu == true or selected == false then | |
341 | return | |
342 | end | |
343 | coroutine.resume(coroutine.create(function() | |
344 | fglow(rleg.Glow, 1) | |
345 | fglow(lleg.Glow, 1) | |
346 | end)) | |
347 | activu = true | |
348 | human.WalkSpeed = human.WalkSpeed - 13 | |
349 | local pe = Instance.new("ParticleEmitter") | |
350 | pe.Color = ColorSequence.new(Color3.new(1, 0, 0)) | |
351 | pe.LightEmission = 0.9 | |
352 | pe.Size = NumberSequence.new(0.5) | |
353 | pe.Texture = "rbxassetid://272050333" | |
354 | pe.Transparency = NumberSequence.new(0.1) | |
355 | pe.Lifetime = NumberRange.new(0.1) | |
356 | pe.Rate = 250 | |
357 | pe.RotSpeed = NumberRange.new(360) | |
358 | pe.Speed = NumberRange.new(3) | |
359 | pe.VelocitySpread = 360 | |
360 | pe.Parent = rleg.Glow | |
361 | local pea = pe:Clone() | |
362 | pea.Parent = lleg.Glow | |
363 | local pe2 = Instance.new("ParticleEmitter") | |
364 | pe2.Color = ColorSequence.new(Color3.new(1, 0, 0)) | |
365 | pe2.LightEmission = 0.9 | |
366 | pe2.Size = NumberSequence.new(5) | |
367 | pe2.Texture = "rbxassetid://516107903" | |
368 | pe2.Transparency = NumberSequence.new(0.4) | |
369 | pe2.ZOffset = 2 | |
370 | pe2.Enabled = true | |
371 | pe2.LockedToPart = true | |
372 | pe2.Lifetime = NumberRange.new(0.07) | |
373 | pe2.Rate = 8 | |
374 | pe2.Rotation = NumberRange.new(0, 360) | |
375 | pe2.RotSpeed = NumberRange.new(0) | |
376 | pe2.Speed = NumberRange.new(0) | |
377 | pe2.VelocitySpread = 180 | |
378 | pe2.Parent = lleg.Glow | |
379 | local pea2 = pe2:Clone() | |
380 | pea2.Parent = rleg.Glow | |
381 | for l = 1, 30 do | |
382 | swait() | |
383 | lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.5) * ang(rd(6), rd(0), rd(0)), 0.02 + l / 40) | |
384 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(12), rd(0), rd(0)), 0.02 + l / 40) | |
385 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-8), rd(-7), rd(-10)), 0.02 + l / 40) | |
386 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
387 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-8), rd(7), rd(10)), 0.02 + l / 40) | |
388 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
389 | lerpz(RH, "C0", RHC0 * cf(0.4, 0.5, 0) * ang(rd(0), rd(-6), rd(8)), 0.02 + l / 40) | |
390 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
391 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(3), rd(0), rd(42)), 0.02 + l / 40) | |
392 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
393 | end | |
394 | pe:Destroy() | |
395 | pe2:Destroy() | |
396 | pea:Destroy() | |
397 | pea2:Destroy() | |
398 | local bfor = Instance.new("BodyPosition") | |
399 | bfor.MaxForce = Vector3.new(math.huge, math.huge, math.huge) | |
400 | bfor.P = 2500 | |
401 | bfor.Position = hrp.Position + Vector3.new(0, 500, 0) | |
402 | bfor.Parent = hrp | |
403 | KABOOMZ2() | |
404 | human.WalkSpeed = human.WalkSpeed + 13 | |
405 | coroutine.resume(coroutine.create(function() | |
406 | swait(3) | |
407 | bfor:Destroy() | |
408 | end)) | |
409 | for _ = 1, 18 do | |
410 | swait() | |
411 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-3), rd(0), rd(0)), 0.6) | |
412 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-12), rd(0), rd(0)), 0.6) | |
413 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-9), rd(-9), rd(-15)), 0.6) | |
414 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.6) | |
415 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-9), rd(9), rd(15)), 0.6) | |
416 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.6) | |
417 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-6), rd(0), rd(-12)), 0.6) | |
418 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.6) | |
419 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-6), rd(0), rd(12)), 0.6) | |
420 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.6) | |
421 | end | |
422 | for _ = 1, 18 do | |
423 | swait() | |
424 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
425 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
426 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
427 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
428 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
429 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
430 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
431 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
432 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
433 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
434 | end | |
435 | resetlerp() | |
436 | activu = false | |
437 | end | |
438 | function KABOOMZ() | |
439 | local effspwn = Instance.new("Part") | |
440 | coroutine.resume(coroutine.create(function() | |
441 | local sound1 = Instance.new("Sound") | |
442 | sound1.SoundId = "rbxassetid://138137702" | |
443 | sound1.MaxDistance = 300 | |
444 | sound1.EmitterSize = 20 | |
445 | sound1.Volume = 5 | |
446 | sound1.Pitch = 0.95 | |
447 | sound1.Parent = effspwn | |
448 | local sound2 = Instance.new("Sound") | |
449 | sound2.SoundId = "rbxassetid://157878578" | |
450 | sound2.MaxDistance = 300 | |
451 | sound2.EmitterSize = 20 | |
452 | sound2.Volume = 2 | |
453 | sound2.Pitch = 0.9 | |
454 | sound2.Parent = effspwn | |
455 | local sound3 = Instance.new("Sound") | |
456 | sound3.SoundId = "rbxassetid://138250406" | |
457 | sound2.MaxDistance = 400 | |
458 | sound2.EmitterSize = 30 | |
459 | sound2.Volume = 1.5 | |
460 | sound2.Pitch = 0.6 | |
461 | sound2.Parent = effspwn | |
462 | sound2:Play() | |
463 | wait() | |
464 | sound1:Play() | |
465 | sound3:Play() | |
466 | end)) | |
467 | local model = Instance.new("Model") | |
468 | game.Debris:AddItem(model, 20) | |
469 | model.Name = "smasheffects" | |
470 | model.Parent = workspace | |
471 | effspwn.Name = "spwnr" | |
472 | effspwn.Size = Vector3.new(1, 1, 1) | |
473 | effspwn.Anchored = true | |
474 | effspwn.CanCollide = false | |
475 | effspwn.Transparency = 1 | |
476 | effspwn.CFrame = rarm.CFrame * CFrame.new(0, -0.7, 0) | |
477 | effspwn.Parent = model | |
478 | coroutine.resume(coroutine.create(function() | |
479 | local shok = Instance.new("Part") | |
480 | shok.Name = "whoosh" | |
481 | shok.BrickColor = BrickColor.new("Institutional white") | |
482 | shok.CFrame = effspwn.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
483 | shok.Size = Vector3.new(1, 1, 1) | |
484 | shok.Anchored = true | |
485 | shok.Material = "Neon" | |
486 | shok.Transparency = 0.1 | |
487 | shok.CanCollide = false | |
488 | shok.Parent = model | |
489 | game.Debris:AddItem(shok, 12) | |
490 | local mesh = Instance.new("SpecialMesh") | |
491 | mesh.MeshType = "FileMesh" | |
492 | mesh.MeshId = "rbxassetid://437347603" | |
493 | mesh.Scale = Vector3.new(0.8, 0.8, 0.3) | |
494 | mesh.Parent = shok | |
495 | for e = 1, 8 do | |
496 | wait() | |
497 | mesh.Scale = mesh.Scale + Vector3.new(0.24, 0.24, 0.22) | |
498 | shok.Transparency = shok.Transparency + 0.035 | |
499 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -14), 0.4) | |
500 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29)) | |
501 | hito(shok, 10, 50, 3) | |
502 | end | |
503 | for e = 1, 16 do | |
504 | wait() | |
505 | mesh.Scale = mesh.Scale + Vector3.new(0.13, 0.13, 0.12) | |
506 | shok.Transparency = shok.Transparency + 0.11 | |
507 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -5), 0.4) | |
508 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(15)) | |
509 | hito(shok, 10, 50, 3) | |
510 | end | |
511 | end)) | |
512 | coroutine.resume(coroutine.create(function() | |
513 | local shok = Instance.new("Part") | |
514 | shok.Name = "wring1" | |
515 | shok.BrickColor = BrickColor.new("Institutional white") | |
516 | shok.CFrame = effspwn.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
517 | shok.Size = Vector3.new(1, 1, 1) | |
518 | shok.Anchored = true | |
519 | shok.Material = "Neon" | |
520 | shok.Transparency = 0.25 | |
521 | shok.CanCollide = false | |
522 | shok.Parent = model | |
523 | game.Debris:AddItem(shok, 12) | |
524 | local mesh = Instance.new("SpecialMesh") | |
525 | mesh.MeshType = "FileMesh" | |
526 | mesh.MeshId = "rbxassetid://3270017" | |
527 | mesh.Scale = Vector3.new(0.1, 0.1, 0.05) | |
528 | mesh.Parent = shok | |
529 | for e = 1, 30 do | |
530 | wait() | |
531 | mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 3) | |
532 | shok.Transparency = shok.Transparency + 0.002 | |
533 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
534 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)) | |
535 | end | |
536 | for e = 1, 38 do | |
537 | wait() | |
538 | mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 0.1) | |
539 | shok.Transparency = shok.Transparency + 0.002 | |
540 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
541 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)) | |
542 | end | |
543 | for e = 1, 24 do | |
544 | wait() | |
545 | mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 0.1) | |
546 | shok.Transparency = shok.Transparency + 0.03 | |
547 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
548 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)) | |
549 | end | |
550 | end)) | |
551 | coroutine.resume(coroutine.create(function() | |
552 | local shok = Instance.new("Part") | |
553 | shok.Name = "wring2" | |
554 | shok.BrickColor = BrickColor.new("Institutional white") | |
555 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 12, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
556 | shok.Size = Vector3.new(1, 1, 1) | |
557 | shok.Anchored = true | |
558 | shok.Material = "Neon" | |
559 | shok.Transparency = 0.25 | |
560 | shok.CanCollide = false | |
561 | shok.Parent = model | |
562 | game.Debris:AddItem(shok, 12) | |
563 | local mesh = Instance.new("SpecialMesh") | |
564 | mesh.MeshType = "FileMesh" | |
565 | mesh.MeshId = "rbxassetid://3270017" | |
566 | mesh.Scale = Vector3.new(12, 12, 0.05) | |
567 | mesh.Parent = shok | |
568 | for e = 1, 30 do | |
569 | wait() | |
570 | mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 3) | |
571 | shok.Transparency = shok.Transparency + 0.002 | |
572 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
573 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
574 | end | |
575 | for e = 1, 38 do | |
576 | wait() | |
577 | mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 0.1) | |
578 | shok.Transparency = shok.Transparency + 0.002 | |
579 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
580 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
581 | end | |
582 | for e = 1, 24 do | |
583 | wait() | |
584 | mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 0.1) | |
585 | shok.Transparency = shok.Transparency + 0.03 | |
586 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
587 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
588 | end | |
589 | end)) | |
590 | coroutine.resume(coroutine.create(function() | |
591 | local shok = Instance.new("Part") | |
592 | shok.Name = "coil1" | |
593 | shok.BrickColor = BrickColor.new("Institutional white") | |
594 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 12, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
595 | shok.Size = Vector3.new(1, 1, 1) | |
596 | shok.Anchored = true | |
597 | shok.Material = "Neon" | |
598 | shok.Transparency = 0.25 | |
599 | shok.CanCollide = false | |
600 | shok.Parent = model | |
601 | game.Debris:AddItem(shok, 12) | |
602 | local mesh = Instance.new("SpecialMesh") | |
603 | mesh.MeshType = "FileMesh" | |
604 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
605 | mesh.Scale = Vector3.new(12, 12, 12) | |
606 | mesh.Parent = shok | |
607 | for e = 1, 15 do | |
608 | wait() | |
609 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
610 | shok.Transparency = shok.Transparency + 0.004 | |
611 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
612 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
613 | end | |
614 | for e = 1, 16 do | |
615 | wait() | |
616 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
617 | shok.Transparency = shok.Transparency + 0.004 | |
618 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
619 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
620 | end | |
621 | for e = 1, 12 do | |
622 | wait() | |
623 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
624 | shok.Transparency = shok.Transparency + 0.06 | |
625 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
626 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
627 | end | |
628 | end)) | |
629 | coroutine.resume(coroutine.create(function() | |
630 | local shok = Instance.new("Part") | |
631 | shok.Name = "coil2" | |
632 | shok.BrickColor = BrickColor.new("Institutional white") | |
633 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
634 | shok.Size = Vector3.new(1, 1, 1) | |
635 | shok.Anchored = true | |
636 | shok.Material = "Neon" | |
637 | shok.Transparency = 0.25 | |
638 | shok.CanCollide = false | |
639 | shok.Parent = model | |
640 | game.Debris:AddItem(shok, 12) | |
641 | local mesh = Instance.new("SpecialMesh") | |
642 | mesh.MeshType = "FileMesh" | |
643 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
644 | mesh.Scale = Vector3.new(6, 12, 6) | |
645 | mesh.Parent = shok | |
646 | for e = 1, 15 do | |
647 | wait() | |
648 | mesh.Scale = mesh.Scale + Vector3.new(1.1, 2.4, 1.1) | |
649 | shok.Transparency = shok.Transparency + 0.005 | |
650 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
651 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)) | |
652 | end | |
653 | for e = 1, 16 do | |
654 | wait() | |
655 | mesh.Scale = mesh.Scale + Vector3.new(1.1, 2.4, 1.1) | |
656 | shok.Transparency = shok.Transparency + 0.005 | |
657 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
658 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)) | |
659 | end | |
660 | for e = 1, 12 do | |
661 | wait() | |
662 | mesh.Scale = mesh.Scale + Vector3.new(1.1, 2.4, 1.1) | |
663 | shok.Transparency = shok.Transparency + 0.09 | |
664 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
665 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)) | |
666 | end | |
667 | end)) | |
668 | coroutine.resume(coroutine.create(function() | |
669 | local shok = Instance.new("Part") | |
670 | shok.Name = "shokwve" | |
671 | shok.BrickColor = BrickColor.new("Institutional white") | |
672 | shok.Position = effspwn.Position - Vector3.new(0, 0.8, 0) | |
673 | shok.Size = Vector3.new(1, 1, 1) | |
674 | shok.Anchored = true | |
675 | shok.Material = "Neon" | |
676 | shok.Transparency = 0.6 | |
677 | shok.CanCollide = false | |
678 | shok.Parent = model | |
679 | game.Debris:AddItem(shok, 12) | |
680 | local mesh = Instance.new("SpecialMesh") | |
681 | mesh.MeshType = "FileMesh" | |
682 | mesh.MeshId = "rbxassetid://489415447" | |
683 | mesh.Scale = Vector3.new(1, 1, 1) | |
684 | mesh.Parent = shok | |
685 | for e = 1, 12 do | |
686 | wait() | |
687 | mesh.Scale = mesh.Scale + Vector3.new(2, 2, 2) | |
688 | shok.Transparency = shok.Transparency + 0.002 | |
689 | end | |
690 | for e = 1, 32 do | |
691 | wait() | |
692 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 0.5, 0.5) | |
693 | shok.Transparency = shok.Transparency + 0.002 | |
694 | end | |
695 | for e = 1, 24 do | |
696 | wait() | |
697 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 0.5, 0.5) | |
698 | shok.Transparency = shok.Transparency + 0.03 | |
699 | end | |
700 | end)) | |
701 | coroutine.resume(coroutine.create(function() | |
702 | local shok = Instance.new("Part") | |
703 | shok.Name = "shock2" | |
704 | shok.BrickColor = BrickColor.new("Institutional white") | |
705 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) | |
706 | shok.Size = Vector3.new(1, 1, 1) | |
707 | shok.Anchored = true | |
708 | shok.Material = "Neon" | |
709 | shok.Transparency = 0.35 | |
710 | shok.CanCollide = false | |
711 | shok.Parent = model | |
712 | game.Debris:AddItem(shok, 12) | |
713 | local mesh = Instance.new("SpecialMesh") | |
714 | mesh.MeshType = "FileMesh" | |
715 | mesh.MeshId = "rbxassetid://489415447" | |
716 | mesh.Scale = Vector3.new(12, 12, 12) | |
717 | mesh.Parent = shok | |
718 | for e = 1, 15 do | |
719 | wait() | |
720 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
721 | shok.Transparency = shok.Transparency + 0.004 | |
722 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
723 | end | |
724 | for e = 1, 16 do | |
725 | wait() | |
726 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
727 | shok.Transparency = shok.Transparency + 0.004 | |
728 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
729 | end | |
730 | for e = 1, 12 do | |
731 | wait() | |
732 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
733 | shok.Transparency = shok.Transparency + 0.06 | |
734 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
735 | end | |
736 | end)) | |
737 | coroutine.resume(coroutine.create(function() | |
738 | local shok = Instance.new("Part") | |
739 | shok.Name = "shock3" | |
740 | shok.BrickColor = BrickColor.new("Institutional white") | |
741 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) | |
742 | shok.Size = Vector3.new(1, 1, 1) | |
743 | shok.Anchored = true | |
744 | shok.Material = "Neon" | |
745 | shok.Transparency = 0.35 | |
746 | shok.CanCollide = false | |
747 | shok.Parent = model | |
748 | game.Debris:AddItem(shok, 12) | |
749 | local mesh = Instance.new("SpecialMesh") | |
750 | mesh.MeshType = "FileMesh" | |
751 | mesh.MeshId = "rbxassetid://489415447" | |
752 | mesh.Scale = Vector3.new(12, 12, 12) | |
753 | mesh.Parent = shok | |
754 | for e = 1, 15 do | |
755 | wait() | |
756 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5) | |
757 | shok.Transparency = shok.Transparency + 0.004 | |
758 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
759 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
760 | end | |
761 | for e = 1, 16 do | |
762 | wait() | |
763 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5) | |
764 | shok.Transparency = shok.Transparency + 0.004 | |
765 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
766 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
767 | end | |
768 | for e = 1, 12 do | |
769 | wait() | |
770 | mesh.Scale = mesh.Scale + Vector3.new(0.5, -1, 0.5) | |
771 | shok.Transparency = shok.Transparency + 0.06 | |
772 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
773 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
774 | end | |
775 | end)) | |
776 | end | |
777 | function KABOOMZ2() | |
778 | local effspwn = Instance.new("Part") | |
779 | coroutine.resume(coroutine.create(function() | |
780 | local sound1 = Instance.new("Sound") | |
781 | sound1.SoundId = "rbxassetid://138137702" | |
782 | sound1.MaxDistance = 300 | |
783 | sound1.EmitterSize = 20 | |
784 | sound1.Volume = 2.5 | |
785 | sound1.Pitch = 0.65 | |
786 | sound1.Parent = effspwn | |
787 | local sound2 = Instance.new("Sound") | |
788 | sound2.SoundId = "rbxassetid://157878578" | |
789 | sound2.MaxDistance = 300 | |
790 | sound2.EmitterSize = 20 | |
791 | sound2.Volume = 1 | |
792 | sound2.Pitch = 0.7 | |
793 | sound2.Parent = effspwn | |
794 | local sound3 = Instance.new("Sound") | |
795 | sound3.SoundId = "rbxassetid://138250406" | |
796 | sound2.MaxDistance = 400 | |
797 | sound2.EmitterSize = 30 | |
798 | sound2.Volume = 0.5 | |
799 | sound2.Pitch = 0.5 | |
800 | sound2.Parent = effspwn | |
801 | sound2:Play() | |
802 | wait() | |
803 | sound1:Play() | |
804 | sound3:Play() | |
805 | end)) | |
806 | local model = Instance.new("Model") | |
807 | game.Debris:AddItem(model, 20) | |
808 | model.Name = "smasheffects" | |
809 | model.Parent = workspace | |
810 | effspwn.Name = "spwnr" | |
811 | effspwn.Size = Vector3.new(1, 1, 1) | |
812 | effspwn.Anchored = true | |
813 | effspwn.CanCollide = false | |
814 | effspwn.Transparency = 1 | |
815 | effspwn.CFrame = hrp.CFrame * CFrame.Angles(math.rad(180), 0, 0) | |
816 | effspwn.Parent = model | |
817 | coroutine.resume(coroutine.create(function() | |
818 | local shok = Instance.new("Part") | |
819 | shok.Name = "whoosh" | |
820 | shok.BrickColor = BrickColor.new("Institutional white") | |
821 | shok.CFrame = effspwn.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
822 | shok.Size = Vector3.new(1, 1, 1) | |
823 | shok.Anchored = true | |
824 | shok.Material = "Neon" | |
825 | shok.Transparency = 0.1 | |
826 | shok.CanCollide = false | |
827 | shok.Parent = model | |
828 | game.Debris:AddItem(shok, 12) | |
829 | local mesh = Instance.new("SpecialMesh") | |
830 | mesh.MeshType = "FileMesh" | |
831 | mesh.MeshId = "rbxassetid://437347603" | |
832 | mesh.Scale = Vector3.new(0.8, 0.8, 0.3) | |
833 | mesh.Parent = shok | |
834 | for e = 1, 8 do | |
835 | wait() | |
836 | mesh.Scale = mesh.Scale + Vector3.new(0.24, 0.24, 0.22) | |
837 | shok.Transparency = shok.Transparency + 0.035 | |
838 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -22), 0.4) | |
839 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29)) | |
840 | end | |
841 | for e = 1, 16 do | |
842 | wait() | |
843 | mesh.Scale = mesh.Scale + Vector3.new(0.13, 0.13, 0.12) | |
844 | shok.Transparency = shok.Transparency + 0.11 | |
845 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -10), 0.4) | |
846 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(15)) | |
847 | end | |
848 | end)) | |
849 | coroutine.resume(coroutine.create(function() | |
850 | local shok = Instance.new("Part") | |
851 | shok.Name = "wring1" | |
852 | shok.BrickColor = BrickColor.new("Institutional white") | |
853 | shok.CFrame = effspwn.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
854 | shok.Size = Vector3.new(1, 1, 1) | |
855 | shok.Anchored = true | |
856 | shok.Material = "Neon" | |
857 | shok.Transparency = 0.25 | |
858 | shok.CanCollide = false | |
859 | shok.Parent = model | |
860 | game.Debris:AddItem(shok, 12) | |
861 | local mesh = Instance.new("SpecialMesh") | |
862 | mesh.MeshType = "FileMesh" | |
863 | mesh.MeshId = "rbxassetid://3270017" | |
864 | mesh.Scale = Vector3.new(0.1, 0.1, 0.05) | |
865 | mesh.Parent = shok | |
866 | for e = 1, 30 do | |
867 | wait() | |
868 | mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 3) | |
869 | shok.Transparency = shok.Transparency + 0.002 | |
870 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
871 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)) | |
872 | end | |
873 | for e = 1, 38 do | |
874 | wait() | |
875 | mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 0.1) | |
876 | shok.Transparency = shok.Transparency + 0.002 | |
877 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
878 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)) | |
879 | end | |
880 | for e = 1, 24 do | |
881 | wait() | |
882 | mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 0.1) | |
883 | shok.Transparency = shok.Transparency + 0.03 | |
884 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
885 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)) | |
886 | end | |
887 | end)) | |
888 | coroutine.resume(coroutine.create(function() | |
889 | local shok = Instance.new("Part") | |
890 | shok.Name = "wring2" | |
891 | shok.BrickColor = BrickColor.new("Institutional white") | |
892 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 12, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
893 | shok.Size = Vector3.new(1, 1, 1) | |
894 | shok.Anchored = true | |
895 | shok.Material = "Neon" | |
896 | shok.Transparency = 0.25 | |
897 | shok.CanCollide = false | |
898 | shok.Parent = model | |
899 | game.Debris:AddItem(shok, 12) | |
900 | local mesh = Instance.new("SpecialMesh") | |
901 | mesh.MeshType = "FileMesh" | |
902 | mesh.MeshId = "rbxassetid://3270017" | |
903 | mesh.Scale = Vector3.new(12, 12, 0.05) | |
904 | mesh.Parent = shok | |
905 | for e = 1, 30 do | |
906 | wait() | |
907 | mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 3) | |
908 | shok.Transparency = shok.Transparency + 0.002 | |
909 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
910 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
911 | end | |
912 | for e = 1, 38 do | |
913 | wait() | |
914 | mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 0.1) | |
915 | shok.Transparency = shok.Transparency + 0.002 | |
916 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
917 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
918 | end | |
919 | for e = 1, 24 do | |
920 | wait() | |
921 | mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 0.1) | |
922 | shok.Transparency = shok.Transparency + 0.03 | |
923 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
924 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
925 | end | |
926 | end)) | |
927 | coroutine.resume(coroutine.create(function() | |
928 | local shok = Instance.new("Part") | |
929 | shok.Name = "coil1" | |
930 | shok.BrickColor = BrickColor.new("Institutional white") | |
931 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 12, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
932 | shok.Size = Vector3.new(1, 1, 1) | |
933 | shok.Anchored = true | |
934 | shok.Material = "Neon" | |
935 | shok.Transparency = 0.25 | |
936 | shok.CanCollide = false | |
937 | shok.Parent = model | |
938 | game.Debris:AddItem(shok, 12) | |
939 | local mesh = Instance.new("SpecialMesh") | |
940 | mesh.MeshType = "FileMesh" | |
941 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
942 | mesh.Scale = Vector3.new(12, 12, 12) | |
943 | mesh.Parent = shok | |
944 | for e = 1, 15 do | |
945 | wait() | |
946 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
947 | shok.Transparency = shok.Transparency + 0.004 | |
948 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
949 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
950 | end | |
951 | for e = 1, 16 do | |
952 | wait() | |
953 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
954 | shok.Transparency = shok.Transparency + 0.004 | |
955 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
956 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
957 | end | |
958 | for e = 1, 12 do | |
959 | wait() | |
960 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
961 | shok.Transparency = shok.Transparency + 0.06 | |
962 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
963 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
964 | end | |
965 | end)) | |
966 | coroutine.resume(coroutine.create(function() | |
967 | local shok = Instance.new("Part") | |
968 | shok.Name = "coil2" | |
969 | shok.BrickColor = BrickColor.new("Institutional white") | |
970 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
971 | shok.Size = Vector3.new(1, 1, 1) | |
972 | shok.Anchored = true | |
973 | shok.Material = "Neon" | |
974 | shok.Transparency = 0.25 | |
975 | shok.CanCollide = false | |
976 | shok.Parent = model | |
977 | game.Debris:AddItem(shok, 12) | |
978 | local mesh = Instance.new("SpecialMesh") | |
979 | mesh.MeshType = "FileMesh" | |
980 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
981 | mesh.Scale = Vector3.new(6, 12, 6) | |
982 | mesh.Parent = shok | |
983 | for e = 1, 15 do | |
984 | wait() | |
985 | mesh.Scale = mesh.Scale + Vector3.new(1.1, 2.4, 1.1) | |
986 | shok.Transparency = shok.Transparency + 0.005 | |
987 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
988 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)) | |
989 | end | |
990 | for e = 1, 16 do | |
991 | wait() | |
992 | mesh.Scale = mesh.Scale + Vector3.new(1.1, 2.4, 1.1) | |
993 | shok.Transparency = shok.Transparency + 0.005 | |
994 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
995 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)) | |
996 | end | |
997 | for e = 1, 12 do | |
998 | wait() | |
999 | mesh.Scale = mesh.Scale + Vector3.new(1.1, 2.4, 1.1) | |
1000 | shok.Transparency = shok.Transparency + 0.09 | |
1001 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
1002 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)) | |
1003 | end | |
1004 | end)) | |
1005 | coroutine.resume(coroutine.create(function() | |
1006 | local shok = Instance.new("Part") | |
1007 | shok.Name = "shokwve" | |
1008 | shok.BrickColor = BrickColor.new("Institutional white") | |
1009 | shok.Position = effspwn.Position + Vector3.new(0, 5, 0) | |
1010 | shok.Size = Vector3.new(1, 1, 1) | |
1011 | shok.Anchored = true | |
1012 | shok.Material = "Neon" | |
1013 | shok.Transparency = 0.6 | |
1014 | shok.CanCollide = false | |
1015 | shok.Parent = model | |
1016 | game.Debris:AddItem(shok, 12) | |
1017 | local mesh = Instance.new("SpecialMesh") | |
1018 | mesh.MeshType = "FileMesh" | |
1019 | mesh.MeshId = "rbxassetid://489415447" | |
1020 | mesh.Scale = Vector3.new(1, 1, 1) | |
1021 | mesh.Parent = shok | |
1022 | for e = 1, 12 do | |
1023 | wait() | |
1024 | mesh.Scale = mesh.Scale + Vector3.new(2, 2, 2) | |
1025 | shok.Transparency = shok.Transparency + 0.002 | |
1026 | end | |
1027 | for e = 1, 32 do | |
1028 | wait() | |
1029 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 0.5, 0.5) | |
1030 | shok.Transparency = shok.Transparency + 0.002 | |
1031 | end | |
1032 | for e = 1, 24 do | |
1033 | wait() | |
1034 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 0.5, 0.5) | |
1035 | shok.Transparency = shok.Transparency + 0.03 | |
1036 | end | |
1037 | end)) | |
1038 | coroutine.resume(coroutine.create(function() | |
1039 | local shok = Instance.new("Part") | |
1040 | shok.Name = "shock2" | |
1041 | shok.BrickColor = BrickColor.new("Institutional white") | |
1042 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) | |
1043 | shok.Size = Vector3.new(1, 1, 1) | |
1044 | shok.Anchored = true | |
1045 | shok.Material = "Neon" | |
1046 | shok.Transparency = 0.35 | |
1047 | shok.CanCollide = false | |
1048 | shok.Parent = model | |
1049 | game.Debris:AddItem(shok, 12) | |
1050 | local mesh = Instance.new("SpecialMesh") | |
1051 | mesh.MeshType = "FileMesh" | |
1052 | mesh.MeshId = "rbxassetid://489415447" | |
1053 | mesh.Scale = Vector3.new(12, 12, 12) | |
1054 | mesh.Parent = shok | |
1055 | for e = 1, 15 do | |
1056 | wait() | |
1057 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
1058 | shok.Transparency = shok.Transparency + 0.004 | |
1059 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
1060 | end | |
1061 | for e = 1, 16 do | |
1062 | wait() | |
1063 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
1064 | shok.Transparency = shok.Transparency + 0.004 | |
1065 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
1066 | end | |
1067 | for e = 1, 12 do | |
1068 | wait() | |
1069 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
1070 | shok.Transparency = shok.Transparency + 0.06 | |
1071 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
1072 | end | |
1073 | end)) | |
1074 | coroutine.resume(coroutine.create(function() | |
1075 | local shok = Instance.new("Part") | |
1076 | shok.Name = "shock3" | |
1077 | shok.BrickColor = BrickColor.new("Institutional white") | |
1078 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) | |
1079 | shok.Size = Vector3.new(1, 1, 1) | |
1080 | shok.Anchored = true | |
1081 | shok.Material = "Neon" | |
1082 | shok.Transparency = 0.35 | |
1083 | shok.CanCollide = false | |
1084 | shok.Parent = model | |
1085 | game.Debris:AddItem(shok, 12) | |
1086 | local mesh = Instance.new("SpecialMesh") | |
1087 | mesh.MeshType = "FileMesh" | |
1088 | mesh.MeshId = "rbxassetid://489415447" | |
1089 | mesh.Scale = Vector3.new(12, 12, 12) | |
1090 | mesh.Parent = shok | |
1091 | for e = 1, 15 do | |
1092 | wait() | |
1093 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5) | |
1094 | shok.Transparency = shok.Transparency + 0.004 | |
1095 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
1096 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
1097 | end | |
1098 | for e = 1, 16 do | |
1099 | wait() | |
1100 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5) | |
1101 | shok.Transparency = shok.Transparency + 0.004 | |
1102 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
1103 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
1104 | end | |
1105 | for e = 1, 12 do | |
1106 | wait() | |
1107 | mesh.Scale = mesh.Scale + Vector3.new(0.5, -1, 0.5) | |
1108 | shok.Transparency = shok.Transparency + 0.06 | |
1109 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
1110 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
1111 | end | |
1112 | end)) | |
1113 | end | |
1114 | function hito(partoz, magn, dmg, debtim) | |
1115 | for _, guy in pairs(workspace:GetChildren()) do | |
1116 | if guy:FindFirstChild("Humanoid") and guy:FindFirstChild("Head") and guy ~= chr and magn > (guy:FindFirstChild("Head").Position - partoz.Position).magnitude and guy:FindFirstChild("Head"):FindFirstChild("alabo") == nil then | |
1117 | do | |
1118 | local humz = guy:FindFirstChild("Humanoid") | |
1119 | local hed = guy:FindFirstChild("Head") | |
1120 | humz:TakeDamage(dmg) | |
1121 | local db = Instance.new("StringValue") | |
1122 | db.Name = "alabo" | |
1123 | db.Parent = hed | |
1124 | delay(debtim, function() | |
1125 | db:Destroy() | |
1126 | end) | |
1127 | end | |
1128 | end | |
1129 | end | |
1130 | end | |
1131 | function animo(yep) | |
1132 | if yep == true then | |
1133 | anim.Parent = human | |
1134 | chr.Animate.Disabled = false | |
1135 | elseif yep == false then | |
1136 | chr.Animate.Disabled = true | |
1137 | anim.Parent = nil | |
1138 | end | |
1139 | end | |
1140 | mouse.KeyDown:connect(function(key) | |
1141 | if key == "e" then | |
1142 | rsmash() | |
1143 | end | |
1144 | if key == "t" then | |
1145 | jum() | |
1146 | end | |
1147 | end) | |
1148 | tool.Equipped:connect(function() | |
1149 | selected = true | |
1150 | end) | |
1151 | tool.Unequipped:connect(function() | |
1152 | selected = false | |
1153 | end) |