SHOW:
|
|
- or go back to the newest paste.
1 | --Edited by SomenerdyOG | |
2 | ---NO TOOLS | |
3 | plr = game.Players.LocalPlayer | |
4 | repeat | |
5 | wait(0.4) | |
6 | until plr.Character | |
7 | chr = plr.Character | |
8 | human = chr:FindFirstChild("Humanoid") | |
9 | chr.Humanoid.MaxHealth = math.huge | |
10 | mouse = plr:GetMouse() | |
11 | equipd = false | |
12 | - | tors = chr.Torso |
12 | + | |
13 | - | rarm = chr["Right Arm"] |
13 | + | |
14 | - | larm = chr["Left Arm"] |
14 | + | |
15 | - | rleg = chr["Right Leg"] |
15 | + | |
16 | - | lleg = chr["Left Leg"] |
16 | + | |
17 | - | chr.Head.face.Texture = "rbxassetid://126198982" |
17 | + | |
18 | - | local txt = Instance.new("BillboardGui", chr) |
18 | + | |
19 | - | CV="Lime green" |
19 | + | |
20 | - | txt.Adornee = chr .Head |
20 | + | |
21 | - | txt.Name = "_status" |
21 | + | |
22 | - | txt.Size = UDim2.new(2, 0, 1.2, 0) |
22 | + | |
23 | - | txt.StudsOffset = Vector3.new(-9, 8, 0) |
23 | + | |
24 | - | local text = Instance.new("TextLabel", txt) |
24 | + | |
25 | - | text.Size = UDim2.new(10, 0, 7, 0) |
25 | + | |
26 | - | text.FontSize = "Size24" |
26 | + | |
27 | - | text.TextScaled = true |
27 | + | |
28 | - | text.TextTransparency = 0 |
28 | + | |
29 | - | text.BackgroundTransparency = 1 |
29 | + | |
30 | - | text.TextTransparency = 0 |
30 | + | |
31 | - | text.TextStrokeTransparency = 0 |
31 | + | |
32 | - | text.Font = "Bodoni" |
32 | + | |
33 | - | text.TextStrokeColor3 = Color3.new(0,0,0) |
33 | + | |
34 | - | text.TextColor3 = Color3.new(0,1,0) |
34 | + | |
35 | - | text.Text = "Izuku Midoriya" |
35 | + | |
36 | - | v=Instance.new("Part") |
36 | + | |
37 | - | v.Name = "ColorBrick" |
37 | + | |
38 | - | v.Parent= plr.Character |
38 | + | |
39 | - | v.FormFactor="Symmetric" |
39 | + | |
40 | - | v.Anchored=true |
40 | + | |
41 | - | v.CanCollide=false |
41 | + | |
42 | - | v.BottomSurface="Smooth" |
42 | + | |
43 | - | v.TopSurface="Smooth" |
43 | + | |
44 | - | v.Size=Vector3.new(10,5,3) |
44 | + | |
45 | - | v.Transparency=1 |
45 | + | |
46 | - | v.CFrame=chr.Torso.CFrame |
46 | + | |
47 | - | v.BrickColor=BrickColor.new("Lime green") |
47 | + | |
48 | - | v.Transparency=1 |
48 | + | |
49 | - | v.Shape="Block" |
49 | + | |
50 | - | chr.Shirt.ShirtTemplate = "rbxassetid://846519063" |
50 | + | |
51 | - | chr.Pants.PantsTemplate = "rbxassetid://848613245" |
51 | + | |
52 | - | z = Instance.new("Sound", tors) |
52 | + | |
53 | - | z.SoundId = "rbxassetid://513429715" |
53 | + | |
54 | - | z.Looped = true |
54 | + | |
55 | - | z.Volume = 3 |
55 | + | |
56 | port.Material = mater | |
57 | port.Anchored = false | |
58 | - | for i,v in pairs(chr:children()) do |
58 | + | |
59 | - | if v:IsA("Hat") then |
59 | + | |
60 | - | v:Destroy() |
60 | + | |
61 | port.Parent = parnt | |
62 | return port | |
63 | - | for i,v in pairs(chr:children()) do |
63 | + | |
64 | - | if v:IsA("Accessory") then |
64 | + | |
65 | - | v:Destroy() |
65 | + | |
66 | mes.MeshType = meshtype | |
67 | mes.Scale = scale | |
68 | - | for i,v in pairs(chr:children()) do |
68 | + | |
69 | - | if v:IsA("Hair") then |
69 | + | |
70 | - | v:Destroy() |
70 | + | |
71 | mes.Parent = parent | |
72 | return mes | |
73 | - | local Part = Instance.new("Part",chr) |
73 | + | |
74 | - | Part.BrickColor = BrickColor.new("Royal blue") |
74 | + | |
75 | - | Part.Size = Vector3.new(1,1,1) |
75 | + | |
76 | - | Part.CanCollide = false |
76 | + | |
77 | - | Part.Material = "Neon" |
77 | + | |
78 | - | local M = Instance.new("SpecialMesh",Part) |
78 | + | |
79 | - | M.MeshId = "rbxassetid://212966179" |
79 | + | |
80 | - | M.Scale = Vector3.new(1.2,1.2,1.2) |
80 | + | |
81 | - | M.TextureId = "rbxassetid://431984628" |
81 | + | |
82 | - | local Part2 = Instance.new("Weld",Part) |
82 | + | |
83 | - | Part2.Part0 = chr.Head |
83 | + | |
84 | - | Part2.Part1 = Part |
84 | + | |
85 | - | Part2.C0 = CFrame.new(0,0.2,0)*CFrame.Angles(0,0,0) |
85 | + | |
86 | - | local Part1 = Instance.new("Part",chr) |
86 | + | |
87 | - | Part1.BrickColor = BrickColor.new("Really black") |
87 | + | |
88 | - | Part1.Size = Vector3.new(1,1,1) |
88 | + | |
89 | - | Part1.CanCollide = false |
89 | + | |
90 | - | Part1.Material = "Neon" |
90 | + | |
91 | - | local M1 = Instance.new("SpecialMesh",Part1) |
91 | + | |
92 | - | M1.MeshId = "rbxassetid://212966179" |
92 | + | |
93 | - | M1.Scale = Vector3.new(1.1,1.1,1.1) |
93 | + | |
94 | - | local Part21 = Instance.new("Weld",Part1) |
94 | + | |
95 | - | Part21.Part0 = chr.Head |
95 | + | |
96 | - | Part21.Part1 = Part1 |
96 | + | |
97 | - | Part21.C0 = CFrame.new(0,0.1,0)*CFrame.Angles(0,0,0) |
97 | + | |
98 | - | hrp = chr.HumanoidRootPart |
98 | + | |
99 | - | head = chr.Head |
99 | + | |
100 | - | anim = human.Animator |
100 | + | |
101 | - | activu = false |
101 | + | |
102 | - | Heartbeat = Instance.new("BindableEvent") |
102 | + | |
103 | - | Heartbeat.Name = "Heartbeat" |
103 | + | |
104 | - | Heartbeat.Parent = script |
104 | + | |
105 | - | frame = 0.03333333333333333 |
105 | + | |
106 | - | tf = 0 |
106 | + | |
107 | - | game:GetService("RunService").Heartbeat:connect(function(s, p) |
107 | + | |
108 | - | tf = tf + s |
108 | + | |
109 | - | if tf >= frame then |
109 | + | |
110 | - | for i = 1, math.floor(tf / frame) do |
110 | + | |
111 | - | Heartbeat:Fire() |
111 | + | |
112 | ||
113 | ||
114 | ||
115 | ||
116 | ||
117 | ||
118 | ||
119 | ||
120 | ||
121 | ||
122 | function RFistDamage() | |
123 | ||
124 | end | |
125 | function rsmash() | |
126 | if activu == true then | |
127 | return | |
128 | end | |
129 | activu = true | |
130 | ||
131 | human.WalkSpeed = human.WalkSpeed - 13 | |
132 | animo(false) | |
133 | for _ = 1, 45 do | |
134 | swait() | |
135 | lerpz(RJ, "C0", RJC0 * cf(0, 0.8, -0.2) * ang(rd(10), rd(0), rd(-70)), 0.2) | |
136 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(6), rd(2), rd(68)), 0.2) | |
137 | 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) | |
138 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
139 | lerpz(LS, "C0", LSC0 * cf(-0.15, -0.4, 0.5) * ang(rd(-10), rd(60), rd(-86)), 0.2) | |
140 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(80), rd(0)), 0.2) | |
141 | lerpz(RH, "C0", RHC0 * cf(0, 0.1, 0) * ang(rd(-6), rd(-29), rd(-2)), 0.2) | |
142 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
143 | lerpz(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-10)), 0.2) | |
144 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
145 | end | |
146 | for _ = 1, 30 do | |
147 | swait() | |
148 | lerpz(RJ, "C0", RJC0 * cf(0, 1.2, -0.2) * ang(rd(5), rd(6), rd(-109)), 0.2) | |
149 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-2), rd(-6), rd(96)), 0.2) | |
150 | 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) | |
151 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(60), rd(-46)), 0.2) | |
152 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(30), rd(0)), 0.2) | |
153 | lerpz(RH, "C0", RHC0 * cf(0, 0.1, 0) * ang(rd(-6), rd(-39), rd(-2)), 0.2) | |
154 | lerpz(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-10)), 0.2) | |
155 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(0)), 0.2) | |
156 | ||
157 | end | |
158 | for l = 1, 3 do | |
159 | swait() | |
160 | lerpz(RJ, "C0", RJC0 * cf(0.4, -1.6, -0.2) * ang(rd(5), rd(6), rd(60)), 0.3 + l / 4) | |
161 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(14), rd(-4), rd(-35)), 0.3 + l / 4) | |
162 | lerpz(RS, "C0", RSC0 * cf(0.3, -0.4, 0.55) * ang(rd(0), rd(-58), rd(95)), 0.3 + l / 4) | |
163 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(-80), rd(0)), 0.3 + l / 4) | |
164 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(60), rd(-66)), 0.3 + l / 4) | |
165 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(30), rd(0)), 0.3 + l / 4) | |
166 | lerpz(RH, "C0", RHC0 * cf(0, 0.1, 0) * ang(rd(-6), rd(-39), rd(-2)), 0.3 + l / 4) | |
167 | lerpz(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-10)), 0.3 + l / 4) | |
168 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(0)), 0.3 + l / 4) | |
169 | end | |
170 | KABOOMZ() | |
171 | rarm.BrickColor = BrickColor.new("Cocoa") | |
172 | for _ = 1, 8 do | |
173 | swait() | |
174 | lerpz(RJ, "C0", RJC0 * cf(1.5, -1.6, -0.7) * ang(rd(5), rd(18), rd(95)), 0.8) | |
175 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(14), rd(-10), rd(-15)), 0.8) | |
176 | lerpz(RS, "C0", RSC0 * cf(0.3, -0.4, 0.55) * ang(rd(0), rd(40), rd(65)), 0.8) | |
177 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(-80), rd(0)), 0.8) | |
178 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(60), rd(-86)), 0.8) | |
179 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(30), rd(0)), 0.8) | |
180 | lerpz(RH, "C0", RHC0 * cf(0, 0.7, 0) * ang(rd(-6), rd(-39), rd(24)), 0.8) | |
181 | lerpz(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-20)), 0.8) | |
182 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(0)), 0.8) | |
183 | end | |
184 | wait(1.5) | |
185 | animo(true) | |
186 | human.WalkSpeed = human.WalkSpeed + 13 | |
187 | for _ = 1, 24 do | |
188 | swait() | |
189 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
190 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
191 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
192 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
193 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
194 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
195 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
196 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
197 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
198 | end | |
199 | resetlerp() | |
200 | activu = false | |
201 | wait(5) | |
202 | rarm.BrickColor = BrickColor.new("Institutional white") | |
203 | end | |
204 | ||
205 | ||
206 | ||
207 | ||
208 | local debris=game:service"Debris" | |
209 | vt = Vector3.new | |
210 | bc = BrickColor.new | |
211 | ||
212 | ||
213 | ||
214 | ||
215 | ||
216 | ||
217 | ||
218 | ||
219 | ||
220 | ||
221 | ||
222 | ||
223 | function Ring() | |
224 | ||
225 | ||
226 | local effspwn = Instance.new("Part") | |
227 | local model = Instance.new("Model") | |
228 | game.Debris:AddItem(model, 20) | |
229 | model.Name = "smasheffects" | |
230 | model.Parent = workspace | |
231 | effspwn.Name = "spwnr" | |
232 | effspwn.Size = Vector3.new(1, 1, 1) | |
233 | effspwn.Anchored = true | |
234 | effspwn.CanCollide = false | |
235 | effspwn.Transparency = 1 | |
236 | effspwn.CFrame = hrp.CFrame * CFrame.Angles(math.rad(180), 0, 0) | |
237 | effspwn.Parent = model | |
238 | ||
239 | for i,v in pairs(FindNearestTorso(tors.CFrame.p,50))do | |
240 | if v:FindFirstChild('Humanoid') then | |
241 | v.Humanoid:TakeDamage(math.random(10000020,10000030)) | |
242 | v.Humanoid.PlatformStand = true | |
243 | v:FindFirstChild("Torso").Velocity = head.CFrame.lookVector * 200 | |
244 | end | |
245 | end | |
246 | coroutine.resume(coroutine.create(function() | |
247 | local shok = Instance.new("Part") | |
248 | shok.Name = "wring1" | |
249 | shok.BrickColor = BrickColor.new("Institutional white") | |
250 | shok.CFrame = effspwn.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
251 | shok.Size = Vector3.new(1, 1, 1) | |
252 | shok.Anchored = true | |
253 | shok.Material = "Neon" | |
254 | shok.Transparency = 0.25 | |
255 | shok.CanCollide = false | |
256 | shok.Parent = model | |
257 | game.Debris:AddItem(shok, 12) | |
258 | local mesh = Instance.new("SpecialMesh") | |
259 | mesh.MeshType = "FileMesh" | |
260 | mesh.MeshId = "rbxassetid://3270017" | |
261 | mesh.Scale = Vector3.new(0.1, 0.1, 0.05) | |
262 | mesh.Parent = shok | |
263 | for e = 1, 30 do | |
264 | wait() | |
265 | mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 3) | |
266 | shok.Transparency = shok.Transparency + 0.002 | |
267 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
268 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)) | |
269 | end | |
270 | for e = 1, 38 do | |
271 | wait() | |
272 | mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 0.1) | |
273 | shok.Transparency = shok.Transparency + 0.002 | |
274 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
275 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)) | |
276 | end | |
277 | for e = 1, 24 do | |
278 | wait() | |
279 | mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 0.1) | |
280 | shok.Transparency = shok.Transparency + 0.03 | |
281 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
282 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)) | |
283 | end | |
284 | end)) | |
285 | coroutine.resume(coroutine.create(function() | |
286 | local shok = Instance.new("Part") | |
287 | shok.Name = "wring2" | |
288 | shok.BrickColor = BrickColor.new("Institutional white") | |
289 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 12, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
290 | shok.Size = Vector3.new(1, 1, 1) | |
291 | shok.Anchored = true | |
292 | shok.Material = "Neon" | |
293 | shok.Transparency = 0.25 | |
294 | shok.CanCollide = false | |
295 | shok.Parent = model | |
296 | game.Debris:AddItem(shok, 12) | |
297 | local mesh = Instance.new("SpecialMesh") | |
298 | mesh.MeshType = "FileMesh" | |
299 | mesh.MeshId = "rbxassetid://3270017" | |
300 | mesh.Scale = Vector3.new(12, 12, 0.05) | |
301 | mesh.Parent = shok | |
302 | for e = 1, 30 do | |
303 | wait() | |
304 | mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 3) | |
305 | shok.Transparency = shok.Transparency + 0.002 | |
306 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
307 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
308 | end | |
309 | for e = 1, 38 do | |
310 | wait() | |
311 | mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 0.1) | |
312 | shok.Transparency = shok.Transparency + 0.002 | |
313 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
314 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
315 | end | |
316 | for e = 1, 24 do | |
317 | wait() | |
318 | mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 0.1) | |
319 | shok.Transparency = shok.Transparency + 0.03 | |
320 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
321 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
322 | end | |
323 | end)) | |
324 | ||
325 | coroutine.resume(coroutine.create(function() | |
326 | local shok = Instance.new("Part") | |
327 | shok.Name = "shokwve" | |
328 | shok.BrickColor = BrickColor.new("Institutional white") | |
329 | shok.Position = effspwn.Position + Vector3.new(0, 5, 0) | |
330 | shok.Size = Vector3.new(1, 1, 1) | |
331 | shok.Anchored = true | |
332 | shok.Material = "Neon" | |
333 | shok.Transparency = 0.6 | |
334 | shok.CanCollide = false | |
335 | shok.Parent = model | |
336 | game.Debris:AddItem(shok, 12) | |
337 | local mesh = Instance.new("SpecialMesh") | |
338 | mesh.MeshType = "FileMesh" | |
339 | mesh.MeshId = "rbxassetid://489415447" | |
340 | mesh.Scale = Vector3.new(1, 1, 1) | |
341 | mesh.Parent = shok | |
342 | for e = 1, 12 do | |
343 | wait() | |
344 | mesh.Scale = mesh.Scale + Vector3.new(2, 2, 2) | |
345 | shok.Transparency = shok.Transparency + 0.002 | |
346 | end | |
347 | for e = 1, 32 do | |
348 | wait() | |
349 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 0.5, 0.5) | |
350 | shok.Transparency = shok.Transparency + 0.002 | |
351 | end | |
352 | for e = 1, 24 do | |
353 | wait() | |
354 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 0.5, 0.5) | |
355 | shok.Transparency = shok.Transparency + 0.03 | |
356 | end | |
357 | end)) | |
358 | coroutine.resume(coroutine.create(function() | |
359 | local shok = Instance.new("Part") | |
360 | shok.Name = "shock2" | |
361 | shok.BrickColor = BrickColor.new("Institutional white") | |
362 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) | |
363 | shok.Size = Vector3.new(1, 1, 1) | |
364 | shok.Anchored = true | |
365 | shok.Material = "Neon" | |
366 | shok.Transparency = 0.35 | |
367 | shok.CanCollide = false | |
368 | shok.Parent = model | |
369 | game.Debris:AddItem(shok, 12) | |
370 | local mesh = Instance.new("SpecialMesh") | |
371 | mesh.MeshType = "FileMesh" | |
372 | mesh.MeshId = "rbxassetid://489415447" | |
373 | mesh.Scale = Vector3.new(12, 12, 12) | |
374 | mesh.Parent = shok | |
375 | for e = 1, 15 do | |
376 | wait() | |
377 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
378 | shok.Transparency = shok.Transparency + 0.004 | |
379 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
380 | end | |
381 | for e = 1, 16 do | |
382 | wait() | |
383 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
384 | shok.Transparency = shok.Transparency + 0.004 | |
385 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
386 | end | |
387 | for e = 1, 12 do | |
388 | wait() | |
389 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
390 | shok.Transparency = shok.Transparency + 0.06 | |
391 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
392 | end | |
393 | end)) | |
394 | coroutine.resume(coroutine.create(function() | |
395 | local shok = Instance.new("Part") | |
396 | shok.Name = "shock3" | |
397 | shok.BrickColor = BrickColor.new("Institutional white") | |
398 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) | |
399 | shok.Size = Vector3.new(1, 1, 1) | |
400 | shok.Anchored = true | |
401 | shok.Material = "Neon" | |
402 | shok.Transparency = 0.35 | |
403 | shok.CanCollide = false | |
404 | shok.Parent = model | |
405 | game.Debris:AddItem(shok, 12) | |
406 | local mesh = Instance.new("SpecialMesh") | |
407 | mesh.MeshType = "FileMesh" | |
408 | mesh.MeshId = "rbxassetid://489415447" | |
409 | mesh.Scale = Vector3.new(12, 12, 12) | |
410 | mesh.Parent = shok | |
411 | for e = 1, 15 do | |
412 | wait() | |
413 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5) | |
414 | shok.Transparency = shok.Transparency + 0.004 | |
415 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
416 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
417 | end | |
418 | for e = 1, 16 do | |
419 | wait() | |
420 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5) | |
421 | shok.Transparency = shok.Transparency + 0.004 | |
422 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
423 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
424 | end | |
425 | for e = 1, 12 do | |
426 | wait() | |
427 | mesh.Scale = mesh.Scale + Vector3.new(0.5, -1, 0.5) | |
428 | shok.Transparency = shok.Transparency + 0.06 | |
429 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
430 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
431 | end | |
432 | end)) | |
433 | ||
434 | end | |
435 | function Landing() | |
436 | ||
437 | ||
438 | ||
439 | ||
440 | ||
441 | ||
442 | ROW = function(out, trans, s, wt, t, ang, plus) | |
443 | for i = 1, 360, 360/t do | |
444 | local c = Instance.new("Part", game.Workspace) | |
445 | c.FormFactor = 3 | |
446 | c.TopSurface = 0 | |
447 | c.BottomSurface = 0 | |
448 | c.Size = s | |
449 | c.Anchored = true | |
450 | c.CanCollide = wt | |
451 | c.Material=workspace.Base.Material | |
452 | c.Transparency = trans | |
453 | c.BrickColor = workspace.Base.BrickColor | |
454 | c.CFrame = CFrame.new(tors.CFrame.x,0,tors.CFrame.z) * CFrame.Angles(0, math.rad(i + plus), 0) * CFrame.new(0, 0, out) * ang | |
455 | c.Locked=true | |
456 | game.Debris:AddItem(c,15) | |
457 | end | |
458 | end | |
459 | ||
460 | ||
461 | ||
462 | ||
463 | ||
464 | 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) | |
465 | Ring() | |
466 | ||
467 | ||
468 | ||
469 | ||
470 | ||
471 | end | |
472 | ||
473 | ||
474 | ||
475 | ||
476 | ||
477 | ||
478 | ||
479 | function newRay(start,face,range,wat) | |
480 | local rey=Ray.new(start.p,(face.p-start.p).Unit*range) | |
481 | hit,pos=game.Workspace:FindPartOnRayWithIgnoreList(rey,wat) | |
482 | return rey,hit,pos | |
483 | end | |
484 | ||
485 | ||
486 | ||
487 | ||
488 | function jum() | |
489 | if activu == true then | |
490 | return | |
491 | end | |
492 | activu = true | |
493 | human.WalkSpeed = human.WalkSpeed - 13 | |
494 | for l = 1, 30 do | |
495 | swait() | |
496 | lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.5) * ang(rd(6), rd(0), rd(0)), 0.02 + l / 40) | |
497 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(12), rd(0), rd(0)), 0.02 + l / 40) | |
498 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-8), rd(-7), rd(-10)), 0.02 + l / 40) | |
499 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
500 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-8), rd(7), rd(10)), 0.02 + l / 40) | |
501 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
502 | lerpz(RH, "C0", RHC0 * cf(0.4, 0.5, 0) * ang(rd(0), rd(-6), rd(8)), 0.02 + l / 40) | |
503 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
504 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(3), rd(0), rd(42)), 0.02 + l / 40) | |
505 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
506 | end | |
507 | human.WalkSpeed = 50 | |
508 | BV = Instance.new("BodyVelocity", tors) | |
509 | BV.maxForce = Vector3.new(0,100000,0) | |
510 | BV.P = 100000 | |
511 | BV.velocity = Vector3.new(0,800,0) | |
512 | KABOOMZ2() | |
513 | coroutine.resume(coroutine.create(function() | |
514 | swait(3) | |
515 | BV:Destroy() | |
516 | end)) | |
517 | for _ = 1, 18 do | |
518 | swait() | |
519 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-3), rd(0), rd(0)), 0.6) | |
520 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-12), rd(0), rd(0)), 0.6) | |
521 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-9), rd(-9), rd(-15)), 0.6) | |
522 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.6) | |
523 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-9), rd(9), rd(15)), 0.6) | |
524 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.6) | |
525 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-6), rd(0), rd(-12)), 0.6) | |
526 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.6) | |
527 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-6), rd(0), rd(12)), 0.6) | |
528 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.6) | |
529 | end | |
530 | for _ = 1, 18 do | |
531 | swait() | |
532 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
533 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
534 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
535 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
536 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
537 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
538 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
539 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
540 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
541 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
542 | end | |
543 | resetlerp() | |
544 | local ry,ht,ps=nil,nil,nil | |
545 | while ht==nil do | |
546 | ry,ht,ps=newRay(hrp.CFrame*CFrame.new(0,-2,0),hrp.CFrame*CFrame.new(0,-3,0),4.1,{chr}) | |
547 | wait() | |
548 | end | |
549 | human.WalkSpeed = 0 | |
550 | Landing() | |
551 | z = Instance.new("Sound",tors) | |
552 | z.SoundId = "rbxassetid://142070127" | |
553 | z.Volume = 2 | |
554 | wait(.1) | |
555 | z:Play() | |
556 | ||
557 | for l = 1, 30 do | |
558 | swait() | |
559 | lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.5) * ang(rd(6), rd(0), rd(0)), 0.02 + l / 40) | |
560 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(12), rd(0), rd(0)), 0.02 + l / 40) | |
561 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-8), rd(-7), rd(-10)), 0.02 + l / 40) | |
562 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
563 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-8), rd(7), rd(10)), 0.02 + l / 40) | |
564 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
565 | lerpz(RH, "C0", RHC0 * cf(0.4, 0.5, 0) * ang(rd(0), rd(-6), rd(8)), 0.02 + l / 40) | |
566 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
567 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(3), rd(0), rd(42)), 0.02 + l / 40) | |
568 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
569 | end | |
570 | resetlerp() | |
571 | human.WalkSpeed = 16 | |
572 | ||
573 | activu = false | |
574 | end | |
575 | ||
576 | ||
577 | ||
578 | local acos = math.acos | |
579 | local sqrt = math.sqrt | |
580 | local Vec3 = Vector3.new | |
581 | local fromAxisAngle = CFrame.fromAxisAngle | |
582 | ||
583 | local function toAxisAngle(CFr) | |
584 | local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components() | |
585 | local Angle = math.acos((R00+R11+R22-1)/2) | |
586 | local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
587 | A = A == 0 and 0.00001 or A | |
588 | local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
589 | B = B == 0 and 0.00001 or B | |
590 | local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
591 | C = C == 0 and 0.00001 or C | |
592 | local x = (R21-R12)/sqrt(A) | |
593 | local y = (R02-R20)/sqrt(B) | |
594 | local z = (R10-R01)/sqrt(C) | |
595 | return Vec3(x,y,z),Angle | |
596 | end | |
597 | ||
598 | function ApplyTrig(Num,Func) | |
599 | local Min,Max = Func(0),Func(1) | |
600 | local i = Func(Num) | |
601 | return (i-Min)/(Max-Min) | |
602 | --[[if Func == "sin" then | |
603 | return (math.sin((1-Num)*math.pi)+1)/2 | |
604 | elseif Func == "cos" then | |
605 | return (math.cos((1-Num)*math.pi)+1)/2 | |
606 | end]] | |
607 | end | |
608 | ||
609 | function LerpCFrame(CFrame1,CFrame2,Num) | |
610 | local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2) | |
611 | return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num | |
612 | end | |
613 | ||
614 | function Crater(Torso,Radius) | |
615 | spawn(function() | |
616 | local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10) | |
617 | local Ignore = {} | |
618 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do | |
619 | if v.Character ~= nil then | |
620 | Ignore[#Ignore+1] = v.Character | |
621 | end | |
622 | end | |
623 | local Hit,Pos,SurfaceNorm = workspace:FindPartOnRayWithIgnoreList(Ray,Ignore) | |
624 | if Hit == nil then return end | |
625 | local Parts = {} | |
626 | for i = 1,360,10 do | |
627 | local P = Instance.new("Part",Torso.Parent) | |
628 | P.Anchored = true | |
629 | P.FormFactor = "Custom" | |
630 | P.BrickColor = Hit.BrickColor | |
631 | P.Material = Hit.Material | |
632 | P.TopSurface = "Smooth" | |
633 | P.BottomSurface = "Smooth" | |
634 | P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100) | |
635 | 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))) | |
636 | Parts[#Parts+1] = {P,P.CFrame,((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,1,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius)*CFrame.Angles(math.rad(math.random(-50,-20)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15))),P.Size} | |
637 | if math.random(0,5) == 0 then -- rubble | |
638 | local P = Instance.new("Part",Torso.Parent) | |
639 | P.Anchored = true | |
640 | P.FormFactor = "Custom" | |
641 | P.BrickColor = Hit.BrickColor | |
642 | P.Material = Hit.Material | |
643 | P.TopSurface = "Smooth" | |
644 | P.BottomSurface = "Smooth" | |
645 | P.Size = Vector3.new(2,2,2)*(math.random(80,100)/100) | |
646 | 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))) | |
647 | Parts[#Parts+1] = {P,P.CFrame,(CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius-8)*CFrame.Angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90))),P.Size} | |
648 | end | |
649 | end | |
650 | for i = 0,1,0.05 do | |
651 | for i2,v in pairs(Parts) do | |
652 | v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos)) | |
653 | end | |
654 | wait(0.02) | |
655 | end | |
656 | for i,v in pairs(Parts) do | |
657 | if v[1].Size.X > 2.1 then | |
658 | v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0) | |
659 | end | |
660 | v[1].Anchored = false | |
661 | end | |
662 | for i = 0,1,0.05 do | |
663 | for i2,v in pairs(Parts) do | |
664 | v[1].Transparency = i | |
665 | if i == 1 then | |
666 | v[1]:Destroy() | |
667 | elseif i >= 0.25 then | |
668 | v[1].CanCollide = false | |
669 | end | |
670 | end | |
671 | wait(0.02) | |
672 | end | |
673 | Parts = nil | |
674 | end) | |
675 | end | |
676 | ||
677 | ||
678 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
679 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
680 | local List = {} | |
681 | for i,v in pairs(workspace:GetChildren())do | |
682 | if v:IsA("Model")then | |
683 | if v:findFirstChild("Torso")then | |
684 | if v ~= chr then | |
685 | if(v.Torso.Position -Position).magnitude <= Distance then | |
686 | table.insert(List,v) | |
687 | end | |
688 | end | |
689 | end | |
690 | end | |
691 | end | |
692 | return List | |
693 | end | |
694 | ||
695 | function KABOOMZ() | |
696 | local effspwn = Instance.new("Part") | |
697 | coroutine.resume(coroutine.create(function() | |
698 | local sound1 = Instance.new("Sound") | |
699 | sound1.SoundId = "rbxassetid://138137702" | |
700 | sound1.MaxDistance = 300 | |
701 | sound1.EmitterSize = 20 | |
702 | sound1.Volume = 5 | |
703 | sound1.Pitch = 0.95 | |
704 | sound1.Parent = effspwn | |
705 | local sound2 = Instance.new("Sound") | |
706 | sound2.SoundId = "rbxassetid://157878578" | |
707 | sound2.MaxDistance = 300 | |
708 | sound2.EmitterSize = 20 | |
709 | sound2.Volume = 2 | |
710 | sound2.Pitch = 0.9 | |
711 | sound2.Parent = effspwn | |
712 | local sound3 = Instance.new("Sound") | |
713 | sound3.SoundId = "rbxassetid://138250406" | |
714 | sound2.MaxDistance = 400 | |
715 | sound2.EmitterSize = 30 | |
716 | sound2.Volume = 1.5 | |
717 | sound2.Pitch = 0.6 | |
718 | sound2.Parent = effspwn | |
719 | sound2:Play() | |
720 | wait() | |
721 | sound1:Play() | |
722 | sound3:Play() | |
723 | end)) | |
724 | local model = Instance.new("Model") | |
725 | game.Debris:AddItem(model, 20) | |
726 | model.Name = "smasheffects" | |
727 | model.Parent = workspace | |
728 | effspwn.Name = "spwnr" | |
729 | effspwn.Size = Vector3.new(1, 1, 1) | |
730 | effspwn.Anchored = true | |
731 | effspwn.CanCollide = false | |
732 | effspwn.Transparency = 1 | |
733 | effspwn.CFrame = rarm.CFrame * CFrame.new(0, -0.7, 0) | |
734 | effspwn.Parent = model | |
735 | ||
736 | Crater(head,60) | |
737 | ||
738 | for i,v in pairs(FindNearestTorso(tors.CFrame.p,50))do | |
739 | if v:FindFirstChild('Humanoid') then | |
740 | v.Humanoid:TakeDamage(math.random(10000020,10000030)) | |
741 | v.Humanoid.PlatformStand = true | |
742 | v:FindFirstChild("Torso").Velocity = head.CFrame.lookVector * 200 | |
743 | end | |
744 | end | |
745 | coroutine.resume(coroutine.create(function() | |
746 | local shok = Instance.new("Part") | |
747 | shok.Name = "whoosh" | |
748 | shok.BrickColor = BrickColor.new("Institutional white") | |
749 | shok.CFrame = effspwn.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
750 | shok.Size = Vector3.new(1, 1, 1) | |
751 | shok.Anchored = true | |
752 | shok.Material = "Neon" | |
753 | shok.Transparency = 0.1 | |
754 | shok.CanCollide = false | |
755 | shok.Parent = model | |
756 | game.Debris:AddItem(shok, 12) | |
757 | local mesh = Instance.new("SpecialMesh") | |
758 | mesh.MeshType = "FileMesh" | |
759 | mesh.MeshId = "rbxassetid://437347603" | |
760 | mesh.Scale = Vector3.new(0.8, 0.8, 0.3) | |
761 | mesh.Parent = shok | |
762 | for e = 1, 8 do | |
763 | wait() | |
764 | mesh.Scale = mesh.Scale + Vector3.new(0.24, 0.24, 0.22) | |
765 | shok.Transparency = shok.Transparency + 0.035 | |
766 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -14), 0.4) | |
767 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29)) | |
768 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
769 | end | |
770 | for e = 1, 16 do | |
771 | wait() | |
772 | mesh.Scale = mesh.Scale + Vector3.new(0.13, 0.13, 0.12) | |
773 | shok.Transparency = shok.Transparency + 0.11 | |
774 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -5), 0.4) | |
775 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(15)) | |
776 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
777 | end | |
778 | end)) | |
779 | coroutine.resume(coroutine.create(function() | |
780 | local shok = Instance.new("Part") | |
781 | shok.Name = "wring1" | |
782 | shok.BrickColor = BrickColor.new("Institutional white") | |
783 | shok.CFrame = effspwn.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
784 | shok.Size = Vector3.new(1, 1, 1) | |
785 | shok.Anchored = true | |
786 | shok.Material = "Neon" | |
787 | shok.Transparency = 0.25 | |
788 | shok.CanCollide = false | |
789 | shok.Parent = model | |
790 | game.Debris:AddItem(shok, 12) | |
791 | local mesh = Instance.new("SpecialMesh") | |
792 | mesh.MeshType = "FileMesh" | |
793 | mesh.MeshId = "rbxassetid://3270017" | |
794 | mesh.Scale = Vector3.new(0.1, 0.1, 0.05) | |
795 | mesh.Parent = shok | |
796 | for e = 1, 30 do | |
797 | wait() | |
798 | mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 3) | |
799 | shok.Transparency = shok.Transparency + 0.002 | |
800 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
801 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)) | |
802 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
803 | ||
804 | end | |
805 | for e = 1, 38 do | |
806 | wait() | |
807 | mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 0.1) | |
808 | shok.Transparency = shok.Transparency + 0.002 | |
809 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
810 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)) | |
811 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
812 | ||
813 | end | |
814 | for e = 1, 24 do | |
815 | wait() | |
816 | mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 0.1) | |
817 | shok.Transparency = shok.Transparency + 0.03 | |
818 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
819 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)) | |
820 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
821 | ||
822 | end | |
823 | end)) | |
824 | coroutine.resume(coroutine.create(function() | |
825 | local shok = Instance.new("Part") | |
826 | shok.Name = "wring2" | |
827 | shok.BrickColor = BrickColor.new("Institutional white") | |
828 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 12, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
829 | shok.Size = Vector3.new(1, 1, 1) | |
830 | shok.Anchored = true | |
831 | shok.Material = "Neon" | |
832 | shok.Transparency = 0.25 | |
833 | shok.CanCollide = false | |
834 | shok.Parent = model | |
835 | game.Debris:AddItem(shok, 12) | |
836 | local mesh = Instance.new("SpecialMesh") | |
837 | mesh.MeshType = "FileMesh" | |
838 | mesh.MeshId = "rbxassetid://3270017" | |
839 | mesh.Scale = Vector3.new(12, 12, 0.05) | |
840 | mesh.Parent = shok | |
841 | for e = 1, 30 do | |
842 | wait() | |
843 | mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 3) | |
844 | shok.Transparency = shok.Transparency + 0.002 | |
845 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
846 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
847 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
848 | ||
849 | end | |
850 | for e = 1, 38 do | |
851 | wait() | |
852 | mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 0.1) | |
853 | shok.Transparency = shok.Transparency + 0.002 | |
854 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
855 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
856 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
857 | ||
858 | end | |
859 | for e = 1, 24 do | |
860 | wait() | |
861 | mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 0.1) | |
862 | shok.Transparency = shok.Transparency + 0.03 | |
863 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
864 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
865 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
866 | ||
867 | end | |
868 | end)) | |
869 | coroutine.resume(coroutine.create(function() | |
870 | local shok = Instance.new("Part") | |
871 | shok.Name = "coil1" | |
872 | shok.BrickColor = BrickColor.new("Institutional white") | |
873 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 12, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
874 | shok.Size = Vector3.new(1, 1, 1) | |
875 | shok.Anchored = true | |
876 | shok.Material = "Neon" | |
877 | shok.Transparency = 0.25 | |
878 | shok.CanCollide = false | |
879 | shok.Parent = model | |
880 | game.Debris:AddItem(shok, 12) | |
881 | local mesh = Instance.new("SpecialMesh") | |
882 | mesh.MeshType = "FileMesh" | |
883 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
884 | mesh.Scale = Vector3.new(12, 12, 12) | |
885 | mesh.Parent = shok | |
886 | for e = 1, 15 do | |
887 | wait() | |
888 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
889 | shok.Transparency = shok.Transparency + 0.004 | |
890 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
891 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
892 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
893 | ||
894 | end | |
895 | for e = 1, 16 do | |
896 | wait() | |
897 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
898 | shok.Transparency = shok.Transparency + 0.004 | |
899 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
900 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
901 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
902 | ||
903 | end | |
904 | for e = 1, 12 do | |
905 | wait() | |
906 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
907 | shok.Transparency = shok.Transparency + 0.06 | |
908 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
909 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
910 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
911 | ||
912 | end | |
913 | end)) | |
914 | coroutine.resume(coroutine.create(function() | |
915 | local shok = Instance.new("Part") | |
916 | shok.Name = "coil2" | |
917 | shok.BrickColor = BrickColor.new("Institutional white") | |
918 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
919 | shok.Size = Vector3.new(1, 1, 1) | |
920 | shok.Anchored = true | |
921 | shok.Material = "Neon" | |
922 | shok.Transparency = 0.25 | |
923 | shok.CanCollide = false | |
924 | shok.Parent = model | |
925 | game.Debris:AddItem(shok, 12) | |
926 | local mesh = Instance.new("SpecialMesh") | |
927 | mesh.MeshType = "FileMesh" | |
928 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
929 | mesh.Scale = Vector3.new(6, 12, 6) | |
930 | mesh.Parent = shok | |
931 | for e = 1, 15 do | |
932 | wait() | |
933 | mesh.Scale = mesh.Scale + Vector3.new(1.1, 2.4, 1.1) | |
934 | shok.Transparency = shok.Transparency + 0.005 | |
935 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
936 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)) | |
937 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
938 | ||
939 | end | |
940 | for e = 1, 16 do | |
941 | wait() | |
942 | mesh.Scale = mesh.Scale + Vector3.new(1.1, 2.4, 1.1) | |
943 | shok.Transparency = shok.Transparency + 0.005 | |
944 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
945 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)) | |
946 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
947 | ||
948 | end | |
949 | for e = 1, 12 do | |
950 | wait() | |
951 | mesh.Scale = mesh.Scale + Vector3.new(1.1, 2.4, 1.1) | |
952 | shok.Transparency = shok.Transparency + 0.09 | |
953 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
954 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)) | |
955 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
956 | ||
957 | end | |
958 | end)) | |
959 | coroutine.resume(coroutine.create(function() | |
960 | local shok = Instance.new("Part") | |
961 | shok.Name = "shokwve" | |
962 | shok.BrickColor = BrickColor.new("Institutional white") | |
963 | shok.Position = effspwn.Position - Vector3.new(0, 0.8, 0) | |
964 | shok.Size = Vector3.new(1, 1, 1) | |
965 | shok.Anchored = true | |
966 | shok.Material = "Neon" | |
967 | shok.Transparency = 0.6 | |
968 | shok.CanCollide = false | |
969 | shok.Parent = model | |
970 | game.Debris:AddItem(shok, 12) | |
971 | local mesh = Instance.new("SpecialMesh") | |
972 | mesh.MeshType = "FileMesh" | |
973 | mesh.MeshId = "rbxassetid://489415447" | |
974 | mesh.Scale = Vector3.new(1, 1, 1) | |
975 | mesh.Parent = shok | |
976 | for e = 1, 12 do | |
977 | wait() | |
978 | mesh.Scale = mesh.Scale + Vector3.new(2, 2, 2) | |
979 | shok.Transparency = shok.Transparency + 0.002 | |
980 | end | |
981 | for e = 1, 32 do | |
982 | wait() | |
983 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 0.5, 0.5) | |
984 | shok.Transparency = shok.Transparency + 0.002 | |
985 | end | |
986 | for e = 1, 24 do | |
987 | wait() | |
988 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 0.5, 0.5) | |
989 | shok.Transparency = shok.Transparency + 0.03 | |
990 | end | |
991 | end)) | |
992 | coroutine.resume(coroutine.create(function() | |
993 | local shok = Instance.new("Part") | |
994 | shok.Name = "shock2" | |
995 | shok.BrickColor = BrickColor.new("Institutional white") | |
996 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) | |
997 | shok.Size = Vector3.new(1, 1, 1) | |
998 | shok.Anchored = true | |
999 | shok.Material = "Neon" | |
1000 | shok.Transparency = 0.35 | |
1001 | shok.CanCollide = false | |
1002 | shok.Parent = model | |
1003 | game.Debris:AddItem(shok, 12) | |
1004 | local mesh = Instance.new("SpecialMesh") | |
1005 | mesh.MeshType = "FileMesh" | |
1006 | mesh.MeshId = "rbxassetid://489415447" | |
1007 | mesh.Scale = Vector3.new(12, 12, 12) | |
1008 | mesh.Parent = shok | |
1009 | for e = 1, 15 do | |
1010 | wait() | |
1011 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
1012 | shok.Transparency = shok.Transparency + 0.004 | |
1013 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
1014 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
1015 | ||
1016 | end | |
1017 | for e = 1, 16 do | |
1018 | wait() | |
1019 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
1020 | shok.Transparency = shok.Transparency + 0.004 | |
1021 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
1022 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
1023 | ||
1024 | end | |
1025 | for e = 1, 12 do | |
1026 | wait() | |
1027 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
1028 | shok.Transparency = shok.Transparency + 0.06 | |
1029 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
1030 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
1031 | ||
1032 | end | |
1033 | end)) | |
1034 | coroutine.resume(coroutine.create(function() | |
1035 | local shok = Instance.new("Part") | |
1036 | shok.Name = "shock3" | |
1037 | shok.BrickColor = BrickColor.new("Institutional white") | |
1038 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) | |
1039 | shok.Size = Vector3.new(1, 1, 1) | |
1040 | shok.Anchored = true | |
1041 | shok.Material = "Neon" | |
1042 | shok.Transparency = 0.35 | |
1043 | shok.CanCollide = false | |
1044 | shok.Parent = model | |
1045 | game.Debris:AddItem(shok, 12) | |
1046 | local mesh = Instance.new("SpecialMesh") | |
1047 | mesh.MeshType = "FileMesh" | |
1048 | mesh.MeshId = "rbxassetid://489415447" | |
1049 | mesh.Scale = Vector3.new(12, 12, 12) | |
1050 | mesh.Parent = shok | |
1051 | for e = 1, 15 do | |
1052 | wait() | |
1053 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5) | |
1054 | shok.Transparency = shok.Transparency + 0.004 | |
1055 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
1056 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
1057 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
1058 | ||
1059 | end | |
1060 | for e = 1, 16 do | |
1061 | wait() | |
1062 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5) | |
1063 | shok.Transparency = shok.Transparency + 0.004 | |
1064 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
1065 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
1066 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
1067 | ||
1068 | end | |
1069 | for e = 1, 12 do | |
1070 | wait() | |
1071 | mesh.Scale = mesh.Scale + Vector3.new(0.5, -1, 0.5) | |
1072 | shok.Transparency = shok.Transparency + 0.06 | |
1073 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
1074 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
1075 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
1076 | ||
1077 | end | |
1078 | end)) | |
1079 | end | |
1080 | function KABOOMZ2() | |
1081 | local effspwn = Instance.new("Part") | |
1082 | coroutine.resume(coroutine.create(function() | |
1083 | local sound1 = Instance.new("Sound") | |
1084 | sound1.SoundId = "rbxassetid://138137702" | |
1085 | sound1.MaxDistance = 300 | |
1086 | sound1.EmitterSize = 20 | |
1087 | sound1.Volume = 2.5 | |
1088 | sound1.Pitch = 0.65 | |
1089 | sound1.Parent = effspwn | |
1090 | local sound2 = Instance.new("Sound") | |
1091 | sound2.SoundId = "rbxassetid://157878578" | |
1092 | sound2.MaxDistance = 300 | |
1093 | sound2.EmitterSize = 20 | |
1094 | sound2.Volume = 1 | |
1095 | sound2.Pitch = 0.7 | |
1096 | sound2.Parent = effspwn | |
1097 | local sound3 = Instance.new("Sound") | |
1098 | sound3.SoundId = "rbxassetid://138250406" | |
1099 | sound2.MaxDistance = 400 | |
1100 | sound2.EmitterSize = 30 | |
1101 | sound2.Volume = 0.5 | |
1102 | sound2.Pitch = 0.5 | |
1103 | sound2.Parent = effspwn | |
1104 | sound2:Play() | |
1105 | wait() | |
1106 | sound1:Play() | |
1107 | sound3:Play() | |
1108 | end)) | |
1109 | local model = Instance.new("Model") | |
1110 | game.Debris:AddItem(model, 20) | |
1111 | model.Name = "smasheffects" | |
1112 | model.Parent = workspace | |
1113 | effspwn.Name = "spwnr" | |
1114 | effspwn.Size = Vector3.new(1, 1, 1) | |
1115 | effspwn.Anchored = true | |
1116 | effspwn.CanCollide = false | |
1117 | effspwn.Transparency = 1 | |
1118 | effspwn.CFrame = hrp.CFrame * CFrame.Angles(math.rad(180), 0, 0) | |
1119 | effspwn.Parent = model | |
1120 | ||
1121 | ||
1122 | ||
1123 | ||
1124 | ||
1125 | Crater(head,60) | |
1126 | Crater(head,120) | |
1127 | ||
1128 | for i,v in pairs(FindNearestTorso(tors.CFrame.p,50))do | |
1129 | if v:FindFirstChild('Humanoid') then | |
1130 | v.Humanoid:TakeDamage(math.random(10000020,10000030)) | |
1131 | v.Humanoid.PlatformStand = true | |
1132 | v:FindFirstChild("Torso").Velocity = head.CFrame.lookVector * 200 | |
1133 | end | |
1134 | end | |
1135 | ||
1136 | coroutine.resume(coroutine.create(function() | |
1137 | local shok = Instance.new("Part") | |
1138 | shok.Name = "whoosh" | |
1139 | shok.BrickColor = BrickColor.new("Institutional white") | |
1140 | shok.CFrame = effspwn.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
1141 | shok.Size = Vector3.new(1, 1, 1) | |
1142 | shok.Anchored = true | |
1143 | shok.Material = "Neon" | |
1144 | shok.Transparency = 0.1 | |
1145 | shok.CanCollide = false | |
1146 | shok.Parent = model | |
1147 | game.Debris:AddItem(shok, 12) | |
1148 | local mesh = Instance.new("SpecialMesh") | |
1149 | mesh.MeshType = "FileMesh" | |
1150 | mesh.MeshId = "rbxassetid://437347603" | |
1151 | mesh.Scale = Vector3.new(0.8, 0.8, 0.3) | |
1152 | mesh.Parent = shok | |
1153 | ||
1154 | ||
1155 | ||
1156 | ||
1157 | ||
1158 | for e = 1, 8 do | |
1159 | wait() | |
1160 | mesh.Scale = mesh.Scale + Vector3.new(0.24, 0.24, 0.22) | |
1161 | shok.Transparency = shok.Transparency + 0.035 | |
1162 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -22), 0.4) | |
1163 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29)) | |
1164 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
1165 | ||
1166 | end | |
1167 | for e = 1, 16 do | |
1168 | wait() | |
1169 | mesh.Scale = mesh.Scale + Vector3.new(0.13, 0.13, 0.12) | |
1170 | shok.Transparency = shok.Transparency + 0.11 | |
1171 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -10), 0.4) | |
1172 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(15)) | |
1173 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
1174 | ||
1175 | end | |
1176 | end)) | |
1177 | coroutine.resume(coroutine.create(function() | |
1178 | local shok = Instance.new("Part") | |
1179 | shok.Name = "wring1" | |
1180 | shok.BrickColor = BrickColor.new("Institutional white") | |
1181 | shok.CFrame = effspwn.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
1182 | shok.Size = Vector3.new(1, 1, 1) | |
1183 | shok.Anchored = true | |
1184 | shok.Material = "Neon" | |
1185 | shok.Transparency = 0.25 | |
1186 | shok.CanCollide = false | |
1187 | shok.Parent = model | |
1188 | game.Debris:AddItem(shok, 12) | |
1189 | local mesh = Instance.new("SpecialMesh") | |
1190 | mesh.MeshType = "FileMesh" | |
1191 | mesh.MeshId = "rbxassetid://3270017" | |
1192 | mesh.Scale = Vector3.new(0.1, 0.1, 0.05) | |
1193 | mesh.Parent = shok | |
1194 | for e = 1, 30 do | |
1195 | wait() | |
1196 | mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 3) | |
1197 | shok.Transparency = shok.Transparency + 0.002 | |
1198 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
1199 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)) | |
1200 | end | |
1201 | for e = 1, 38 do | |
1202 | wait() | |
1203 | mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 0.1) | |
1204 | shok.Transparency = shok.Transparency + 0.002 | |
1205 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
1206 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)) | |
1207 | end | |
1208 | for e = 1, 24 do | |
1209 | wait() | |
1210 | mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 0.1) | |
1211 | shok.Transparency = shok.Transparency + 0.03 | |
1212 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
1213 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)) | |
1214 | end | |
1215 | end)) | |
1216 | coroutine.resume(coroutine.create(function() | |
1217 | local shok = Instance.new("Part") | |
1218 | shok.Name = "wring2" | |
1219 | shok.BrickColor = BrickColor.new("Institutional white") | |
1220 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 12, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
1221 | shok.Size = Vector3.new(1, 1, 1) | |
1222 | shok.Anchored = true | |
1223 | shok.Material = "Neon" | |
1224 | shok.Transparency = 0.25 | |
1225 | shok.CanCollide = false | |
1226 | shok.Parent = model | |
1227 | game.Debris:AddItem(shok, 12) | |
1228 | local mesh = Instance.new("SpecialMesh") | |
1229 | mesh.MeshType = "FileMesh" | |
1230 | mesh.MeshId = "rbxassetid://3270017" | |
1231 | mesh.Scale = Vector3.new(12, 12, 0.05) | |
1232 | mesh.Parent = shok | |
1233 | for e = 1, 30 do | |
1234 | wait() | |
1235 | mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 3) | |
1236 | shok.Transparency = shok.Transparency + 0.002 | |
1237 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
1238 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
1239 | end | |
1240 | for e = 1, 38 do | |
1241 | wait() | |
1242 | mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 0.1) | |
1243 | shok.Transparency = shok.Transparency + 0.002 | |
1244 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
1245 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
1246 | end | |
1247 | for e = 1, 24 do | |
1248 | wait() | |
1249 | mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 0.1) | |
1250 | shok.Transparency = shok.Transparency + 0.03 | |
1251 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
1252 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
1253 | end | |
1254 | end)) | |
1255 | coroutine.resume(coroutine.create(function() | |
1256 | local shok = Instance.new("Part") | |
1257 | shok.Name = "coil1" | |
1258 | shok.BrickColor = BrickColor.new("Institutional white") | |
1259 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 12, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
1260 | shok.Size = Vector3.new(1, 1, 1) | |
1261 | shok.Anchored = true | |
1262 | shok.Material = "Neon" | |
1263 | shok.Transparency = 0.25 | |
1264 | shok.CanCollide = false | |
1265 | shok.Parent = model | |
1266 | game.Debris:AddItem(shok, 12) | |
1267 | local mesh = Instance.new("SpecialMesh") | |
1268 | mesh.MeshType = "FileMesh" | |
1269 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
1270 | mesh.Scale = Vector3.new(12, 12, 12) | |
1271 | mesh.Parent = shok | |
1272 | for e = 1, 15 do | |
1273 | wait() | |
1274 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
1275 | shok.Transparency = shok.Transparency + 0.004 | |
1276 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
1277 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
1278 | end | |
1279 | for e = 1, 16 do | |
1280 | wait() | |
1281 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
1282 | shok.Transparency = shok.Transparency + 0.004 | |
1283 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
1284 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
1285 | end | |
1286 | for e = 1, 12 do | |
1287 | wait() | |
1288 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
1289 | shok.Transparency = shok.Transparency + 0.06 | |
1290 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
1291 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
1292 | end | |
1293 | end)) | |
1294 | coroutine.resume(coroutine.create(function() | |
1295 | local shok = Instance.new("Part") | |
1296 | shok.Name = "coil2" | |
1297 | shok.BrickColor = BrickColor.new("Institutional white") | |
1298 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
1299 | shok.Size = Vector3.new(1, 1, 1) | |
1300 | shok.Anchored = true | |
1301 | shok.Material = "Neon" | |
1302 | shok.Transparency = 0.25 | |
1303 | shok.CanCollide = false | |
1304 | shok.Parent = model | |
1305 | game.Debris:AddItem(shok, 12) | |
1306 | local mesh = Instance.new("SpecialMesh") | |
1307 | mesh.MeshType = "FileMesh" | |
1308 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
1309 | mesh.Scale = Vector3.new(6, 12, 6) | |
1310 | mesh.Parent = shok | |
1311 | for e = 1, 15 do | |
1312 | wait() | |
1313 | mesh.Scale = mesh.Scale + Vector3.new(1.1, 2.4, 1.1) | |
1314 | shok.Transparency = shok.Transparency + 0.005 | |
1315 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
1316 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)) | |
1317 | end | |
1318 | for e = 1, 16 do | |
1319 | wait() | |
1320 | mesh.Scale = mesh.Scale + Vector3.new(1.1, 2.4, 1.1) | |
1321 | shok.Transparency = shok.Transparency + 0.005 | |
1322 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
1323 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)) | |
1324 | end | |
1325 | for e = 1, 12 do | |
1326 | wait() | |
1327 | mesh.Scale = mesh.Scale + Vector3.new(1.1, 2.4, 1.1) | |
1328 | shok.Transparency = shok.Transparency + 0.09 | |
1329 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
1330 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)) | |
1331 | end | |
1332 | end)) | |
1333 | coroutine.resume(coroutine.create(function() | |
1334 | local shok = Instance.new("Part") | |
1335 | shok.Name = "shokwve" | |
1336 | shok.BrickColor = BrickColor.new("Institutional white") | |
1337 | shok.Position = effspwn.Position + Vector3.new(0, 5, 0) | |
1338 | shok.Size = Vector3.new(1, 1, 1) | |
1339 | shok.Anchored = true | |
1340 | shok.Material = "Neon" | |
1341 | shok.Transparency = 0.6 | |
1342 | shok.CanCollide = false | |
1343 | shok.Parent = model | |
1344 | game.Debris:AddItem(shok, 12) | |
1345 | local mesh = Instance.new("SpecialMesh") | |
1346 | mesh.MeshType = "FileMesh" | |
1347 | mesh.MeshId = "rbxassetid://489415447" | |
1348 | mesh.Scale = Vector3.new(1, 1, 1) | |
1349 | mesh.Parent = shok | |
1350 | for e = 1, 12 do | |
1351 | wait() | |
1352 | mesh.Scale = mesh.Scale + Vector3.new(2, 2, 2) | |
1353 | shok.Transparency = shok.Transparency + 0.002 | |
1354 | end | |
1355 | for e = 1, 32 do | |
1356 | wait() | |
1357 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 0.5, 0.5) | |
1358 | shok.Transparency = shok.Transparency + 0.002 | |
1359 | end | |
1360 | for e = 1, 24 do | |
1361 | wait() | |
1362 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 0.5, 0.5) | |
1363 | shok.Transparency = shok.Transparency + 0.03 | |
1364 | end | |
1365 | end)) | |
1366 | coroutine.resume(coroutine.create(function() | |
1367 | local shok = Instance.new("Part") | |
1368 | shok.Name = "shock2" | |
1369 | shok.BrickColor = BrickColor.new("Institutional white") | |
1370 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) | |
1371 | shok.Size = Vector3.new(1, 1, 1) | |
1372 | shok.Anchored = true | |
1373 | shok.Material = "Neon" | |
1374 | shok.Transparency = 0.35 | |
1375 | shok.CanCollide = false | |
1376 | shok.Parent = model | |
1377 | game.Debris:AddItem(shok, 12) | |
1378 | local mesh = Instance.new("SpecialMesh") | |
1379 | mesh.MeshType = "FileMesh" | |
1380 | mesh.MeshId = "rbxassetid://489415447" | |
1381 | mesh.Scale = Vector3.new(12, 12, 12) | |
1382 | mesh.Parent = shok | |
1383 | for e = 1, 15 do | |
1384 | wait() | |
1385 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
1386 | shok.Transparency = shok.Transparency + 0.004 | |
1387 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
1388 | end | |
1389 | for e = 1, 16 do | |
1390 | wait() | |
1391 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
1392 | shok.Transparency = shok.Transparency + 0.004 | |
1393 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
1394 | end | |
1395 | for e = 1, 12 do | |
1396 | wait() | |
1397 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
1398 | shok.Transparency = shok.Transparency + 0.06 | |
1399 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
1400 | end | |
1401 | end)) | |
1402 | coroutine.resume(coroutine.create(function() | |
1403 | local shok = Instance.new("Part") | |
1404 | shok.Name = "shock3" | |
1405 | shok.BrickColor = BrickColor.new("Institutional white") | |
1406 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) | |
1407 | shok.Size = Vector3.new(1, 1, 1) | |
1408 | shok.Anchored = true | |
1409 | shok.Material = "Neon" | |
1410 | shok.Transparency = 0.35 | |
1411 | shok.CanCollide = false | |
1412 | shok.Parent = model | |
1413 | game.Debris:AddItem(shok, 12) | |
1414 | local mesh = Instance.new("SpecialMesh") | |
1415 | mesh.MeshType = "FileMesh" | |
1416 | mesh.MeshId = "rbxassetid://489415447" | |
1417 | mesh.Scale = Vector3.new(12, 12, 12) | |
1418 | mesh.Parent = shok | |
1419 | for e = 1, 15 do | |
1420 | wait() | |
1421 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5) | |
1422 | shok.Transparency = shok.Transparency + 0.004 | |
1423 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
1424 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
1425 | end | |
1426 | for e = 1, 16 do | |
1427 | wait() | |
1428 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5) | |
1429 | shok.Transparency = shok.Transparency + 0.004 | |
1430 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
1431 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
1432 | end | |
1433 | for e = 1, 12 do | |
1434 | wait() | |
1435 | mesh.Scale = mesh.Scale + Vector3.new(0.5, -1, 0.5) | |
1436 | shok.Transparency = shok.Transparency + 0.06 | |
1437 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
1438 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
1439 | end | |
1440 | end)) | |
1441 | end | |
1442 | ||
1443 | ||
1444 | ||
1445 | tor = chr.Torso | |
1446 | Debounce = false | |
1447 | ||
1448 | Invis = function() | |
1449 | for i = 1,20 do | |
1450 | chr['Right Arm'].Transparency = chr['Right Arm'].Transparency + .05 | |
1451 | chr['Left Arm'].Transparency = chr['Left Arm'].Transparency + .05 | |
1452 | chr['Right Leg'].Transparency = chr['Right Leg'].Transparency + .05 | |
1453 | chr['Left Leg'].Transparency = chr['Left Leg'].Transparency + .05 | |
1454 | chr['Head'].Transparency = chr['Head'].Transparency + .05 | |
1455 | chr['Torso'].Transparency = chr['Torso'].Transparency + .05 | |
1456 | chr.Head['face'].Transparency = chr.Head['face'].Transparency + .05 | |
1457 | game["Run Service"].RenderStepped:wait() | |
1458 | end | |
1459 | end | |
1460 | ||
1461 | Vis = function() | |
1462 | for i = 1,20 do | |
1463 | chr['Right Arm'].Transparency = chr['Right Arm'].Transparency - .05 | |
1464 | chr['Left Arm'].Transparency = chr['Left Arm'].Transparency - .05 | |
1465 | chr['Right Leg'].Transparency = chr['Right Leg'].Transparency - .05 | |
1466 | chr['Left Leg'].Transparency = chr['Left Leg'].Transparency - .05 | |
1467 | chr['Head'].Transparency = chr['Head'].Transparency - .05 | |
1468 | chr['Torso'].Transparency = chr['Torso'].Transparency - .05 | |
1469 | chr.Head['face'].Transparency = chr.Head['face'].Transparency - .05 | |
1470 | game["Run Service"].RenderStepped:wait() | |
1471 | end | |
1472 | end | |
1473 | ||
1474 | Fade = function(Part) | |
1475 | if Part:IsA'Part' then | |
1476 | for i = 1,20 do | |
1477 | Part.Transparency = Part.Transparency + .05 | |
1478 | Part.Size = Part.Size - Vector3.new(.04,.04,.04) | |
1479 | Part.CFrame = Part.CFrame * CFrame.new(0,-.1,0) | |
1480 | wait() | |
1481 | end | |
1482 | Part:Destroy() | |
1483 | end | |
1484 | end | |
1485 | ||
1486 | Teleport = function(cx,cy,cz) | |
1487 | Debounce = true | |
1488 | tor.Anchored = true | |
1489 | Invis() | |
1490 | --MakeTpPart() | |
1491 | tor.Anchored = false | |
1492 | tor.CFrame = CFrame.new(cx,cy,cz) * CFrame.new(0,3,0) | |
1493 | tor.Anchored = true | |
1494 | Vis() | |
1495 | tor.Anchored = false | |
1496 | Debounce = false | |
1497 | end; | |
1498 | ||
1499 | ||
1500 | ||
1501 | tps = Instance.new("Sound",chr) | |
1502 | tps.SoundId = "http://www.roblox.com/asset/?id = 449860746" | |
1503 | tps.Volume = 30 | |
1504 | ||
1505 | ||
1506 | function Tele() | |
1507 | human.WalkSpeed = 0 | |
1508 | if activu == true then | |
1509 | return | |
1510 | end | |
1511 | activu = true | |
1512 | ||
1513 | for l = 1, 30 do | |
1514 | swait() | |
1515 | lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.5) * ang(rd(6), rd(0), rd(0)), 0.02 + l / 40) | |
1516 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(12), rd(0), rd(0)), 0.02 + l / 40) | |
1517 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-8), rd(-7), rd(-10)), 0.02 + l / 40) | |
1518 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
1519 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-8), rd(7), rd(10)), 0.02 + l / 40) | |
1520 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
1521 | lerpz(RH, "C0", RHC0 * cf(0.4, 0.5, 0) * ang(rd(0), rd(-6), rd(8)), 0.02 + l / 40) | |
1522 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
1523 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(3), rd(0), rd(42)), 0.02 + l / 40) | |
1524 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
1525 | end | |
1526 | local rng = Instance.new("Part", chr) | |
1527 | rng.Anchored = true | |
1528 | rng.BrickColor = BrickColor.new("Institutional white") | |
1529 | rng.CanCollide = false | |
1530 | rng.FormFactor = 3 | |
1531 | rng.Name = "Ring" | |
1532 | rng.Size = Vector3.new(1, 1, 1) | |
1533 | rng.Transparency = 0.5 | |
1534 | rng.TopSurface = 0 | |
1535 | rng.BottomSurface = 0 | |
1536 | rng.Position = tors.Position - Vector3.new(0,2,0) | |
1537 | rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
1538 | local rngm = Instance.new("SpecialMesh", rng) | |
1539 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1540 | rngm.Scale = Vector3.new(1, 1, 2) | |
1541 | lleg.BrickColor = BrickColor.new("Cocoa") | |
1542 | rleg.BrickColor = BrickColor.new("Cocoa") | |
1543 | coroutine.wrap(function() | |
1544 | for i = 1, 60, 8 do | |
1545 | rngm.Scale = Vector3.new(1.2 + i*1.1, 1.2 + i*1.1, 1) | |
1546 | rng.Transparency = i/60 | |
1547 | wait() | |
1548 | end | |
1549 | wait() | |
1550 | rng:Destroy() | |
1551 | end)() | |
1552 | tps:Play() | |
1553 | Teleport(mouse.Hit.X,mouse.Hit.Y,mouse.Hit.Z) | |
1554 | resetlerp() | |
1555 | human.WalkSpeed = 16 | |
1556 | activu = false | |
1557 | wait(5) | |
1558 | lleg.BrickColor = BrickColor.new("Institutional white") | |
1559 | rleg.BrickColor = BrickColor.new("Institutional white") | |
1560 | end | |
1561 | ||
1562 | ||
1563 | ||
1564 | ||
1565 | boom3 = Instance.new("Sound",chr) | |
1566 | boom3.SoundId = "http://www.roblox.com/asset/?id = 450719019" | |
1567 | boom3.Volume = 50 | |
1568 | ||
1569 | ||
1570 | ||
1571 | ||
1572 | ||
1573 | gprop = {} | |
1574 | function materialhit(hit) | |
1575 | if hit.Parent ~= chr and hit.Parent.Parent ~= chr and hit.Name ~= "Trace" and hit.Parent:FindFirstChild("Humanoid") == nil then | |
1576 | gprop = {hit.BrickColor,hit.Material} | |
1577 | end | |
1578 | end | |
1579 | chr["Left Leg"].Touched:connect(materialhit) | |
1580 | chr["Right Leg"].Touched:connect(materialhit) | |
1581 | ||
1582 | ||
1583 | function KickBoom() | |
1584 | local effspwn = Instance.new("Part") | |
1585 | local model = Instance.new("Model") | |
1586 | game.Debris:AddItem(model, 20) | |
1587 | model.Name = "smasheffects" | |
1588 | model.Parent = chr | |
1589 | effspwn.Name = "spwnr" | |
1590 | effspwn.Size = Vector3.new(1, 1, 1) | |
1591 | effspwn.Anchored = true | |
1592 | effspwn.CanCollide = false | |
1593 | effspwn.Transparency = 1 | |
1594 | effspwn.CFrame = hrp.CFrame * CFrame.Angles(math.rad(180), 0, 0) | |
1595 | effspwn.Parent = model | |
1596 | ||
1597 | for i = 1, 15 do | |
1598 | local gtrace = Instance.new("Part",game.Workspace) | |
1599 | gtrace.BrickColor = gprop[1] | |
1600 | gtrace.Material = gprop[2] | |
1601 | gtrace.Size = Vector3.new(16,16,16) | |
1602 | gtrace.Anchored = true | |
1603 | gtrace.CanCollide = false | |
1604 | gtrace.CFrame = (chr.HumanoidRootPart.CFrame + Vector3.new(math.random(-70,70),-6,math.random(-70,70))) * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359))) | |
1605 | local gdisp = coroutine.wrap(function() | |
1606 | wait(3) | |
1607 | for i = 1, 9 do | |
1608 | wait(.1) | |
1609 | gtrace.Transparency = gtrace.Transparency + .1 | |
1610 | end | |
1611 | gtrace:Destroy() | |
1612 | end) | |
1613 | gdisp() | |
1614 | end | |
1615 | ||
1616 | Crater(head,67) | |
1617 | ||
1618 | for i,v in pairs(FindNearestTorso(tors.CFrame.p,50))do | |
1619 | if v:FindFirstChild('Humanoid') then | |
1620 | v.Humanoid:TakeDamage(math.random(10000020,10000030)) | |
1621 | v.Humanoid.PlatformStand = true | |
1622 | v:FindFirstChild("Torso").Velocity = head.CFrame.lookVector * 250 | |
1623 | end | |
1624 | end | |
1625 | ||
1626 | coroutine.resume(coroutine.create(function() | |
1627 | local shok = Instance.new("Part") | |
1628 | shok.Name = "shock3" | |
1629 | shok.BrickColor = BrickColor.new("Institutional white") | |
1630 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) | |
1631 | shok.Size = Vector3.new(1, 1, 1) | |
1632 | shok.Anchored = true | |
1633 | shok.Material = "Neon" | |
1634 | shok.Transparency = 0.35 | |
1635 | shok.CanCollide = false | |
1636 | shok.Parent = model | |
1637 | game.Debris:AddItem(shok, 12) | |
1638 | local mesh = Instance.new("SpecialMesh") | |
1639 | mesh.MeshType = "FileMesh" | |
1640 | mesh.MeshId = "rbxassetid://489415447" | |
1641 | mesh.Scale = Vector3.new(19, 19, 19) | |
1642 | mesh.Parent = shok | |
1643 | for e = 1, 15 do | |
1644 | wait() | |
1645 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5) | |
1646 | shok.Transparency = shok.Transparency + 0.004 | |
1647 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
1648 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
1649 | end | |
1650 | for e = 1, 16 do | |
1651 | wait() | |
1652 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5) | |
1653 | shok.Transparency = shok.Transparency + 0.004 | |
1654 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
1655 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
1656 | end | |
1657 | for e = 1, 12 do | |
1658 | wait() | |
1659 | mesh.Scale = mesh.Scale + Vector3.new(0.5, -1, 0.5) | |
1660 | shok.Transparency = shok.Transparency + 0.06 | |
1661 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
1662 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
1663 | end | |
1664 | end)) | |
1665 | ||
1666 | ||
1667 | coroutine.resume(coroutine.create(function() | |
1668 | local shok = Instance.new("Part") | |
1669 | shok.Name = "shock3" | |
1670 | shok.BrickColor = BrickColor.new("Institutional white") | |
1671 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) | |
1672 | shok.Size = Vector3.new(1, 1, 1) | |
1673 | shok.Anchored = true | |
1674 | shok.Material = "Neon" | |
1675 | shok.Transparency = 0.35 | |
1676 | shok.CanCollide = false | |
1677 | shok.Parent = model | |
1678 | game.Debris:AddItem(shok, 12) | |
1679 | local mesh = Instance.new("SpecialMesh") | |
1680 | mesh.MeshType = "FileMesh" | |
1681 | mesh.MeshId = "rbxassetid://489415447" | |
1682 | mesh.Scale = Vector3.new(47, 47, 47) | |
1683 | mesh.Parent = shok | |
1684 | for e = 1, 15 do | |
1685 | wait() | |
1686 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5) | |
1687 | shok.Transparency = shok.Transparency + 0.004 | |
1688 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
1689 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
1690 | end | |
1691 | for e = 1, 16 do | |
1692 | wait() | |
1693 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5) | |
1694 | shok.Transparency = shok.Transparency + 0.004 | |
1695 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
1696 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
1697 | end | |
1698 | for e = 1, 12 do | |
1699 | wait() | |
1700 | mesh.Scale = mesh.Scale + Vector3.new(0.5, -1, 0.5) | |
1701 | shok.Transparency = shok.Transparency + 0.06 | |
1702 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
1703 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
1704 | end | |
1705 | end)) | |
1706 | ||
1707 | coroutine.resume(coroutine.create(function() | |
1708 | local shok = Instance.new("Part") | |
1709 | shok.Name = "shock3" | |
1710 | shok.BrickColor = BrickColor.new("Institutional white") | |
1711 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) | |
1712 | shok.Size = Vector3.new(1, 1, 1) | |
1713 | shok.Anchored = true | |
1714 | shok.Material = "Neon" | |
1715 | shok.Transparency = 0.35 | |
1716 | shok.CanCollide = false | |
1717 | shok.Parent = model | |
1718 | game.Debris:AddItem(shok, 12) | |
1719 | local mesh = Instance.new("SpecialMesh") | |
1720 | mesh.MeshType = "FileMesh" | |
1721 | mesh.MeshId = "rbxassetid://489415447" | |
1722 | mesh.Scale = Vector3.new(79, 79, 79) | |
1723 | mesh.Parent = shok | |
1724 | for e = 1, 15 do | |
1725 | wait() | |
1726 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5) | |
1727 | shok.Transparency = shok.Transparency + 0.004 | |
1728 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
1729 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
1730 | end | |
1731 | for e = 1, 16 do | |
1732 | wait() | |
1733 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5) | |
1734 | shok.Transparency = shok.Transparency + 0.004 | |
1735 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
1736 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
1737 | end | |
1738 | for e = 1, 12 do | |
1739 | wait() | |
1740 | mesh.Scale = mesh.Scale + Vector3.new(0.5, -1, 0.5) | |
1741 | shok.Transparency = shok.Transparency + 0.06 | |
1742 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
1743 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
1744 | end | |
1745 | end)) | |
1746 | end | |
1747 | ||
1748 | ||
1749 | ||
1750 | ||
1751 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
1752 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
1753 | end | |
1754 | cam = workspace.CurrentCamera | |
1755 | ||
1756 | ||
1757 | ||
1758 | ||
1759 | ||
1760 | ||
1761 | ||
1762 | ||
1763 | function NoOutline(Part) | |
1764 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
1765 | end | |
1766 | ||
1767 | ||
1768 | ||
1769 | ||
1770 | it = Instance.new | |
1771 | ||
1772 | ||
1773 | ||
1774 | ||
1775 | ||
1776 | ||
1777 | ||
1778 | ||
1779 | ||
1780 | ||
1781 | so = function(id,par,vol,pit) | |
1782 | coroutine.resume(coroutine.create(function() | |
1783 | local sou = Instance.new("Sound",par or workspace) | |
1784 | sou.Volume=vol | |
1785 | sou.Pitch=pit or 1 | |
1786 | sou.SoundId=id | |
1787 | swait() | |
1788 | sou:play() | |
1789 | game:GetService("Debris"):AddItem(sou,6) | |
1790 | end)) | |
1791 | end | |
1792 | ||
1793 | ||
1794 | function Stom() | |
1795 | ||
1796 | cf=CFrame.new | |
1797 | angles=CFrame.Angles | |
1798 | euler=CFrame.fromEulerAnglesXYZ | |
1799 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
1800 | RootPart=chr.HumanoidRootPart | |
1801 | RootJoint=RootPart.RootJoint | |
1802 | RootCF=euler(-1.57,0,3.14) | |
1803 | ||
1804 | function QuaternionFromCFrame(cf) | |
1805 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
1806 | local trace = m00 + m11 + m22 | |
1807 | if trace > 0 then | |
1808 | local s = math.sqrt(1 + trace) | |
1809 | local recip = 0.5/s | |
1810 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
1811 | else | |
1812 | local i = 0 | |
1813 | if m11 > m00 then | |
1814 | i = 1 | |
1815 | end | |
1816 | if m22 > (i == 0 and m00 or m11) then | |
1817 | i = 2 | |
1818 | end | |
1819 | if i == 0 then | |
1820 | local s = math.sqrt(m00-m11-m22+1) | |
1821 | local recip = 0.5/s | |
1822 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
1823 | elseif i == 1 then | |
1824 | local s = math.sqrt(m11-m22-m00+1) | |
1825 | local recip = 0.5/s | |
1826 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
1827 | elseif i == 2 then | |
1828 | local s = math.sqrt(m22-m00-m11+1) | |
1829 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
1830 | end | |
1831 | end | |
1832 | end | |
1833 | ||
1834 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
1835 | local xs, ys, zs = x + x, y + y, z + z | |
1836 | local wx, wy, wz = w*xs, w*ys, w*zs | |
1837 | local xx = x*xs | |
1838 | local xy = x*ys | |
1839 | local xz = x*zs | |
1840 | local yy = y*ys | |
1841 | local yz = y*zs | |
1842 | local zz = z*zs | |
1843 | return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) | |
1844 | end | |
1845 | ||
1846 | function QuaternionSlerp(a, b, t) | |
1847 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
1848 | local startInterp, finishInterp; | |
1849 | if cosTheta >= 0.0001 then | |
1850 | if (1 - cosTheta) > 0.0001 then | |
1851 | local theta = math.acos(cosTheta) | |
1852 | local invSinTheta = 1/math.sin(theta) | |
1853 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
1854 | finishInterp = math.sin(t*theta)*invSinTheta | |
1855 | else | |
1856 | startInterp = 1-t | |
1857 | finishInterp = t | |
1858 | end | |
1859 | else | |
1860 | if (1+cosTheta) > 0.0001 then | |
1861 | local theta = math.acos(-cosTheta) | |
1862 | local invSinTheta = 1/math.sin(theta) | |
1863 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
1864 | finishInterp = math.sin(t*theta)*invSinTheta | |
1865 | else | |
1866 | startInterp = t-1 | |
1867 | finishInterp = t | |
1868 | end | |
1869 | end | |
1870 | return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp | |
1871 | end | |
1872 | ||
1873 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
1874 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
1875 | end | |
1876 | ||
1877 | function clerp(a,b,t) | |
1878 | local qa = {QuaternionFromCFrame(a)} | |
1879 | local qb = {QuaternionFromCFrame(b)} | |
1880 | local ax, ay, az = a.x, a.y, a.z | |
1881 | local bx, by, bz = b.x, b.y, b.z | |
1882 | local _t = 1-t | |
1883 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
1884 | end | |
1885 | ||
1886 | ||
1887 | ||
1888 | if activu == true then | |
1889 | return | |
1890 | end | |
1891 | activu = true | |
1892 | ||
1893 | ||
1894 | ||
1895 | human.WalkSpeed = 0 | |
1896 | for i = 0,1,0.1 do | |
1897 | swait() | |
1898 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1899 | tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
1900 | RS.C0 = clerp(RS.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(20)), 0.3) | |
1901 | LS.C0 = clerp(LS.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
1902 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3) | |
1903 | LH.C0=clerp(LH.C0,cf(-1,-.1,-.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3) | |
1904 | end | |
1905 | wait(1) | |
1906 | for i = 0,1,0.1 do | |
1907 | swait() | |
1908 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
1909 | tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1910 | RS.C0 = clerp(RS.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)), 0.3) | |
1911 | LS.C0 = clerp(LS.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3) | |
1912 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(10))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3) | |
1913 | LH.C0=clerp(LH.C0,cf(-1,-1,-.5)*angles(math.rad(0),math.rad(-90),math.rad(-10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3) | |
1914 | end | |
1915 | KickBoom() | |
1916 | so("http://roblox.com/asset/?id=144699494",lleg,2,1.1) | |
1917 | so("http://roblox.com/asset/?id=321321137",lleg,1,1) | |
1918 | so("http://roblox.com/asset/?id=506384002",lleg,1,1) | |
1919 | so("http://roblox.com/asset/?id=157878578",lleg,25,1) | |
1920 | so("http://roblox.com/asset/?id=165970126",lleg,25,1) | |
1921 | ||
1922 | wait(3) | |
1923 | human.WalkSpeed = 16 | |
1924 | resetlerp() | |
1925 | activu = false | |
1926 | end | |
1927 | ||
1928 | ||
1929 | ||
1930 | ||
1931 | ||
1932 | function Smash() | |
1933 | for i = 1, 15 do | |
1934 | local gtrace = Instance.new("Part",game.Workspace) | |
1935 | gtrace.BrickColor = gprop[1] | |
1936 | gtrace.Material = gprop[2] | |
1937 | gtrace.Size = Vector3.new(19,19,19) | |
1938 | gtrace.Anchored = true | |
1939 | gtrace.CanCollide = false | |
1940 | gtrace.CFrame = (chr.HumanoidRootPart.CFrame + Vector3.new(math.random(-60,60),-6,math.random(-60,60))) * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359))) | |
1941 | local gdisp = coroutine.wrap(function() | |
1942 | wait(7) | |
1943 | for i = 1, 9 do | |
1944 | wait(.1) | |
1945 | gtrace.Transparency = gtrace.Transparency + .1 | |
1946 | end | |
1947 | gtrace:Destroy() | |
1948 | end) | |
1949 | gdisp() | |
1950 | end | |
1951 | ||
1952 | Crater(head,67) | |
1953 | end | |
1954 | ||
1955 | function Smash2() | |
1956 | for i = 1, 15 do | |
1957 | local gtrace = Instance.new("Part",game.Workspace) | |
1958 | gtrace.BrickColor = gprop[1] | |
1959 | gtrace.Material = gprop[2] | |
1960 | gtrace.Size = Vector3.new(19,19,19) | |
1961 | gtrace.Anchored = true | |
1962 | gtrace.CanCollide = false | |
1963 | gtrace.CFrame = (chr.HumanoidRootPart.CFrame + Vector3.new(math.random(-70,70),-6,math.random(-70,70))) * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359))) | |
1964 | local gdisp = coroutine.wrap(function() | |
1965 | wait(7) | |
1966 | for i = 1, 9 do | |
1967 | wait(.1) | |
1968 | gtrace.Transparency = gtrace.Transparency + .1 | |
1969 | end | |
1970 | gtrace:Destroy() | |
1971 | end) | |
1972 | gdisp() | |
1973 | end | |
1974 | ||
1975 | end | |
1976 | ||
1977 | function Smash3() | |
1978 | for i = 1, 15 do | |
1979 | local gtrace = Instance.new("Part",game.Workspace) | |
1980 | gtrace.BrickColor = gprop[1] | |
1981 | gtrace.Material = gprop[2] | |
1982 | gtrace.Size = Vector3.new(19,19,19) | |
1983 | gtrace.Anchored = true | |
1984 | gtrace.CanCollide = false | |
1985 | gtrace.CFrame = (chr.HumanoidRootPart.CFrame + Vector3.new(math.random(-50,50),-6,math.random(-50,50))) * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359))) | |
1986 | local gdisp = coroutine.wrap(function() | |
1987 | wait(7) | |
1988 | for i = 1, 9 do | |
1989 | wait(.1) | |
1990 | gtrace.Transparency = gtrace.Transparency + .1 | |
1991 | end | |
1992 | gtrace:Destroy() | |
1993 | end) | |
1994 | gdisp() | |
1995 | end | |
1996 | ||
1997 | end | |
1998 | ||
1999 | ||
2000 | function Smash4() | |
2001 | for i = 1, 15 do | |
2002 | local gtrace = Instance.new("Part",game.Workspace) | |
2003 | gtrace.BrickColor = gprop[1] | |
2004 | gtrace.Material = gprop[2] | |
2005 | gtrace.Size = Vector3.new(19,19,19) | |
2006 | gtrace.Anchored = true | |
2007 | gtrace.CanCollide = false | |
2008 | gtrace.CFrame = (chr.HumanoidRootPart.CFrame + Vector3.new(math.random(-40,40),-6,math.random(-40,40))) * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359))) | |
2009 | local gdisp = coroutine.wrap(function() | |
2010 | wait(7) | |
2011 | for i = 1, 9 do | |
2012 | wait(.1) | |
2013 | gtrace.Transparency = gtrace.Transparency + .1 | |
2014 | end | |
2015 | gtrace:Destroy() | |
2016 | end) | |
2017 | gdisp() | |
2018 | end | |
2019 | ||
2020 | end | |
2021 | ||
2022 | function Smash5() | |
2023 | for i = 1, 15 do | |
2024 | local gtrace = Instance.new("Part",game.Workspace) | |
2025 | gtrace.BrickColor = gprop[1] | |
2026 | gtrace.Material = gprop[2] | |
2027 | gtrace.Size = Vector3.new(19,19,19) | |
2028 | gtrace.Anchored = true | |
2029 | gtrace.CanCollide = false | |
2030 | gtrace.CFrame = (chr.HumanoidRootPart.CFrame + Vector3.new(math.random(-30,30),-6,math.random(-30,30))) * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359))) | |
2031 | local gdisp = coroutine.wrap(function() | |
2032 | wait(7) | |
2033 | for i = 1, 9 do | |
2034 | wait(.1) | |
2035 | gtrace.Transparency = gtrace.Transparency + .1 | |
2036 | end | |
2037 | gtrace:Destroy() | |
2038 | end) | |
2039 | gdisp() | |
2040 | end | |
2041 | ||
2042 | end | |
2043 | ||
2044 | function Smash6() | |
2045 | for i = 1, 15 do | |
2046 | local gtrace = Instance.new("Part",game.Workspace) | |
2047 | gtrace.BrickColor = gprop[1] | |
2048 | gtrace.Material = gprop[2] | |
2049 | gtrace.Size = Vector3.new(19,19,19) | |
2050 | gtrace.Anchored = true | |
2051 | gtrace.CanCollide = false | |
2052 | gtrace.CFrame = (chr.HumanoidRootPart.CFrame + Vector3.new(math.random(-20,20),-6,math.random(-20,20))) * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359))) | |
2053 | local gdisp = coroutine.wrap(function() | |
2054 | wait(7) | |
2055 | for i = 1, 9 do | |
2056 | wait(.1) | |
2057 | gtrace.Transparency = gtrace.Transparency + .1 | |
2058 | end | |
2059 | gtrace:Destroy() | |
2060 | end) | |
2061 | gdisp() | |
2062 | end | |
2063 | ||
2064 | end | |
2065 | ||
2066 | ||
2067 | for i,v in pairs(FindNearestTorso(tors.CFrame.p,99))do | |
2068 | if v:FindFirstChild('Humanoid') then | |
2069 | v.Humanoid:TakeDamage(math.random(9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999,9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)) | |
2070 | v.Humanoid.PlatformStand = true | |
2071 | v:FindFirstChild("Torso").Velocity = head.CFrame.lookVector * 600 | |
2072 | end | |
2073 | end | |
2074 | ||
2075 | ||
2076 | function HeavenSmash() | |
2077 | ||
2078 | ||
2079 | if activu == true then | |
2080 | return | |
2081 | end | |
2082 | activu = true | |
2083 | human.WalkSpeed = 0 | |
2084 | so("http://www.roblox.com/asset/?id=169445572",head,1.5,1.5) | |
2085 | so("http://www.roblox.com/asset/?id=169380495",head,1.5,1.5) | |
2086 | for l = 1, 30 do | |
2087 | swait() | |
2088 | lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.5) * ang(rd(6), rd(0), rd(0)), 0.02 + l / 40) | |
2089 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(12), rd(0), rd(0)), 0.02 + l / 40) | |
2090 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-8), rd(-7), rd(-10)), 0.02 + l / 40) | |
2091 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
2092 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-8), rd(7), rd(10)), 0.02 + l / 40) | |
2093 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
2094 | lerpz(RH, "C0", RHC0 * cf(0.4, 0.5, 0) * ang(rd(0), rd(-6), rd(8)), 0.02 + l / 40) | |
2095 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
2096 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(3), rd(0), rd(42)), 0.02 + l / 40) | |
2097 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
2098 | end | |
2099 | ||
2100 | ||
2101 | resetlerp() | |
2102 | ||
2103 | BV = Instance.new("BodyVelocity", tors) | |
2104 | BV.maxForce = Vector3.new(0,200000,0) | |
2105 | BV.P = 100000 | |
2106 | BV.velocity = Vector3.new(0,150,0) | |
2107 | local rng = Instance.new("Part", chr) | |
2108 | rng.Anchored = true | |
2109 | rng.BrickColor = BrickColor.new("Institutional white") | |
2110 | rng.CanCollide = false | |
2111 | rng.FormFactor = 3 | |
2112 | rng.Name = "Ring" | |
2113 | rng.Size = Vector3.new(1, 1, 1) | |
2114 | rng.Transparency = 0.5 | |
2115 | rng.TopSurface = 0 | |
2116 | rng.BottomSurface = 0 | |
2117 | rng.Position = tors.Position - Vector3.new(0,2,0) | |
2118 | rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
2119 | local rngm = Instance.new("SpecialMesh", rng) | |
2120 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2121 | rngm.Scale = Vector3.new(10, 10, 20) | |
2122 | x = Instance.new("Sound",tors) | |
2123 | x.SoundId = "http://www.roblox.com/asset/?id=169445602" | |
2124 | x.Looped = false | |
2125 | x.Pitch = .7 | |
2126 | x.Volume = 30 | |
2127 | x:Play() | |
2128 | coroutine.wrap(function() | |
2129 | for i = 1, 60, 8 do | |
2130 | rngm.Scale = Vector3.new(10.20 + i*10.10, 10.20 + i*10.10, 10) | |
2131 | rng.Transparency = i/60 | |
2132 | wait() | |
2133 | end | |
2134 | wait() | |
2135 | rng:Destroy() | |
2136 | end)() | |
2137 | wait(2.6) | |
2138 | BV:Destroy() | |
2139 | tors.Anchored = true | |
2140 | wait(3.2) | |
2141 | tors.Anchored = false | |
2142 | BV = Instance.new("BodyVelocity", tors) | |
2143 | BV.maxForce = Vector3.new(0,-20000,0) | |
2144 | BV.P = 1000 | |
2145 | BV.velocity = Vector3.new(0,-150,0) | |
2146 | wait(1) | |
2147 | BV:Destroy() | |
2148 | wait(0.01) | |
2149 | ||
2150 | human.WalkSpeed = 0 | |
2151 | boom3:Play() | |
2152 | ||
2153 | Smash() | |
2154 | Smash2() | |
2155 | Smash3() | |
2156 | Ring() | |
2157 | wait(2) | |
2158 | human.WalkSpeed = 16 | |
2159 | activu = false | |
2160 | end | |
2161 | ||
2162 | ||
2163 | ||
2164 | sound = Instance.new("Sound", game.Players.LocalPlayer.Character["Right Leg"]) | |
2165 | sound.SoundId = "rbxassetid://220025776" | |
2166 | sound.Volume = 6 | |
2167 | ||
2168 | sound2 = Instance.new("Sound", game.Players.LocalPlayer.Character["Torso"]) | |
2169 | sound2.SoundId = "rbxassetid://386946017" | |
2170 | sound2.Volume = 6 | |
2171 | ||
2172 | sound3 = Instance.new("Sound", game.Players.LocalPlayer.Character) | |
2173 | sound3.SoundId = "rbxassetid://165969964" | |
2174 | sound3.Volume = 6 | |
2175 | ||
2176 | function rip() | |
2177 | activu = true | |
2178 | local detect = Instance.new("Part", game.Players.LocalPlayer.Character) | |
2179 | detect.Size = Vector3.new(1,1,1) | |
2180 | detect:BreakJoints() | |
2181 | detect.CanCollide = false | |
2182 | local weld = Instance.new("Weld", detect) | |
2183 | weld.Part0 = game.Players.LocalPlayer.Character["Torso"] | |
2184 | weld.Part1 = detect | |
2185 | weld.C0 = weld.C0 * CFrame.new(0,-1,0) | |
2186 | ||
2187 | ||
2188 | ||
2189 | local function attack(prt) | |
2190 | local humanoid = prt.Parent:findFirstChild("Humanoid") | |
2191 | if humanoid ~= nil then | |
2192 | local torso = prt.Parent:findFirstChild("Torso") | |
2193 | ||
2194 | ||
2195 | ||
2196 | ||
2197 | ||
2198 | ||
2199 | ||
2200 | function KABOOMZ3() | |
2201 | local effspwn = Instance.new("Part") | |
2202 | coroutine.resume(coroutine.create(function() | |
2203 | local sound1 = Instance.new("Sound") | |
2204 | sound1.SoundId = "rbxassetid://138137702" | |
2205 | sound1.MaxDistance = 300 | |
2206 | sound1.EmitterSize = 20 | |
2207 | sound1.Volume = 2.5 | |
2208 | sound1.Pitch = 0.65 | |
2209 | sound1.Parent = effspwn | |
2210 | local sound2 = Instance.new("Sound") | |
2211 | sound2.SoundId = "rbxassetid://157878578" | |
2212 | sound2.MaxDistance = 300 | |
2213 | sound2.EmitterSize = 20 | |
2214 | sound2.Volume = 1 | |
2215 | sound2.Pitch = 0.7 | |
2216 | sound2.Parent = effspwn | |
2217 | local sound3 = Instance.new("Sound") | |
2218 | sound3.SoundId = "rbxassetid://138250406" | |
2219 | sound2.MaxDistance = 400 | |
2220 | sound2.EmitterSize = 30 | |
2221 | sound2.Volume = 0.5 | |
2222 | sound2.Pitch = 0.5 | |
2223 | sound2.Parent = effspwn | |
2224 | sound2:Play() | |
2225 | wait() | |
2226 | sound1:Play() | |
2227 | sound3:Play() | |
2228 | end)) | |
2229 | local model = Instance.new("Model") | |
2230 | game.Debris:AddItem(model, 20) | |
2231 | model.Name = "smasheffects" | |
2232 | model.Parent = workspace | |
2233 | effspwn.Name = "spwnr" | |
2234 | effspwn.Size = Vector3.new(1, 1, 1) | |
2235 | effspwn.Anchored = true | |
2236 | effspwn.CanCollide = false | |
2237 | effspwn.Transparency = 1 | |
2238 | effspwn.CFrame = torso.CFrame * CFrame.Angles(math.rad(180), 0, 0) | |
2239 | effspwn.Parent = model | |
2240 | ||
2241 | ||
2242 | ||
2243 | ||
2244 | ||
2245 | Crater(head,60) | |
2246 | Crater(head,120) | |
2247 | ||
2248 | for i,v in pairs(FindNearestTorso(tors.CFrame.p,50))do | |
2249 | if v:FindFirstChild('Humanoid') then | |
2250 | v.Humanoid:TakeDamage(math.random(10000020,10000030)) | |
2251 | v.Humanoid.PlatformStand = true | |
2252 | v:FindFirstChild("Torso").Velocity = head.CFrame.lookVector * 200 | |
2253 | end | |
2254 | end | |
2255 | ||
2256 | coroutine.resume(coroutine.create(function() | |
2257 | local shok = Instance.new("Part") | |
2258 | shok.Name = "whoosh" | |
2259 | shok.BrickColor = BrickColor.new("Institutional white") | |
2260 | shok.CFrame = effspwn.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
2261 | shok.Size = Vector3.new(1, 1, 1) | |
2262 | shok.Anchored = true | |
2263 | shok.Material = "Neon" | |
2264 | shok.Transparency = 0.1 | |
2265 | shok.CanCollide = false | |
2266 | shok.Parent = model | |
2267 | game.Debris:AddItem(shok, 12) | |
2268 | local mesh = Instance.new("SpecialMesh") | |
2269 | mesh.MeshType = "FileMesh" | |
2270 | mesh.MeshId = "rbxassetid://437347603" | |
2271 | mesh.Scale = Vector3.new(0.8, 0.8, 0.3) | |
2272 | mesh.Parent = shok | |
2273 | ||
2274 | ||
2275 | ||
2276 | ||
2277 | ||
2278 | for e = 1, 8 do | |
2279 | wait() | |
2280 | mesh.Scale = mesh.Scale + Vector3.new(0.24, 0.24, 0.22) | |
2281 | shok.Transparency = shok.Transparency + 0.035 | |
2282 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -22), 0.4) | |
2283 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29)) | |
2284 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
2285 | ||
2286 | end | |
2287 | for e = 1, 16 do | |
2288 | wait() | |
2289 | mesh.Scale = mesh.Scale + Vector3.new(0.13, 0.13, 0.12) | |
2290 | shok.Transparency = shok.Transparency + 0.11 | |
2291 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -10), 0.4) | |
2292 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(15)) | |
2293 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
2294 | ||
2295 | end | |
2296 | end)) | |
2297 | coroutine.resume(coroutine.create(function() | |
2298 | local shok = Instance.new("Part") | |
2299 | shok.Name = "wring1" | |
2300 | shok.BrickColor = BrickColor.new("Institutional white") | |
2301 | shok.CFrame = effspwn.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
2302 | shok.Size = Vector3.new(1, 1, 1) | |
2303 | shok.Anchored = true | |
2304 | shok.Material = "Neon" | |
2305 | shok.Transparency = 0.25 | |
2306 | shok.CanCollide = false | |
2307 | shok.Parent = model | |
2308 | game.Debris:AddItem(shok, 12) | |
2309 | local mesh = Instance.new("SpecialMesh") | |
2310 | mesh.MeshType = "FileMesh" | |
2311 | mesh.MeshId = "rbxassetid://3270017" | |
2312 | mesh.Scale = Vector3.new(0.1, 0.1, 0.05) | |
2313 | mesh.Parent = shok | |
2314 | for e = 1, 30 do | |
2315 | wait() | |
2316 | mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 3) | |
2317 | shok.Transparency = shok.Transparency + 0.002 | |
2318 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
2319 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)) | |
2320 | end | |
2321 | for e = 1, 38 do | |
2322 | wait() | |
2323 | mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 0.1) | |
2324 | shok.Transparency = shok.Transparency + 0.002 | |
2325 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
2326 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)) | |
2327 | end | |
2328 | for e = 1, 24 do | |
2329 | wait() | |
2330 | mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 0.1) | |
2331 | shok.Transparency = shok.Transparency + 0.03 | |
2332 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
2333 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)) | |
2334 | end | |
2335 | end)) | |
2336 | coroutine.resume(coroutine.create(function() | |
2337 | local shok = Instance.new("Part") | |
2338 | shok.Name = "wring2" | |
2339 | shok.BrickColor = BrickColor.new("Institutional white") | |
2340 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 12, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
2341 | shok.Size = Vector3.new(1, 1, 1) | |
2342 | shok.Anchored = true | |
2343 | shok.Material = "Neon" | |
2344 | shok.Transparency = 0.25 | |
2345 | shok.CanCollide = false | |
2346 | shok.Parent = model | |
2347 | game.Debris:AddItem(shok, 12) | |
2348 | local mesh = Instance.new("SpecialMesh") | |
2349 | mesh.MeshType = "FileMesh" | |
2350 | mesh.MeshId = "rbxassetid://3270017" | |
2351 | mesh.Scale = Vector3.new(12, 12, 0.05) | |
2352 | mesh.Parent = shok | |
2353 | for e = 1, 30 do | |
2354 | wait() | |
2355 | mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 3) | |
2356 | shok.Transparency = shok.Transparency + 0.002 | |
2357 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
2358 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
2359 | end | |
2360 | for e = 1, 38 do | |
2361 | wait() | |
2362 | mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 0.1) | |
2363 | shok.Transparency = shok.Transparency + 0.002 | |
2364 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
2365 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
2366 | end | |
2367 | for e = 1, 24 do | |
2368 | wait() | |
2369 | mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 0.1) | |
2370 | shok.Transparency = shok.Transparency + 0.03 | |
2371 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
2372 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
2373 | end | |
2374 | end)) | |
2375 | coroutine.resume(coroutine.create(function() | |
2376 | local shok = Instance.new("Part") | |
2377 | shok.Name = "coil1" | |
2378 | shok.BrickColor = BrickColor.new("Institutional white") | |
2379 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 12, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
2380 | shok.Size = Vector3.new(1, 1, 1) | |
2381 | shok.Anchored = true | |
2382 | shok.Material = "Neon" | |
2383 | shok.Transparency = 0.25 | |
2384 | shok.CanCollide = false | |
2385 | shok.Parent = model | |
2386 | game.Debris:AddItem(shok, 12) | |
2387 | local mesh = Instance.new("SpecialMesh") | |
2388 | mesh.MeshType = "FileMesh" | |
2389 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
2390 | mesh.Scale = Vector3.new(12, 12, 12) | |
2391 | mesh.Parent = shok | |
2392 | for e = 1, 15 do | |
2393 | wait() | |
2394 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
2395 | shok.Transparency = shok.Transparency + 0.004 | |
2396 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
2397 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
2398 | end | |
2399 | for e = 1, 16 do | |
2400 | wait() | |
2401 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
2402 | shok.Transparency = shok.Transparency + 0.004 | |
2403 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
2404 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
2405 | end | |
2406 | for e = 1, 12 do | |
2407 | wait() | |
2408 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
2409 | shok.Transparency = shok.Transparency + 0.06 | |
2410 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
2411 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
2412 | end | |
2413 | end)) | |
2414 | coroutine.resume(coroutine.create(function() | |
2415 | local shok = Instance.new("Part") | |
2416 | shok.Name = "coil2" | |
2417 | shok.BrickColor = BrickColor.new("Institutional white") | |
2418 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
2419 | shok.Size = Vector3.new(1, 1, 1) | |
2420 | shok.Anchored = true | |
2421 | shok.Material = "Neon" | |
2422 | shok.Transparency = 0.25 | |
2423 | shok.CanCollide = false | |
2424 | shok.Parent = model | |
2425 | game.Debris:AddItem(shok, 12) | |
2426 | local mesh = Instance.new("SpecialMesh") | |
2427 | mesh.MeshType = "FileMesh" | |
2428 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
2429 | mesh.Scale = Vector3.new(6, 12, 6) | |
2430 | mesh.Parent = shok | |
2431 | for e = 1, 15 do | |
2432 | wait() | |
2433 | mesh.Scale = mesh.Scale + Vector3.new(1.1, 2.4, 1.1) | |
2434 | shok.Transparency = shok.Transparency + 0.005 | |
2435 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
2436 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)) | |
2437 | end | |
2438 | for e = 1, 16 do | |
2439 | wait() | |
2440 | mesh.Scale = mesh.Scale + Vector3.new(1.1, 2.4, 1.1) | |
2441 | shok.Transparency = shok.Transparency + 0.005 | |
2442 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
2443 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)) | |
2444 | end | |
2445 | for e = 1, 12 do | |
2446 | wait() | |
2447 | mesh.Scale = mesh.Scale + Vector3.new(1.1, 2.4, 1.1) | |
2448 | shok.Transparency = shok.Transparency + 0.09 | |
2449 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
2450 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)) | |
2451 | end | |
2452 | end)) | |
2453 | coroutine.resume(coroutine.create(function() | |
2454 | local shok = Instance.new("Part") | |
2455 | shok.Name = "shokwve" | |
2456 | shok.BrickColor = BrickColor.new("Institutional white") | |
2457 | shok.Position = effspwn.Position + Vector3.new(0, 5, 0) | |
2458 | shok.Size = Vector3.new(1, 1, 1) | |
2459 | shok.Anchored = true | |
2460 | shok.Material = "Neon" | |
2461 | shok.Transparency = 0.6 | |
2462 | shok.CanCollide = false | |
2463 | shok.Parent = model | |
2464 | game.Debris:AddItem(shok, 12) | |
2465 | local mesh = Instance.new("SpecialMesh") | |
2466 | mesh.MeshType = "FileMesh" | |
2467 | mesh.MeshId = "rbxassetid://489415447" | |
2468 | mesh.Scale = Vector3.new(1, 1, 1) | |
2469 | mesh.Parent = shok | |
2470 | for e = 1, 12 do | |
2471 | wait() | |
2472 | mesh.Scale = mesh.Scale + Vector3.new(2, 2, 2) | |
2473 | shok.Transparency = shok.Transparency + 0.002 | |
2474 | end | |
2475 | for e = 1, 32 do | |
2476 | wait() | |
2477 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 0.5, 0.5) | |
2478 | shok.Transparency = shok.Transparency + 0.002 | |
2479 | end | |
2480 | for e = 1, 24 do | |
2481 | wait() | |
2482 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 0.5, 0.5) | |
2483 | shok.Transparency = shok.Transparency + 0.03 | |
2484 | end | |
2485 | end)) | |
2486 | coroutine.resume(coroutine.create(function() | |
2487 | local shok = Instance.new("Part") | |
2488 | shok.Name = "shock2" | |
2489 | shok.BrickColor = BrickColor.new("Institutional white") | |
2490 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) | |
2491 | shok.Size = Vector3.new(1, 1, 1) | |
2492 | shok.Anchored = true | |
2493 | shok.Material = "Neon" | |
2494 | shok.Transparency = 0.35 | |
2495 | shok.CanCollide = false | |
2496 | shok.Parent = model | |
2497 | game.Debris:AddItem(shok, 12) | |
2498 | local mesh = Instance.new("SpecialMesh") | |
2499 | mesh.MeshType = "FileMesh" | |
2500 | mesh.MeshId = "rbxassetid://489415447" | |
2501 | mesh.Scale = Vector3.new(12, 12, 12) | |
2502 | mesh.Parent = shok | |
2503 | for e = 1, 15 do | |
2504 | wait() | |
2505 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
2506 | shok.Transparency = shok.Transparency + 0.004 | |
2507 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
2508 | end | |
2509 | for e = 1, 16 do | |
2510 | wait() | |
2511 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
2512 | shok.Transparency = shok.Transparency + 0.004 | |
2513 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
2514 | end | |
2515 | for e = 1, 12 do | |
2516 | wait() | |
2517 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
2518 | shok.Transparency = shok.Transparency + 0.06 | |
2519 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
2520 | end | |
2521 | end)) | |
2522 | coroutine.resume(coroutine.create(function() | |
2523 | local shok = Instance.new("Part") | |
2524 | shok.Name = "shock3" | |
2525 | shok.BrickColor = BrickColor.new("Institutional white") | |
2526 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) | |
2527 | shok.Size = Vector3.new(1, 1, 1) | |
2528 | shok.Anchored = true | |
2529 | shok.Material = "Neon" | |
2530 | shok.Transparency = 0.35 | |
2531 | shok.CanCollide = false | |
2532 | shok.Parent = model | |
2533 | game.Debris:AddItem(shok, 12) | |
2534 | local mesh = Instance.new("SpecialMesh") | |
2535 | mesh.MeshType = "FileMesh" | |
2536 | mesh.MeshId = "rbxassetid://489415447" | |
2537 | mesh.Scale = Vector3.new(12, 12, 12) | |
2538 | mesh.Parent = shok | |
2539 | for e = 1, 15 do | |
2540 | wait() | |
2541 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5) | |
2542 | shok.Transparency = shok.Transparency + 0.004 | |
2543 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
2544 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
2545 | end | |
2546 | for e = 1, 16 do | |
2547 | wait() | |
2548 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5) | |
2549 | shok.Transparency = shok.Transparency + 0.004 | |
2550 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
2551 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
2552 | end | |
2553 | for e = 1, 12 do | |
2554 | wait() | |
2555 | mesh.Scale = mesh.Scale + Vector3.new(0.5, -1, 0.5) | |
2556 | shok.Transparency = shok.Transparency + 0.06 | |
2557 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
2558 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
2559 | end | |
2560 | end)) | |
2561 | end | |
2562 | ||
2563 | ||
2564 | ||
2565 | if torso ~= nil then | |
2566 | game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0 | |
2567 | game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0 | |
2568 | for i = 1,5 do | |
2569 | wait() | |
2570 | game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 * CFrame.Angles(0,0,0.25) | |
2571 | game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 * CFrame.Angles(0,0,0.25) | |
2572 | game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(-0.25,0,0) | |
2573 | end | |
2574 | sound:Play() | |
2575 | local bodyVel = Instance.new("BodyPosition", torso) | |
2576 | bodyVel.Position = game.Players.LocalPlayer.Character.Torso.Position + Vector3.new(0,1000,0) | |
2577 | bodyVel.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
2578 | wait(2) | |
2579 | torso.Anchored = true | |
2580 | for i = 1,5 do | |
2581 | wait() | |
2582 | game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 * CFrame.Angles(0,0,-0.25) | |
2583 | game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 * CFrame.Angles(0,0,-0.25) | |
2584 | game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0.25,0,0) | |
2585 | end | |
2586 | for i = 1,5 do | |
2587 | wait() | |
2588 | game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 * CFrame.Angles(0,0,-0.08) | |
2589 | game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0.08,0,0) | |
2590 | end | |
2591 | wait(1) | |
2592 | local bodyvel = Instance.new("BodyPosition" , game.Players.LocalPlayer.Character.Torso) | |
2593 | bodyvel.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
2594 | bodyvel.Position = torso.Position | |
2595 | for i = 1,5 do | |
2596 | wait() | |
2597 | game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 * CFrame.Angles(0,0,0) | |
2598 | game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 * CFrame.Angles(0,0,0.08) | |
2599 | game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(-0.15,0,0) | |
2600 | end | |
2601 | wait(2) | |
2602 | bodyVel:destroy() | |
2603 | game.Players.LocalPlayer.Character.Torso.Anchored = true | |
2604 | torso.Anchored = false | |
2605 | humanoid.PlatformStand = true | |
2606 | local bodyVel = Instance.new("BodyPosition", torso) | |
2607 | bodyVel.Position = game.Players.LocalPlayer.Character.Torso.Position - Vector3.new(0,1000,0) | |
2608 | bodyVel.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
2609 | sound2:Play() | |
2610 | ||
2611 | wait(1.2) | |
2612 | game.Players.LocalPlayer.Character.Torso.Anchored = false | |
2613 | game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
2614 | game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
2615 | game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
2616 | game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
2617 | activu = false | |
2618 | wait(0.5) | |
2619 | bodyvel:destroy() | |
2620 | local ROW3 = function(out, trans, s, wt, t, ang, plus) | |
2621 | for i = 1, 360, 360/t do | |
2622 | local c = Instance.new("Part", game.Workspace) | |
2623 | c.FormFactor = 3 | |
2624 | c.TopSurface = 0 | |
2625 | c.BottomSurface = 0 | |
2626 | c.Size = s | |
2627 | c.Anchored = true | |
2628 | c.CanCollide = wt | |
2629 | c.Material=workspace.Base.Material | |
2630 | c.Transparency = trans | |
2631 | c.BrickColor = workspace.Base.BrickColor | |
2632 | c.CFrame = CFrame.new(torso.CFrame.x,0,torso.CFrame.z) * CFrame.Angles(0, math.rad(i + plus), 0) * CFrame.new(0, 0, out) * ang | |
2633 | c.Locked=true | |
2634 | game.Debris:AddItem(c,25) | |
2635 | end | |
2636 | end | |
2637 | ||
2638 | ||
2639 | ||
2640 | ||
2641 | sound3:Play() | |
2642 | ROW3(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) | |
2643 | game.Players.LocalPlayer.Character.Torso.Anchored = true | |
2644 | KABOOMZ3() | |
2645 | wait(0.1) | |
2646 | ||
2647 | game.Players.LocalPlayer.Character.Torso.Anchored = false | |
2648 | game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16 | |
2649 | game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50 | |
2650 | ||
2651 | ||
2652 | end | |
2653 | end | |
2654 | end | |
2655 | detect.Touched:connect(attack) | |
2656 | wait(0.1) | |
2657 | detect:destroy() | |
2658 | activu = false | |
2659 | end | |
2660 | ||
2661 | ||
2662 | ||
2663 | function hito(partoz, magn, dmg, debtim) | |
2664 | for _, guy in pairs(workspace:GetChildren()) do | |
2665 | 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 | |
2666 | do | |
2667 | local humz = guy:FindFirstChild("Humanoid") | |
2668 | local hed = guy:FindFirstChild("Head") | |
2669 | humz:TakeDamage(dmg) | |
2670 | local db = Instance.new("StringValue") | |
2671 | db.Name = "alabo" | |
2672 | db.Parent = hed | |
2673 | delay(debtim, function() | |
2674 | db:Destroy() | |
2675 | end) | |
2676 | end | |
2677 | end | |
2678 | end | |
2679 | end | |
2680 | function animo(yep) | |
2681 | if yep == true then | |
2682 | anim.Parent = human | |
2683 | chr.Animate.Disabled = false | |
2684 | elseif yep == false then | |
2685 | chr.Animate.Disabled = true | |
2686 | anim.Parent = nil | |
2687 | end | |
2688 | end | |
2689 | mouse.KeyDown:connect(function(key) | |
2690 | if key == "e" then | |
2691 | rsmash() | |
2692 | end | |
2693 | if key == "t" then | |
2694 | jum() | |
2695 | end | |
2696 | if key == "r" then | |
2697 | Tele() | |
2698 | end | |
2699 | if key == "q" then | |
2700 | Stom() | |
2701 | end | |
2702 | if key == "f" then | |
2703 | HeavenSmash() | |
2704 | end | |
2705 | if key == "h" then | |
2706 | rip() | |
2707 | end | |
2708 | end) |