SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient()then error("say h/ not hl/ ya dummy")end;print("get rekt");InternalData = {} | |
2 | do | |
3 | script.Parent = owner.Character | |
4 | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput" | |
5 | local function NewFakeEvent() | |
6 | local Bind = Instance.new("BindableEvent") | |
7 | local Fake;Fake = {Connections = {}, | |
8 | fakeEvent=true; | |
9 | Connect=function(self,Func) | |
10 | Bind.Event:connect(Func) | |
11 | self.Connections[Bind] = true | |
12 | return setmetatable({Connected = true},{ | |
13 | __index = function (self,Index) | |
14 | if Index:lower() == "disconnect" then | |
15 | return function() Fake.Connections[Bind] = false;self.Connected = false end | |
16 | end | |
17 | return Fake[Index] | |
18 | end; | |
19 | __tostring = function() return "Connection" end; | |
20 | }) | |
21 | end} | |
22 | Fake.connect = Fake.Connect;return Fake; | |
23 | end | |
24 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()} | |
25 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} | |
26 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) | |
27 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil | |
28 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
29 | local function TriggerEvent(self,Event,...) | |
30 | local Trigger = Mouse[Event] | |
31 | if Trigger and Trigger.fakeEvent and Trigger.Connections then | |
32 | for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end | |
33 | end | |
34 | end | |
35 | Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent | |
36 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
37 | if FiredBy.Name ~= owner.Name then return end | |
38 | if Input.MouseEvent then | |
39 | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit | |
40 | else | |
41 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
42 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end | |
43 | for _,Action in pairs(ContextActionService.Actions) do | |
44 | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end | |
45 | end | |
46 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
47 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
48 | end | |
49 | end) | |
50 | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService | |
51 | Event.Parent = NLS([[ | |
52 | local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse() | |
53 | local Input = function(Input,gameProcessedEvent) | |
54 | if gameProcessedEvent then return end | |
55 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) | |
56 | end | |
57 | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) | |
58 | local Hit,Target | |
59 | while wait(1/30) do | |
60 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
61 | Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) | |
62 | end | |
63 | end | |
64 | ]],owner.Character) | |
65 | end | |
66 | RealGame = game;game = setmetatable({},{ | |
67 | __index = function (self,Index) | |
68 | local Sandbox = function (Thing) | |
69 | if Thing:IsA("Player") then | |
70 | local RealPlayer = Thing | |
71 | return setmetatable({},{ | |
72 | __index = function (self,Index) | |
73 | local Type = type(RealPlayer[Index]) | |
74 | if Type == "function" then | |
75 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
76 | return function (self)return InternalData["Mouse"] end | |
77 | end | |
78 | return function (self,...)return RealPlayer[Index](RealPlayer,...) end | |
79 | end | |
80 | return RealPlayer[Index] | |
81 | end; | |
82 | __tostring = function(self) return RealPlayer.Name end | |
83 | }) | |
84 | end | |
85 | end | |
86 | if RealGame[Index] then | |
87 | local Type = type(RealGame[Index]) | |
88 | if Type == "function" then | |
89 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
90 | return function (self,Service) | |
91 | local FakeServices = { | |
92 | ["players"] = function() | |
93 | return setmetatable({},{ | |
94 | __index = function (self2,Index2) | |
95 | local RealService = RealGame:GetService(Service) | |
96 | local Type2 = type(Index2) | |
97 | if Type2 == "function" then | |
98 | return function (self,...) return RealService[Index2](RealService,...)end | |
99 | else | |
100 | if Index2:lower() == "localplayer" then return Sandbox(owner) end | |
101 | return RealService[Index2] | |
102 | end | |
103 | end; | |
104 | __tostring = function(self) return RealGame:GetService(Service).Name end | |
105 | }) | |
106 | end; | |
107 | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; | |
108 | ["userinputservice"] = function() return InternalData["UserInputService"] end; | |
109 | ["runservice"] = function() | |
110 | return setmetatable({},{ | |
111 | __index = function(self2,Index2) | |
112 | local RealService = RealGame:GetService(Service) | |
113 | local Type2 = type(Index2) | |
114 | if Type2 == "function" then | |
115 | return function (self,...) return RealService[Index2](RealService,...) end | |
116 | else | |
117 | local RunServices = { | |
118 | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end; | |
119 | ["renderstepped"] = function() return RealService["Stepped"] end | |
120 | } | |
121 | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end | |
122 | return RealService[Index2] | |
123 | end | |
124 | end | |
125 | }) | |
126 | end | |
127 | } | |
128 | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end | |
129 | return RealGame:GetService(Service) | |
130 | end | |
131 | end | |
132 | return function (self,...) return RealGame[Index](RealGame,...) end | |
133 | else | |
134 | if game:GetService(Index) then return game:GetService(Index) end | |
135 | return RealGame[Index] | |
136 | end | |
137 | end | |
138 | return nil | |
139 | end | |
140 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("running the script noob") | |
141 | ||
142 | --fixed by Poke | |
143 | --Edited by Poke_Seats | |
144 | plr = game.Players.LocalPlayer | |
145 | repeat | |
146 | wait(0.1) | |
147 | until plr.Character | |
148 | chr = plr.Character | |
149 | human = chr:FindFirstChild("Humanoid") | |
150 | mouse = plr:GetMouse() | |
151 | selected = false | |
152 | equipd = false | |
153 | tors = chr.Torso | |
154 | rarm = chr["Right Arm"] | |
155 | larm = chr["Left Arm"] | |
156 | rleg = chr["Right Leg"] | |
157 | lleg = chr["Left Leg"] | |
158 | hrp = chr.HumanoidRootPart | |
159 | head = chr.Head | |
160 | anim = human.Animator | |
161 | activu = false | |
162 | Heartbeat = Instance.new("BindableEvent") | |
163 | Heartbeat.Name = "Heartbeat" | |
164 | Heartbeat.Parent = script | |
165 | frame = 0.03333333333333333 | |
166 | tf = 0 | |
167 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
168 | tf = tf + s | |
169 | if tf >= frame then | |
170 | for i = 1, math.floor(tf / frame) do | |
171 | Heartbeat:Fire() | |
172 | end | |
173 | tf = tf - frame * math.floor(tf / frame) | |
174 | end | |
175 | end) | |
176 | function swait(num) | |
177 | if num == 0 or num == nil then | |
178 | Heartbeat.Event:wait() | |
179 | else | |
180 | for i = 1, num do | |
181 | Heartbeat.Event:wait() | |
182 | end | |
183 | end | |
184 | end | |
185 | tool = Instance.new("Tool") | |
186 | tool.CanBeDropped = false | |
187 | tool.RequiresHandle = false | |
188 | tool.Name = "fir" | |
189 | tool.Parent = plr.Backpack | |
190 | RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
191 | RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
192 | LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
193 | LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
194 | RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
195 | RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
196 | LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
197 | LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
198 | NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
199 | NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
200 | RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
201 | RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
202 | RS = tors:FindFirstChild("Right Shoulder") | |
203 | LS = tors:FindFirstChild("Left Shoulder") | |
204 | RH = tors:FindFirstChild("Right Hip") | |
205 | LH = tors:FindFirstChild("Left Hip") | |
206 | RJ = hrp:FindFirstChild("RootJoint") | |
207 | N = tors:FindFirstChild("Neck") | |
208 | cf = CFrame.new | |
209 | ang = CFrame.Angles | |
210 | rd = math.rad | |
211 | rd2 = math.random | |
212 | function nooutline(p) | |
213 | p.TopSurface, p.BottomSurface, p.LeftSurface, p.RightSurface, p.FrontSurface, p.BottomSurface = 10, 10, 10, 10, 10, 10 | |
214 | end | |
215 | function makepart(color, name, reflec, mater, parnt, cfram) | |
216 | local port = Instance.new("Part") | |
217 | port.BrickColor = BrickColor.new(color) | |
218 | port.Name = name | |
219 | nooutline(port) | |
220 | port.Reflectance = reflec | |
221 | port.Material = mater | |
222 | port.Anchored = false | |
223 | port.CanCollide = false | |
224 | port.Locked = true | |
225 | port.Size = Vector3.new(0.2, 0.2, 0.2) | |
226 | port.Parent = parnt | |
227 | return port | |
228 | end | |
229 | function makemesh(meshtype, scale, meshid, parent) | |
230 | local mes = Instance.new("SpecialMesh") | |
231 | mes.MeshType = meshtype | |
232 | mes.Scale = scale | |
233 | if meshtype == "FileMesh" then | |
234 | mes.MeshId = meshid | |
235 | end | |
236 | mes.Parent = parent | |
237 | return mes | |
238 | end | |
239 | function makeweld(parent, p0, p1, c0, c1) | |
240 | local wel = Instance.new("Weld") | |
241 | wel.Part0 = p0 | |
242 | wel.Part1 = p1 | |
243 | wel.C0 = c0 | |
244 | if c1 ~= nil then | |
245 | wel.C1 = c1 | |
246 | end | |
247 | wel.Parent = parent | |
248 | return wel | |
249 | end | |
250 | function smokz(prnt) | |
251 | s = Instance.new("Smoke") | |
252 | s.Color = Color3.new(1, 1, 1) | |
253 | s.Enabled = false | |
254 | s.Name = "smok" | |
255 | s.Opacity = 0.0 | |
256 | s.RiseVelocity = 0.0 | |
257 | s.Size = 0.0 | |
258 | s.Parent = prnt | |
259 | end | |
260 | function glow(tz, paz, smokinz, length) | |
261 | if tz.Parent:FindFirstChildOfClass("Humanoid") and paz.Transparency == 1 then | |
262 | do | |
263 | local s = Instance.new("Sound") | |
264 | s.SoundId = "rbxassetid://950954857" | |
265 | s.Volume = 0.25 | |
266 | s.Pitch = math.random(9, 11) / 10 | |
267 | s.Parent = paz | |
268 | s:Play() | |
269 | paz.Transparency = 0.7 | |
270 | if smokinz == true then | |
271 | paz.smok.Enabled = true | |
272 | end | |
273 | delay(length, function() | |
274 | paz.Transparency = 1 | |
275 | paz.smok.Enabled = false | |
276 | s:Destroy() | |
277 | end) | |
278 | end | |
279 | end | |
280 | end | |
281 | function makeglow() | |
282 | for _, p in pairs(chr:GetChildren()) do | |
283 | if p.ClassName == "Accessory" then | |
284 | do | |
285 | local h = p:FindFirstChildOfClass("Part") | |
286 | local nh = h:Clone() | |
287 | nh.Parent = nil | |
288 | nh.CFrame = h.CFrame | |
289 | nh.Transparency = 1 | |
290 | nh.Name = "Glow" | |
291 | nh.Material = "Neon" | |
292 | nh.BrickColor = BrickColor.new("Really red") | |
293 | nh.CustomPhysicalProperties = PhysicalProperties.new(0.2, 0.3, 0.5) | |
294 | nh.Parent = h | |
295 | makeweld(nh, nh, h, cf(0, 0, 0)) | |
296 | local m = nh:FindFirstChildOfClass("SpecialMesh") | |
297 | m.Scale = m.Scale + Vector3.new(0.06, 0.06, 0.06) | |
298 | m.TextureId = "" | |
299 | smokz(nh) | |
300 | nh.Touched:connect(function(po) | |
301 | glow(po, nh, true, 0.8) | |
302 | end) | |
303 | end | |
304 | elseif p.ClassName == "Part" and p ~= hrp then | |
305 | do | |
306 | local n = p:Clone() | |
307 | n.Parent = nil | |
308 | n.Transparency = 1 | |
309 | n.Material = "Neon" | |
310 | n.Name = "Glow" | |
311 | n.BrickColor = BrickColor.new("Really red") | |
312 | n.CFrame = p.CFrame | |
313 | n.CustomPhysicalProperties = PhysicalProperties.new(0.2, 0.3, 0.5) | |
314 | n.Parent = p | |
315 | makeweld(n, n, p, cf(0, 0, 0)) | |
316 | smokz(n) | |
317 | n.Touched:connect(function(po) | |
318 | glow(po, n, true, 0.8) | |
319 | end) | |
320 | if n:FindFirstChildOfClass("Decal") then | |
321 | n:FindFirstChildOfClass("Decal"):Destroy() | |
322 | end | |
323 | if p:FindFirstChildOfClass("SpecialMesh") then | |
324 | local c = p:FindFirstChildOfClass("SpecialMesh"):Clone() | |
325 | c.Parent = nil | |
326 | c.Scale = c.Scale + Vector3.new(0.05, 0.05, 0.05) | |
327 | c.Parent = n | |
328 | else | |
329 | local m = Instance.new("BlockMesh") | |
330 | m.Scale = Vector3.new(1.05, 1.025, 1.05) | |
331 | if p == tors then | |
332 | m.Scale = Vector3.new(1.05, 1.05, 1.05) | |
333 | end | |
334 | m.Parent = n | |
335 | end | |
336 | end | |
337 | end | |
338 | end | |
339 | end | |
340 | makeglow() | |
341 | function fglow(glopart, duration) | |
342 | for _ = 1, 4 do | |
343 | swait() | |
344 | glopart.Transparency = glopart.Transparency - 0.075 | |
345 | end | |
346 | delay(duration, function() | |
347 | for _ = 1, 4 do | |
348 | swait() | |
349 | glopart.Transparency = glopart.Transparency + 0.075 | |
350 | end | |
351 | end) | |
352 | end | |
353 | function lerpz(joint, prop, cfrmz, alp) | |
354 | joint[prop] = joint[prop]:lerp(cfrmz, alp) | |
355 | end | |
356 | function resetlerp() | |
357 | RJ.C0 = RJC0 | |
358 | RJ.C1 = RJC1 | |
359 | N.C0 = NC0 | |
360 | N.C1 = NC1 | |
361 | RS.C0 = RSC0 | |
362 | RS.C1 = RSC1 | |
363 | LS.C0 = LSC0 | |
364 | LS.C1 = LSC1 | |
365 | RH.C0 = RHC0 | |
366 | RH.C1 = RHC1 | |
367 | LH.C0 = LHC0 | |
368 | end | |
369 | ||
370 | ||
371 | ||
372 | ||
373 | ||
374 | ||
375 | ||
376 | ||
377 | ||
378 | ||
379 | ||
380 | function RFistDamage() | |
381 | ||
382 | end | |
383 | function rsmash() | |
384 | if activu == true or selected == false then | |
385 | return | |
386 | end | |
387 | coroutine.resume(coroutine.create(function() | |
388 | fglow(rarm.Glow, 3) | |
389 | end)) | |
390 | activu = true | |
391 | ||
392 | human.WalkSpeed = human.WalkSpeed - 13 | |
393 | animo(false) | |
394 | local Mus = Instance.new("Sound",workspace) | |
395 | Mus.SoundId = "rbxassetid://379557765" | |
396 | Mus.Pitch = 1 | |
397 | Mus.Volume = 90000 | |
398 | Mus.Looped = false | |
399 | wait(0.3) | |
400 | Mus:Play() | |
401 | local pe = Instance.new("ParticleEmitter") | |
402 | pe.Color = ColorSequence.new(Color3.new(127, 0, 0)) | |
403 | pe.LightEmission = 0.9 | |
404 | pe.Size = NumberSequence.new(0.5) | |
405 | pe.Texture = "rbxassetid://272050333" | |
406 | pe.Transparency = NumberSequence.new(0.1) | |
407 | pe.Lifetime = NumberRange.new(0.1) | |
408 | pe.Rate = 1 | |
409 | pe.RotSpeed = NumberRange.new(360) | |
410 | pe.Speed = NumberRange.new(3) | |
411 | pe.VelocitySpread = 360 | |
412 | pe.Parent = rarm.Glow | |
413 | local pe2 = Instance.new("ParticleEmitter") | |
414 | pe2.Color = ColorSequence.new(Color3.new(207, 207, 207)) | |
415 | pe2.LightEmission = 0.9 | |
416 | pe2.Size = NumberSequence.new(5) | |
417 | pe2.Texture = "rbxassetid://516107903" | |
418 | pe2.Transparency = NumberSequence.new(0.4) | |
419 | pe2.ZOffset = 2 | |
420 | pe2.Enabled = false | |
421 | pe2.LockedToPart = true | |
422 | pe2.Lifetime = NumberRange.new(0.07) | |
423 | pe2.Rate = 8 | |
424 | pe2.Rotation = NumberRange.new(0, 360) | |
425 | pe2.RotSpeed = NumberRange.new(0) | |
426 | pe2.Speed = NumberRange.new(0) | |
427 | pe2.VelocitySpread = 180 | |
428 | pe2.Parent = rarm.Glow | |
429 | for _ = 1, 45 do | |
430 | swait() | |
431 | lerpz(RJ, "C0", RJC0 * cf(0, 0.8, -0.2) * ang(rd(10), rd(0), rd(-70)), 0.2) | |
432 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(6), rd(2), rd(68)), 0.2) | |
433 | 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) | |
434 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
435 | lerpz(LS, "C0", LSC0 * cf(-0.15, -0.4, 0.5) * ang(rd(-10), rd(60), rd(-86)), 0.2) | |
436 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(80), rd(0)), 0.2) | |
437 | lerpz(RH, "C0", RHC0 * cf(0, 0.1, 0) * ang(rd(-6), rd(-29), rd(-2)), 0.2) | |
438 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
439 | lerpz(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-10)), 0.2) | |
440 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
441 | pe.Rate = pe.Rate + 25 | |
442 | end | |
443 | pe2.Enabled = true | |
444 | pe.Speed = NumberRange.new(10) | |
445 | for _ = 1, 30 do | |
446 | swait() | |
447 | lerpz(RJ, "C0", RJC0 * cf(0, 1.2, -0.2) * ang(rd(5), rd(6), rd(-109)), 0.2) | |
448 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-2), rd(-6), rd(96)), 0.2) | |
449 | 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) | |
450 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(60), rd(-46)), 0.2) | |
451 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(30), rd(0)), 0.2) | |
452 | lerpz(RH, "C0", RHC0 * cf(0, 0.1, 0) * ang(rd(-6), rd(-39), rd(-2)), 0.2) | |
453 | lerpz(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-10)), 0.2) | |
454 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(0)), 0.2) | |
455 | ||
456 | end | |
457 | for l = 1, 3 do | |
458 | swait() | |
459 | lerpz(RJ, "C0", RJC0 * cf(0.4, -1.6, -0.2) * ang(rd(5), rd(6), rd(60)), 0.3 + l / 4) | |
460 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(14), rd(-4), rd(-35)), 0.3 + l / 4) | |
461 | lerpz(RS, "C0", RSC0 * cf(0.3, -0.4, 0.55) * ang(rd(0), rd(-58), rd(95)), 0.3 + l / 4) | |
462 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(-80), rd(0)), 0.3 + l / 4) | |
463 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(60), rd(-66)), 0.3 + l / 4) | |
464 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(30), rd(0)), 0.3 + l / 4) | |
465 | lerpz(RH, "C0", RHC0 * cf(0, 0.1, 0) * ang(rd(-6), rd(-39), rd(-2)), 0.3 + l / 4) | |
466 | lerpz(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-10)), 0.3 + l / 4) | |
467 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(0)), 0.3 + l / 4) | |
468 | end | |
469 | pe:Destroy() | |
470 | pe2:Destroy() | |
471 | KABOOMZ() | |
472 | rarm.Glow.smok.Enabled = true | |
473 | for _ = 1, 8 do | |
474 | swait() | |
475 | lerpz(RJ, "C0", RJC0 * cf(1.5, -1.6, -0.7) * ang(rd(5), rd(18), rd(95)), 0.8) | |
476 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(14), rd(-10), rd(-15)), 0.8) | |
477 | lerpz(RS, "C0", RSC0 * cf(0.3, -0.4, 0.55) * ang(rd(0), rd(40), rd(65)), 0.8) | |
478 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(-80), rd(0)), 0.8) | |
479 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(60), rd(-86)), 0.8) | |
480 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(30), rd(0)), 0.8) | |
481 | lerpz(RH, "C0", RHC0 * cf(0, 0.7, 0) * ang(rd(-6), rd(-39), rd(24)), 0.8) | |
482 | lerpz(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-20)), 0.8) | |
483 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(0)), 0.8) | |
484 | end | |
485 | wait(1.5) | |
486 | animo(true) | |
487 | human.WalkSpeed = human.WalkSpeed + 13 | |
488 | for _ = 1, 24 do | |
489 | swait() | |
490 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
491 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
492 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
493 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
494 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
495 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
496 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
497 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
498 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
499 | end | |
500 | resetlerp() | |
501 | rarm.Glow.smok.Enabled = false | |
502 | activu = false | |
503 | end | |
504 | ||
505 | ||
506 | ||
507 | ||
508 | local debris=game:service"Debris" | |
509 | vt = Vector3.new | |
510 | bc = BrickColor.new | |
511 | ||
512 | ||
513 | ||
514 | ||
515 | ||
516 | ||
517 | ||
518 | ||
519 | ||
520 | ||
521 | ||
522 | ||
523 | function Ring() | |
524 | ||
525 | ||
526 | local effspwn = Instance.new("Part") | |
527 | local model = Instance.new("Model") | |
528 | game.Debris:AddItem(model, 20) | |
529 | model.Name = "smasheffects" | |
530 | model.Parent = workspace | |
531 | effspwn.Name = "spwnr" | |
532 | effspwn.Size = Vector3.new(1, 1, 1) | |
533 | effspwn.Anchored = true | |
534 | effspwn.CanCollide = false | |
535 | effspwn.Transparency = 1 | |
536 | effspwn.CFrame = hrp.CFrame * CFrame.Angles(math.rad(180), 0, 0) | |
537 | effspwn.Parent = model | |
538 | ||
539 | for i,v in pairs(FindNearestTorso(tors.CFrame.p,50))do | |
540 | if v:FindFirstChild('Humanoid') then | |
541 | v.Humanoid:TakeDamage(math.random(10000020,10000030)) | |
542 | v.Humanoid.PlatformStand = true | |
543 | v:FindFirstChild("Torso").Velocity = head.CFrame.lookVector * 200 | |
544 | end | |
545 | end | |
546 | coroutine.resume(coroutine.create(function() | |
547 | local shok = Instance.new("Part") | |
548 | shok.Name = "wring1" | |
549 | shok.BrickColor = BrickColor.new("Institutional white") | |
550 | shok.CFrame = effspwn.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
551 | shok.Size = Vector3.new(1, 1, 1) | |
552 | shok.Anchored = true | |
553 | shok.Material = "Neon" | |
554 | shok.Transparency = 0.25 | |
555 | shok.CanCollide = false | |
556 | shok.Parent = model | |
557 | game.Debris:AddItem(shok, 12) | |
558 | local mesh = Instance.new("SpecialMesh") | |
559 | mesh.MeshType = "FileMesh" | |
560 | mesh.MeshId = "rbxassetid://3270017" | |
561 | mesh.Scale = Vector3.new(0.1, 0.1, 0.05) | |
562 | mesh.Parent = shok | |
563 | for e = 1, 30 do | |
564 | wait() | |
565 | mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 3) | |
566 | shok.Transparency = shok.Transparency + 0.002 | |
567 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
568 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)) | |
569 | end | |
570 | for e = 1, 38 do | |
571 | wait() | |
572 | mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 0.1) | |
573 | shok.Transparency = shok.Transparency + 0.002 | |
574 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
575 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)) | |
576 | end | |
577 | for e = 1, 24 do | |
578 | wait() | |
579 | mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 0.1) | |
580 | shok.Transparency = shok.Transparency + 0.03 | |
581 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
582 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)) | |
583 | end | |
584 | end)) | |
585 | coroutine.resume(coroutine.create(function() | |
586 | local shok = Instance.new("Part") | |
587 | shok.Name = "wring2" | |
588 | shok.BrickColor = BrickColor.new("Institutional white") | |
589 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 12, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
590 | shok.Size = Vector3.new(1, 1, 1) | |
591 | shok.Anchored = true | |
592 | shok.Material = "Neon" | |
593 | shok.Transparency = 0.25 | |
594 | shok.CanCollide = false | |
595 | shok.Parent = model | |
596 | game.Debris:AddItem(shok, 12) | |
597 | local mesh = Instance.new("SpecialMesh") | |
598 | mesh.MeshType = "FileMesh" | |
599 | mesh.MeshId = "rbxassetid://3270017" | |
600 | mesh.Scale = Vector3.new(12, 12, 0.05) | |
601 | mesh.Parent = shok | |
602 | for e = 1, 30 do | |
603 | wait() | |
604 | mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 3) | |
605 | shok.Transparency = shok.Transparency + 0.002 | |
606 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
607 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
608 | end | |
609 | for e = 1, 38 do | |
610 | wait() | |
611 | mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 0.1) | |
612 | shok.Transparency = shok.Transparency + 0.002 | |
613 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
614 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
615 | end | |
616 | for e = 1, 24 do | |
617 | wait() | |
618 | mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 0.1) | |
619 | shok.Transparency = shok.Transparency + 0.03 | |
620 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
621 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
622 | end | |
623 | end)) | |
624 | ||
625 | coroutine.resume(coroutine.create(function() | |
626 | local shok = Instance.new("Part") | |
627 | shok.Name = "shokwve" | |
628 | shok.BrickColor = BrickColor.new("Institutional white") | |
629 | shok.Position = effspwn.Position + Vector3.new(0, 5, 0) | |
630 | shok.Size = Vector3.new(1, 1, 1) | |
631 | shok.Anchored = true | |
632 | shok.Material = "Neon" | |
633 | shok.Transparency = 0.6 | |
634 | shok.CanCollide = false | |
635 | shok.Parent = model | |
636 | game.Debris:AddItem(shok, 12) | |
637 | local mesh = Instance.new("SpecialMesh") | |
638 | mesh.MeshType = "FileMesh" | |
639 | mesh.MeshId = "rbxassetid://489415447" | |
640 | mesh.Scale = Vector3.new(1, 1, 1) | |
641 | mesh.Parent = shok | |
642 | for e = 1, 12 do | |
643 | wait() | |
644 | mesh.Scale = mesh.Scale + Vector3.new(2, 2, 2) | |
645 | shok.Transparency = shok.Transparency + 0.002 | |
646 | end | |
647 | for e = 1, 32 do | |
648 | wait() | |
649 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 0.5, 0.5) | |
650 | shok.Transparency = shok.Transparency + 0.002 | |
651 | end | |
652 | for e = 1, 24 do | |
653 | wait() | |
654 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 0.5, 0.5) | |
655 | shok.Transparency = shok.Transparency + 0.03 | |
656 | end | |
657 | end)) | |
658 | coroutine.resume(coroutine.create(function() | |
659 | local shok = Instance.new("Part") | |
660 | shok.Name = "shock2" | |
661 | shok.BrickColor = BrickColor.new("Institutional white") | |
662 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) | |
663 | shok.Size = Vector3.new(1, 1, 1) | |
664 | shok.Anchored = true | |
665 | shok.Material = "Neon" | |
666 | shok.Transparency = 0.35 | |
667 | shok.CanCollide = false | |
668 | shok.Parent = model | |
669 | game.Debris:AddItem(shok, 12) | |
670 | local mesh = Instance.new("SpecialMesh") | |
671 | mesh.MeshType = "FileMesh" | |
672 | mesh.MeshId = "rbxassetid://489415447" | |
673 | mesh.Scale = Vector3.new(12, 12, 12) | |
674 | mesh.Parent = shok | |
675 | for e = 1, 15 do | |
676 | wait() | |
677 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
678 | shok.Transparency = shok.Transparency + 0.004 | |
679 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
680 | end | |
681 | for e = 1, 16 do | |
682 | wait() | |
683 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
684 | shok.Transparency = shok.Transparency + 0.004 | |
685 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
686 | end | |
687 | for e = 1, 12 do | |
688 | wait() | |
689 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
690 | shok.Transparency = shok.Transparency + 0.06 | |
691 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
692 | end | |
693 | end)) | |
694 | coroutine.resume(coroutine.create(function() | |
695 | local shok = Instance.new("Part") | |
696 | shok.Name = "shock3" | |
697 | shok.BrickColor = BrickColor.new("Institutional white") | |
698 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) | |
699 | shok.Size = Vector3.new(1, 1, 1) | |
700 | shok.Anchored = true | |
701 | shok.Material = "Neon" | |
702 | shok.Transparency = 0.35 | |
703 | shok.CanCollide = false | |
704 | shok.Parent = model | |
705 | game.Debris:AddItem(shok, 12) | |
706 | local mesh = Instance.new("SpecialMesh") | |
707 | mesh.MeshType = "FileMesh" | |
708 | mesh.MeshId = "rbxassetid://489415447" | |
709 | mesh.Scale = Vector3.new(12, 12, 12) | |
710 | mesh.Parent = shok | |
711 | for e = 1, 15 do | |
712 | wait() | |
713 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5) | |
714 | shok.Transparency = shok.Transparency + 0.004 | |
715 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
716 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
717 | end | |
718 | for e = 1, 16 do | |
719 | wait() | |
720 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5) | |
721 | shok.Transparency = shok.Transparency + 0.004 | |
722 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
723 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
724 | end | |
725 | for e = 1, 12 do | |
726 | wait() | |
727 | mesh.Scale = mesh.Scale + Vector3.new(0.5, -1, 0.5) | |
728 | shok.Transparency = shok.Transparency + 0.06 | |
729 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
730 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
731 | end | |
732 | end)) | |
733 | ||
734 | end | |
735 | function Landing() | |
736 | ||
737 | ||
738 | ||
739 | ||
740 | ||
741 | ||
742 | ROW = function(out, trans, s, wt, t, ang, plus) | |
743 | for i = 1, 360, 360/t do | |
744 | local c = Instance.new("Part", game.Workspace) | |
745 | c.FormFactor = 3 | |
746 | c.TopSurface = 0 | |
747 | c.BottomSurface = 0 | |
748 | c.Size = s | |
749 | c.Anchored = true | |
750 | c.CanCollide = wt | |
751 | c.Material=workspace.Base.Material | |
752 | c.Transparency = trans | |
753 | c.BrickColor = workspace.Base.BrickColor | |
754 | 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 | |
755 | c.Locked=true | |
756 | game.Debris:AddItem(c,15) | |
757 | end | |
758 | end | |
759 | ||
760 | ||
761 | ||
762 | ||
763 | ||
764 | 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) | |
765 | Ring() | |
766 | ||
767 | ||
768 | ||
769 | ||
770 | ||
771 | end | |
772 | ||
773 | ||
774 | ||
775 | ||
776 | ||
777 | ||
778 | ||
779 | function newRay(start,face,range,wat) | |
780 | local rey=Ray.new(start.p,(face.p-start.p).Unit*range) | |
781 | hit,pos=game.Workspace:FindPartOnRayWithIgnoreList(rey,wat) | |
782 | return rey,hit,pos | |
783 | end | |
784 | ||
785 | ||
786 | ||
787 | ||
788 | function jum() | |
789 | if activu == true or selected == false then | |
790 | return | |
791 | end | |
792 | coroutine.resume(coroutine.create(function() | |
793 | fglow(rleg.Glow, 1) | |
794 | fglow(lleg.Glow, 1) | |
795 | end)) | |
796 | activu = true | |
797 | human.WalkSpeed = human.WalkSpeed - 13 | |
798 | local pe = Instance.new("ParticleEmitter") | |
799 | pe.Color = ColorSequence.new(Color3.new(127, 0, 0)) | |
800 | pe.LightEmission = 0.9 | |
801 | pe.Size = NumberSequence.new(0.5) | |
802 | pe.Texture = "rbxassetid://272050333" | |
803 | pe.Transparency = NumberSequence.new(0.1) | |
804 | pe.Lifetime = NumberRange.new(0.1) | |
805 | pe.Rate = 250 | |
806 | pe.RotSpeed = NumberRange.new(360) | |
807 | pe.Speed = NumberRange.new(3) | |
808 | pe.VelocitySpread = 360 | |
809 | pe.Parent = rleg.Glow | |
810 | local pea = pe:Clone() | |
811 | pea.Parent = lleg.Glow | |
812 | local pe2 = Instance.new("ParticleEmitter") | |
813 | pe2.Color = ColorSequence.new(Color3.new(207, 207, 207)) | |
814 | pe2.LightEmission = 0.9 | |
815 | pe2.Size = NumberSequence.new(5) | |
816 | pe2.Texture = "rbxassetid://516107903" | |
817 | pe2.Transparency = NumberSequence.new(0.4) | |
818 | pe2.ZOffset = 2 | |
819 | pe2.Enabled = true | |
820 | pe2.LockedToPart = true | |
821 | pe2.Lifetime = NumberRange.new(0.07) | |
822 | pe2.Rate = 8 | |
823 | pe2.Rotation = NumberRange.new(0, 360) | |
824 | pe2.RotSpeed = NumberRange.new(0) | |
825 | pe2.Speed = NumberRange.new(0) | |
826 | pe2.VelocitySpread = 180 | |
827 | pe2.Parent = lleg.Glow | |
828 | local pea2 = pe2:Clone() | |
829 | pea2.Parent = rleg.Glow | |
830 | for l = 1, 30 do | |
831 | swait() | |
832 | lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.5) * ang(rd(6), rd(0), rd(0)), 0.02 + l / 40) | |
833 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(12), rd(0), rd(0)), 0.02 + l / 40) | |
834 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-8), rd(-7), rd(-10)), 0.02 + l / 40) | |
835 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
836 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-8), rd(7), rd(10)), 0.02 + l / 40) | |
837 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
838 | lerpz(RH, "C0", RHC0 * cf(0.4, 0.5, 0) * ang(rd(0), rd(-6), rd(8)), 0.02 + l / 40) | |
839 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
840 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(3), rd(0), rd(42)), 0.02 + l / 40) | |
841 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
842 | end | |
843 | pe:Destroy() | |
844 | pe2:Destroy() | |
845 | pea:Destroy() | |
846 | pea2:Destroy() | |
847 | human.WalkSpeed = 50 | |
848 | BV = Instance.new("BodyVelocity", tors) | |
849 | BV.maxForce = Vector3.new(0,100000,0) | |
850 | BV.P = 100000 | |
851 | BV.velocity = Vector3.new(0,800,0) | |
852 | KABOOMZ2() | |
853 | coroutine.resume(coroutine.create(function() | |
854 | swait(3) | |
855 | BV:Destroy() | |
856 | end)) | |
857 | for _ = 1, 18 do | |
858 | swait() | |
859 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-3), rd(0), rd(0)), 0.6) | |
860 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-12), rd(0), rd(0)), 0.6) | |
861 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-9), rd(-9), rd(-15)), 0.6) | |
862 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.6) | |
863 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-9), rd(9), rd(15)), 0.6) | |
864 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.6) | |
865 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-6), rd(0), rd(-12)), 0.6) | |
866 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.6) | |
867 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-6), rd(0), rd(12)), 0.6) | |
868 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.6) | |
869 | end | |
870 | for _ = 1, 18 do | |
871 | swait() | |
872 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
873 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
874 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
875 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
876 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
877 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
878 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
879 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
880 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
881 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
882 | end | |
883 | resetlerp() | |
884 | local ry,ht,ps=nil,nil,nil | |
885 | while ht==nil do | |
886 | ry,ht,ps=newRay(hrp.CFrame*CFrame.new(0,-2,0),hrp.CFrame*CFrame.new(0,-3,0),4.1,{chr}) | |
887 | wait() | |
888 | end | |
889 | human.WalkSpeed = 0 | |
890 | Landing() | |
891 | z = Instance.new("Sound",tors) | |
892 | z.SoundId = "rbxassetid://142070127" | |
893 | z.Volume = 2 | |
894 | wait(.1) | |
895 | z:Play() | |
896 | ||
897 | for l = 1, 30 do | |
898 | swait() | |
899 | lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.5) * ang(rd(6), rd(0), rd(0)), 0.02 + l / 40) | |
900 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(12), rd(0), rd(0)), 0.02 + l / 40) | |
901 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-8), rd(-7), rd(-10)), 0.02 + l / 40) | |
902 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
903 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-8), rd(7), rd(10)), 0.02 + l / 40) | |
904 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
905 | lerpz(RH, "C0", RHC0 * cf(0.4, 0.5, 0) * ang(rd(0), rd(-6), rd(8)), 0.02 + l / 40) | |
906 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
907 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(3), rd(0), rd(42)), 0.02 + l / 40) | |
908 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
909 | end | |
910 | resetlerp() | |
911 | human.WalkSpeed = 16 | |
912 | ||
913 | activu = false | |
914 | end | |
915 | ||
916 | ||
917 | ||
918 | local acos = math.acos | |
919 | local sqrt = math.sqrt | |
920 | local Vec3 = Vector3.new | |
921 | local fromAxisAngle = CFrame.fromAxisAngle | |
922 | ||
923 | local function toAxisAngle(CFr) | |
924 | local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components() | |
925 | local Angle = math.acos((R00+R11+R22-1)/2) | |
926 | local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
927 | A = A == 0 and 0.00001 or A | |
928 | local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
929 | B = B == 0 and 0.00001 or B | |
930 | local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2 | |
931 | C = C == 0 and 0.00001 or C | |
932 | local x = (R21-R12)/sqrt(A) | |
933 | local y = (R02-R20)/sqrt(B) | |
934 | local z = (R10-R01)/sqrt(C) | |
935 | return Vec3(x,y,z),Angle | |
936 | end | |
937 | ||
938 | function ApplyTrig(Num,Func) | |
939 | local Min,Max = Func(0),Func(1) | |
940 | local i = Func(Num) | |
941 | return (i-Min)/(Max-Min) | |
942 | --[[if Func == "sin" then | |
943 | return (math.sin((1-Num)*math.pi)+1)/2 | |
944 | elseif Func == "cos" then | |
945 | return (math.cos((1-Num)*math.pi)+1)/2 | |
946 | end]] | |
947 | end | |
948 | ||
949 | function LerpCFrame(CFrame1,CFrame2,Num) | |
950 | local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2) | |
951 | return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num | |
952 | end | |
953 | ||
954 | function Crater(Torso,Radius) | |
955 | spawn(function() | |
956 | local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10) | |
957 | local Ignore = {} | |
958 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do | |
959 | if v.Character ~= nil then | |
960 | Ignore[#Ignore+1] = v.Character | |
961 | end | |
962 | end | |
963 | local Hit,Pos,SurfaceNorm = workspace:FindPartOnRayWithIgnoreList(Ray,Ignore) | |
964 | if Hit == nil then return end | |
965 | local Parts = {} | |
966 | for i = 1,360,10 do | |
967 | local P = Instance.new("Part",Torso.Parent) | |
968 | P.Anchored = true | |
969 | P.FormFactor = "Custom" | |
970 | P.BrickColor = Hit.BrickColor | |
971 | P.Material = Hit.Material | |
972 | P.TopSurface = "Smooth" | |
973 | P.BottomSurface = "Smooth" | |
974 | P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100) | |
975 | 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))) | |
976 | 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} | |
977 | if math.random(0,5) == 0 then -- rubble | |
978 | local P = Instance.new("Part",Torso.Parent) | |
979 | P.Anchored = true | |
980 | P.FormFactor = "Custom" | |
981 | P.BrickColor = Hit.BrickColor | |
982 | P.Material = Hit.Material | |
983 | P.TopSurface = "Smooth" | |
984 | P.BottomSurface = "Smooth" | |
985 | P.Size = Vector3.new(2,2,2)*(math.random(80,100)/100) | |
986 | 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))) | |
987 | 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} | |
988 | end | |
989 | end | |
990 | for i = 0,1,0.05 do | |
991 | for i2,v in pairs(Parts) do | |
992 | v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos)) | |
993 | end | |
994 | wait(0.02) | |
995 | end | |
996 | for i,v in pairs(Parts) do | |
997 | if v[1].Size.X > 2.1 then | |
998 | v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0) | |
999 | end | |
1000 | v[1].Anchored = false | |
1001 | end | |
1002 | for i = 0,1,0.05 do | |
1003 | for i2,v in pairs(Parts) do | |
1004 | v[1].Transparency = i | |
1005 | if i == 1 then | |
1006 | v[1]:Destroy() | |
1007 | elseif i >= 0.25 then | |
1008 | v[1].CanCollide = false | |
1009 | end | |
1010 | end | |
1011 | wait(0.02) | |
1012 | end | |
1013 | Parts = nil | |
1014 | end) | |
1015 | end | |
1016 | ||
1017 | ||
1018 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
1019 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
1020 | local List = {} | |
1021 | for i,v in pairs(workspace:GetChildren())do | |
1022 | if v:IsA("Model")then | |
1023 | if v:findFirstChild("Torso")then | |
1024 | if v ~= chr then | |
1025 | if(v.Torso.Position -Position).magnitude <= Distance then | |
1026 | table.insert(List,v) | |
1027 | end | |
1028 | end | |
1029 | end | |
1030 | end | |
1031 | end | |
1032 | return List | |
1033 | end | |
1034 | ||
1035 | function KABOOMZ() | |
1036 | local effspwn = Instance.new("Part") | |
1037 | coroutine.resume(coroutine.create(function() | |
1038 | local sound1 = Instance.new("Sound") | |
1039 | sound1.SoundId = "rbxassetid://138137702" | |
1040 | sound1.MaxDistance = 300 | |
1041 | sound1.EmitterSize = 20 | |
1042 | sound1.Volume = 5 | |
1043 | sound1.Pitch = 0.95 | |
1044 | sound1.Parent = effspwn | |
1045 | local sound2 = Instance.new("Sound") | |
1046 | sound2.SoundId = "rbxassetid://157878578" | |
1047 | sound2.MaxDistance = 300 | |
1048 | sound2.EmitterSize = 20 | |
1049 | sound2.Volume = 2 | |
1050 | sound2.Pitch = 0.9 | |
1051 | sound2.Parent = effspwn | |
1052 | local sound3 = Instance.new("Sound") | |
1053 | sound3.SoundId = "rbxassetid://138250406" | |
1054 | sound2.MaxDistance = 400 | |
1055 | sound2.EmitterSize = 30 | |
1056 | sound2.Volume = 1.5 | |
1057 | sound2.Pitch = 0.6 | |
1058 | sound2.Parent = effspwn | |
1059 | sound2:Play() | |
1060 | wait() | |
1061 | sound1:Play() | |
1062 | sound3:Play() | |
1063 | end)) | |
1064 | local model = Instance.new("Model") | |
1065 | game.Debris:AddItem(model, 20) | |
1066 | model.Name = "smasheffects" | |
1067 | model.Parent = workspace | |
1068 | effspwn.Name = "spwnr" | |
1069 | effspwn.Size = Vector3.new(1, 1, 1) | |
1070 | effspwn.Anchored = true | |
1071 | effspwn.CanCollide = false | |
1072 | effspwn.Transparency = 1 | |
1073 | effspwn.CFrame = rarm.CFrame * CFrame.new(0, -0.7, 0) | |
1074 | effspwn.Parent = model | |
1075 | ||
1076 | Crater(head,60) | |
1077 | ||
1078 | for i,v in pairs(FindNearestTorso(tors.CFrame.p,50))do | |
1079 | if v:FindFirstChild('Humanoid') then | |
1080 | v.Humanoid:TakeDamage(math.random(10000020,10000030)) | |
1081 | v.Humanoid.PlatformStand = true | |
1082 | v:FindFirstChild("Torso").Velocity = head.CFrame.lookVector * 200 | |
1083 | end | |
1084 | end | |
1085 | coroutine.resume(coroutine.create(function() | |
1086 | local shok = Instance.new("Part") | |
1087 | shok.Name = "whoosh" | |
1088 | shok.BrickColor = BrickColor.new("Institutional white") | |
1089 | shok.CFrame = effspwn.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
1090 | shok.Size = Vector3.new(1, 1, 1) | |
1091 | shok.Anchored = true | |
1092 | shok.Material = "Neon" | |
1093 | shok.Transparency = 0.1 | |
1094 | shok.CanCollide = false | |
1095 | shok.Parent = model | |
1096 | game.Debris:AddItem(shok, 12) | |
1097 | local mesh = Instance.new("SpecialMesh") | |
1098 | mesh.MeshType = "FileMesh" | |
1099 | mesh.MeshId = "rbxassetid://437347603" | |
1100 | mesh.Scale = Vector3.new(0.8, 0.8, 0.3) | |
1101 | mesh.Parent = shok | |
1102 | for e = 1, 8 do | |
1103 | wait() | |
1104 | mesh.Scale = mesh.Scale + Vector3.new(0.24, 0.24, 0.22) | |
1105 | shok.Transparency = shok.Transparency + 0.035 | |
1106 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -14), 0.4) | |
1107 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29)) | |
1108 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
1109 | end | |
1110 | for e = 1, 16 do | |
1111 | wait() | |
1112 | mesh.Scale = mesh.Scale + Vector3.new(0.13, 0.13, 0.12) | |
1113 | shok.Transparency = shok.Transparency + 0.11 | |
1114 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -5), 0.4) | |
1115 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(15)) | |
1116 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
1117 | end | |
1118 | end)) | |
1119 | coroutine.resume(coroutine.create(function() | |
1120 | local shok = Instance.new("Part") | |
1121 | shok.Name = "wring1" | |
1122 | shok.BrickColor = BrickColor.new("Institutional white") | |
1123 | shok.CFrame = effspwn.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
1124 | shok.Size = Vector3.new(1, 1, 1) | |
1125 | shok.Anchored = true | |
1126 | shok.Material = "Neon" | |
1127 | shok.Transparency = 0.25 | |
1128 | shok.CanCollide = false | |
1129 | shok.Parent = model | |
1130 | game.Debris:AddItem(shok, 12) | |
1131 | local mesh = Instance.new("SpecialMesh") | |
1132 | mesh.MeshType = "FileMesh" | |
1133 | mesh.MeshId = "rbxassetid://3270017" | |
1134 | mesh.Scale = Vector3.new(0.1, 0.1, 0.05) | |
1135 | mesh.Parent = shok | |
1136 | for e = 1, 30 do | |
1137 | wait() | |
1138 | mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 3) | |
1139 | shok.Transparency = shok.Transparency + 0.002 | |
1140 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
1141 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)) | |
1142 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
1143 | ||
1144 | end | |
1145 | for e = 1, 38 do | |
1146 | wait() | |
1147 | mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 0.1) | |
1148 | shok.Transparency = shok.Transparency + 0.002 | |
1149 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
1150 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)) | |
1151 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
1152 | ||
1153 | end | |
1154 | for e = 1, 24 do | |
1155 | wait() | |
1156 | mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 0.1) | |
1157 | shok.Transparency = shok.Transparency + 0.03 | |
1158 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
1159 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)) | |
1160 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
1161 | ||
1162 | end | |
1163 | end)) | |
1164 | coroutine.resume(coroutine.create(function() | |
1165 | local shok = Instance.new("Part") | |
1166 | shok.Name = "wring2" | |
1167 | shok.BrickColor = BrickColor.new("Institutional white") | |
1168 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 12, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
1169 | shok.Size = Vector3.new(1, 1, 1) | |
1170 | shok.Anchored = true | |
1171 | shok.Material = "Neon" | |
1172 | shok.Transparency = 0.25 | |
1173 | shok.CanCollide = false | |
1174 | shok.Parent = model | |
1175 | game.Debris:AddItem(shok, 12) | |
1176 | local mesh = Instance.new("SpecialMesh") | |
1177 | mesh.MeshType = "FileMesh" | |
1178 | mesh.MeshId = "rbxassetid://3270017" | |
1179 | mesh.Scale = Vector3.new(12, 12, 0.05) | |
1180 | mesh.Parent = shok | |
1181 | for e = 1, 30 do | |
1182 | wait() | |
1183 | mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 3) | |
1184 | shok.Transparency = shok.Transparency + 0.002 | |
1185 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
1186 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
1187 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
1188 | ||
1189 | end | |
1190 | for e = 1, 38 do | |
1191 | wait() | |
1192 | mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 0.1) | |
1193 | shok.Transparency = shok.Transparency + 0.002 | |
1194 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
1195 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
1196 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
1197 | ||
1198 | end | |
1199 | for e = 1, 24 do | |
1200 | wait() | |
1201 | mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 0.1) | |
1202 | shok.Transparency = shok.Transparency + 0.03 | |
1203 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
1204 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
1205 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
1206 | ||
1207 | end | |
1208 | end)) | |
1209 | coroutine.resume(coroutine.create(function() | |
1210 | local shok = Instance.new("Part") | |
1211 | shok.Name = "coil1" | |
1212 | shok.BrickColor = BrickColor.new("Institutional white") | |
1213 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 12, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
1214 | shok.Size = Vector3.new(1, 1, 1) | |
1215 | shok.Anchored = true | |
1216 | shok.Material = "Neon" | |
1217 | shok.Transparency = 0.25 | |
1218 | shok.CanCollide = false | |
1219 | shok.Parent = model | |
1220 | game.Debris:AddItem(shok, 12) | |
1221 | local mesh = Instance.new("SpecialMesh") | |
1222 | mesh.MeshType = "FileMesh" | |
1223 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
1224 | mesh.Scale = Vector3.new(12, 12, 12) | |
1225 | mesh.Parent = shok | |
1226 | for e = 1, 15 do | |
1227 | wait() | |
1228 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
1229 | shok.Transparency = shok.Transparency + 0.004 | |
1230 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
1231 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
1232 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
1233 | ||
1234 | end | |
1235 | for e = 1, 16 do | |
1236 | wait() | |
1237 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
1238 | shok.Transparency = shok.Transparency + 0.004 | |
1239 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
1240 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
1241 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
1242 | ||
1243 | end | |
1244 | for e = 1, 12 do | |
1245 | wait() | |
1246 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
1247 | shok.Transparency = shok.Transparency + 0.06 | |
1248 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
1249 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
1250 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
1251 | ||
1252 | end | |
1253 | end)) | |
1254 | coroutine.resume(coroutine.create(function() | |
1255 | local shok = Instance.new("Part") | |
1256 | shok.Name = "coil2" | |
1257 | shok.BrickColor = BrickColor.new("Institutional white") | |
1258 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
1259 | shok.Size = Vector3.new(1, 1, 1) | |
1260 | shok.Anchored = true | |
1261 | shok.Material = "Neon" | |
1262 | shok.Transparency = 0.25 | |
1263 | shok.CanCollide = false | |
1264 | shok.Parent = model | |
1265 | game.Debris:AddItem(shok, 12) | |
1266 | local mesh = Instance.new("SpecialMesh") | |
1267 | mesh.MeshType = "FileMesh" | |
1268 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
1269 | mesh.Scale = Vector3.new(6, 12, 6) | |
1270 | mesh.Parent = shok | |
1271 | for e = 1, 15 do | |
1272 | wait() | |
1273 | mesh.Scale = mesh.Scale + Vector3.new(1.1, 2.4, 1.1) | |
1274 | shok.Transparency = shok.Transparency + 0.005 | |
1275 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
1276 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)) | |
1277 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
1278 | ||
1279 | end | |
1280 | for e = 1, 16 do | |
1281 | wait() | |
1282 | mesh.Scale = mesh.Scale + Vector3.new(1.1, 2.4, 1.1) | |
1283 | shok.Transparency = shok.Transparency + 0.005 | |
1284 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
1285 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)) | |
1286 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
1287 | ||
1288 | end | |
1289 | for e = 1, 12 do | |
1290 | wait() | |
1291 | mesh.Scale = mesh.Scale + Vector3.new(1.1, 2.4, 1.1) | |
1292 | shok.Transparency = shok.Transparency + 0.09 | |
1293 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
1294 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)) | |
1295 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
1296 | ||
1297 | end | |
1298 | end)) | |
1299 | coroutine.resume(coroutine.create(function() | |
1300 | local shok = Instance.new("Part") | |
1301 | shok.Name = "shokwve" | |
1302 | shok.BrickColor = BrickColor.new("Institutional white") | |
1303 | shok.Position = effspwn.Position - Vector3.new(0, 0.8, 0) | |
1304 | shok.Size = Vector3.new(1, 1, 1) | |
1305 | shok.Anchored = true | |
1306 | shok.Material = "Neon" | |
1307 | shok.Transparency = 0.6 | |
1308 | shok.CanCollide = false | |
1309 | shok.Parent = model | |
1310 | game.Debris:AddItem(shok, 12) | |
1311 | local mesh = Instance.new("SpecialMesh") | |
1312 | mesh.MeshType = "FileMesh" | |
1313 | mesh.MeshId = "rbxassetid://489415447" | |
1314 | mesh.Scale = Vector3.new(1, 1, 1) | |
1315 | mesh.Parent = shok | |
1316 | for e = 1, 12 do | |
1317 | wait() | |
1318 | mesh.Scale = mesh.Scale + Vector3.new(2, 2, 2) | |
1319 | shok.Transparency = shok.Transparency + 0.002 | |
1320 | end | |
1321 | for e = 1, 32 do | |
1322 | wait() | |
1323 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 0.5, 0.5) | |
1324 | shok.Transparency = shok.Transparency + 0.002 | |
1325 | end | |
1326 | for e = 1, 24 do | |
1327 | wait() | |
1328 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 0.5, 0.5) | |
1329 | shok.Transparency = shok.Transparency + 0.03 | |
1330 | end | |
1331 | end)) | |
1332 | coroutine.resume(coroutine.create(function() | |
1333 | local shok = Instance.new("Part") | |
1334 | shok.Name = "shock2" | |
1335 | shok.BrickColor = BrickColor.new("Institutional white") | |
1336 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) | |
1337 | shok.Size = Vector3.new(1, 1, 1) | |
1338 | shok.Anchored = true | |
1339 | shok.Material = "Neon" | |
1340 | shok.Transparency = 0.35 | |
1341 | shok.CanCollide = false | |
1342 | shok.Parent = model | |
1343 | game.Debris:AddItem(shok, 12) | |
1344 | local mesh = Instance.new("SpecialMesh") | |
1345 | mesh.MeshType = "FileMesh" | |
1346 | mesh.MeshId = "rbxassetid://489415447" | |
1347 | mesh.Scale = Vector3.new(12, 12, 12) | |
1348 | mesh.Parent = shok | |
1349 | for e = 1, 15 do | |
1350 | wait() | |
1351 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
1352 | shok.Transparency = shok.Transparency + 0.004 | |
1353 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
1354 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
1355 | ||
1356 | end | |
1357 | for e = 1, 16 do | |
1358 | wait() | |
1359 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
1360 | shok.Transparency = shok.Transparency + 0.004 | |
1361 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
1362 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
1363 | ||
1364 | end | |
1365 | for e = 1, 12 do | |
1366 | wait() | |
1367 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
1368 | shok.Transparency = shok.Transparency + 0.06 | |
1369 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
1370 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
1371 | ||
1372 | end | |
1373 | end)) | |
1374 | coroutine.resume(coroutine.create(function() | |
1375 | local shok = Instance.new("Part") | |
1376 | shok.Name = "shock3" | |
1377 | shok.BrickColor = BrickColor.new("Institutional white") | |
1378 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) | |
1379 | shok.Size = Vector3.new(1, 1, 1) | |
1380 | shok.Anchored = true | |
1381 | shok.Material = "Neon" | |
1382 | shok.Transparency = 0.35 | |
1383 | shok.CanCollide = false | |
1384 | shok.Parent = model | |
1385 | game.Debris:AddItem(shok, 12) | |
1386 | local mesh = Instance.new("SpecialMesh") | |
1387 | mesh.MeshType = "FileMesh" | |
1388 | mesh.MeshId = "rbxassetid://489415447" | |
1389 | mesh.Scale = Vector3.new(12, 12, 12) | |
1390 | mesh.Parent = shok | |
1391 | for e = 1, 15 do | |
1392 | wait() | |
1393 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5) | |
1394 | shok.Transparency = shok.Transparency + 0.004 | |
1395 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
1396 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
1397 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
1398 | ||
1399 | end | |
1400 | for e = 1, 16 do | |
1401 | wait() | |
1402 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5) | |
1403 | shok.Transparency = shok.Transparency + 0.004 | |
1404 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
1405 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
1406 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
1407 | ||
1408 | end | |
1409 | for e = 1, 12 do | |
1410 | wait() | |
1411 | mesh.Scale = mesh.Scale + Vector3.new(0.5, -1, 0.5) | |
1412 | shok.Transparency = shok.Transparency + 0.06 | |
1413 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
1414 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
1415 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
1416 | ||
1417 | end | |
1418 | end)) | |
1419 | end | |
1420 | function KABOOMZ2() | |
1421 | local effspwn = Instance.new("Part") | |
1422 | coroutine.resume(coroutine.create(function() | |
1423 | local sound1 = Instance.new("Sound") | |
1424 | sound1.SoundId = "rbxassetid://138137702" | |
1425 | sound1.MaxDistance = 300 | |
1426 | sound1.EmitterSize = 20 | |
1427 | sound1.Volume = 2.5 | |
1428 | sound1.Pitch = 0.65 | |
1429 | sound1.Parent = effspwn | |
1430 | local sound2 = Instance.new("Sound") | |
1431 | sound2.SoundId = "rbxassetid://157878578" | |
1432 | sound2.MaxDistance = 300 | |
1433 | sound2.EmitterSize = 20 | |
1434 | sound2.Volume = 1 | |
1435 | sound2.Pitch = 0.7 | |
1436 | sound2.Parent = effspwn | |
1437 | local sound3 = Instance.new("Sound") | |
1438 | sound3.SoundId = "rbxassetid://138250406" | |
1439 | sound2.MaxDistance = 400 | |
1440 | sound2.EmitterSize = 30 | |
1441 | sound2.Volume = 0.5 | |
1442 | sound2.Pitch = 0.5 | |
1443 | sound2.Parent = effspwn | |
1444 | sound2:Play() | |
1445 | wait() | |
1446 | sound1:Play() | |
1447 | sound3:Play() | |
1448 | end)) | |
1449 | local model = Instance.new("Model") | |
1450 | game.Debris:AddItem(model, 20) | |
1451 | model.Name = "smasheffects" | |
1452 | model.Parent = workspace | |
1453 | effspwn.Name = "spwnr" | |
1454 | effspwn.Size = Vector3.new(1, 1, 1) | |
1455 | effspwn.Anchored = true | |
1456 | effspwn.CanCollide = false | |
1457 | effspwn.Transparency = 1 | |
1458 | effspwn.CFrame = hrp.CFrame * CFrame.Angles(math.rad(180), 0, 0) | |
1459 | effspwn.Parent = model | |
1460 | ||
1461 | ||
1462 | ||
1463 | ||
1464 | ||
1465 | Crater(head,60) | |
1466 | Crater(head,120) | |
1467 | ||
1468 | for i,v in pairs(FindNearestTorso(tors.CFrame.p,50))do | |
1469 | if v:FindFirstChild('Humanoid') then | |
1470 | v.Humanoid:TakeDamage(math.random(10000020,10000030)) | |
1471 | v.Humanoid.PlatformStand = true | |
1472 | v:FindFirstChild("Torso").Velocity = head.CFrame.lookVector * 200 | |
1473 | end | |
1474 | end | |
1475 | ||
1476 | coroutine.resume(coroutine.create(function() | |
1477 | local shok = Instance.new("Part") | |
1478 | shok.Name = "whoosh" | |
1479 | shok.BrickColor = BrickColor.new("Institutional white") | |
1480 | shok.CFrame = effspwn.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
1481 | shok.Size = Vector3.new(1, 1, 1) | |
1482 | shok.Anchored = true | |
1483 | shok.Material = "Neon" | |
1484 | shok.Transparency = 0.1 | |
1485 | shok.CanCollide = false | |
1486 | shok.Parent = model | |
1487 | game.Debris:AddItem(shok, 12) | |
1488 | local mesh = Instance.new("SpecialMesh") | |
1489 | mesh.MeshType = "FileMesh" | |
1490 | mesh.MeshId = "rbxassetid://437347603" | |
1491 | mesh.Scale = Vector3.new(0.8, 0.8, 0.3) | |
1492 | mesh.Parent = shok | |
1493 | ||
1494 | ||
1495 | ||
1496 | ||
1497 | ||
1498 | for e = 1, 8 do | |
1499 | wait() | |
1500 | mesh.Scale = mesh.Scale + Vector3.new(0.24, 0.24, 0.22) | |
1501 | shok.Transparency = shok.Transparency + 0.035 | |
1502 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -22), 0.4) | |
1503 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29)) | |
1504 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
1505 | ||
1506 | end | |
1507 | for e = 1, 16 do | |
1508 | wait() | |
1509 | mesh.Scale = mesh.Scale + Vector3.new(0.13, 0.13, 0.12) | |
1510 | shok.Transparency = shok.Transparency + 0.11 | |
1511 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -10), 0.4) | |
1512 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(15)) | |
1513 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
1514 | ||
1515 | end | |
1516 | end)) | |
1517 | coroutine.resume(coroutine.create(function() | |
1518 | local shok = Instance.new("Part") | |
1519 | shok.Name = "wring1" | |
1520 | shok.BrickColor = BrickColor.new("Institutional white") | |
1521 | shok.CFrame = effspwn.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
1522 | shok.Size = Vector3.new(1, 1, 1) | |
1523 | shok.Anchored = true | |
1524 | shok.Material = "Neon" | |
1525 | shok.Transparency = 0.25 | |
1526 | shok.CanCollide = false | |
1527 | shok.Parent = model | |
1528 | game.Debris:AddItem(shok, 12) | |
1529 | local mesh = Instance.new("SpecialMesh") | |
1530 | mesh.MeshType = "FileMesh" | |
1531 | mesh.MeshId = "rbxassetid://3270017" | |
1532 | mesh.Scale = Vector3.new(0.1, 0.1, 0.05) | |
1533 | mesh.Parent = shok | |
1534 | for e = 1, 30 do | |
1535 | wait() | |
1536 | mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 3) | |
1537 | shok.Transparency = shok.Transparency + 0.002 | |
1538 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
1539 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)) | |
1540 | end | |
1541 | for e = 1, 38 do | |
1542 | wait() | |
1543 | mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 0.1) | |
1544 | shok.Transparency = shok.Transparency + 0.002 | |
1545 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
1546 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)) | |
1547 | end | |
1548 | for e = 1, 24 do | |
1549 | wait() | |
1550 | mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 0.1) | |
1551 | shok.Transparency = shok.Transparency + 0.03 | |
1552 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
1553 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)) | |
1554 | end | |
1555 | end)) | |
1556 | coroutine.resume(coroutine.create(function() | |
1557 | local shok = Instance.new("Part") | |
1558 | shok.Name = "wring2" | |
1559 | shok.BrickColor = BrickColor.new("Institutional white") | |
1560 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 12, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
1561 | shok.Size = Vector3.new(1, 1, 1) | |
1562 | shok.Anchored = true | |
1563 | shok.Material = "Neon" | |
1564 | shok.Transparency = 0.25 | |
1565 | shok.CanCollide = false | |
1566 | shok.Parent = model | |
1567 | game.Debris:AddItem(shok, 12) | |
1568 | local mesh = Instance.new("SpecialMesh") | |
1569 | mesh.MeshType = "FileMesh" | |
1570 | mesh.MeshId = "rbxassetid://3270017" | |
1571 | mesh.Scale = Vector3.new(12, 12, 0.05) | |
1572 | mesh.Parent = shok | |
1573 | for e = 1, 30 do | |
1574 | wait() | |
1575 | mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 3) | |
1576 | shok.Transparency = shok.Transparency + 0.002 | |
1577 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
1578 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
1579 | end | |
1580 | for e = 1, 38 do | |
1581 | wait() | |
1582 | mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 0.1) | |
1583 | shok.Transparency = shok.Transparency + 0.002 | |
1584 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
1585 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
1586 | end | |
1587 | for e = 1, 24 do | |
1588 | wait() | |
1589 | mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 0.1) | |
1590 | shok.Transparency = shok.Transparency + 0.03 | |
1591 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
1592 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
1593 | end | |
1594 | end)) | |
1595 | coroutine.resume(coroutine.create(function() | |
1596 | local shok = Instance.new("Part") | |
1597 | shok.Name = "coil1" | |
1598 | shok.BrickColor = BrickColor.new("Institutional white") | |
1599 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 12, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
1600 | shok.Size = Vector3.new(1, 1, 1) | |
1601 | shok.Anchored = true | |
1602 | shok.Material = "Neon" | |
1603 | shok.Transparency = 0.25 | |
1604 | shok.CanCollide = false | |
1605 | shok.Parent = model | |
1606 | game.Debris:AddItem(shok, 12) | |
1607 | local mesh = Instance.new("SpecialMesh") | |
1608 | mesh.MeshType = "FileMesh" | |
1609 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
1610 | mesh.Scale = Vector3.new(12, 12, 12) | |
1611 | mesh.Parent = shok | |
1612 | for e = 1, 15 do | |
1613 | wait() | |
1614 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
1615 | shok.Transparency = shok.Transparency + 0.004 | |
1616 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
1617 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
1618 | end | |
1619 | for e = 1, 16 do | |
1620 | wait() | |
1621 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
1622 | shok.Transparency = shok.Transparency + 0.004 | |
1623 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
1624 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
1625 | end | |
1626 | for e = 1, 12 do | |
1627 | wait() | |
1628 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
1629 | shok.Transparency = shok.Transparency + 0.06 | |
1630 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
1631 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
1632 | end | |
1633 | end)) | |
1634 | coroutine.resume(coroutine.create(function() | |
1635 | local shok = Instance.new("Part") | |
1636 | shok.Name = "coil2" | |
1637 | shok.BrickColor = BrickColor.new("Institutional white") | |
1638 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
1639 | shok.Size = Vector3.new(1, 1, 1) | |
1640 | shok.Anchored = true | |
1641 | shok.Material = "Neon" | |
1642 | shok.Transparency = 0.25 | |
1643 | shok.CanCollide = false | |
1644 | shok.Parent = model | |
1645 | game.Debris:AddItem(shok, 12) | |
1646 | local mesh = Instance.new("SpecialMesh") | |
1647 | mesh.MeshType = "FileMesh" | |
1648 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
1649 | mesh.Scale = Vector3.new(6, 12, 6) | |
1650 | mesh.Parent = shok | |
1651 | for e = 1, 15 do | |
1652 | wait() | |
1653 | mesh.Scale = mesh.Scale + Vector3.new(1.1, 2.4, 1.1) | |
1654 | shok.Transparency = shok.Transparency + 0.005 | |
1655 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
1656 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)) | |
1657 | end | |
1658 | for e = 1, 16 do | |
1659 | wait() | |
1660 | mesh.Scale = mesh.Scale + Vector3.new(1.1, 2.4, 1.1) | |
1661 | shok.Transparency = shok.Transparency + 0.005 | |
1662 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
1663 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)) | |
1664 | end | |
1665 | for e = 1, 12 do | |
1666 | wait() | |
1667 | mesh.Scale = mesh.Scale + Vector3.new(1.1, 2.4, 1.1) | |
1668 | shok.Transparency = shok.Transparency + 0.09 | |
1669 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
1670 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)) | |
1671 | end | |
1672 | end)) | |
1673 | coroutine.resume(coroutine.create(function() | |
1674 | local shok = Instance.new("Part") | |
1675 | shok.Name = "shokwve" | |
1676 | shok.BrickColor = BrickColor.new("Institutional white") | |
1677 | shok.Position = effspwn.Position + Vector3.new(0, 5, 0) | |
1678 | shok.Size = Vector3.new(1, 1, 1) | |
1679 | shok.Anchored = true | |
1680 | shok.Material = "Neon" | |
1681 | shok.Transparency = 0.6 | |
1682 | shok.CanCollide = false | |
1683 | shok.Parent = model | |
1684 | game.Debris:AddItem(shok, 12) | |
1685 | local mesh = Instance.new("SpecialMesh") | |
1686 | mesh.MeshType = "FileMesh" | |
1687 | mesh.MeshId = "rbxassetid://489415447" | |
1688 | mesh.Scale = Vector3.new(1, 1, 1) | |
1689 | mesh.Parent = shok | |
1690 | for e = 1, 12 do | |
1691 | wait() | |
1692 | mesh.Scale = mesh.Scale + Vector3.new(2, 2, 2) | |
1693 | shok.Transparency = shok.Transparency + 0.002 | |
1694 | end | |
1695 | for e = 1, 32 do | |
1696 | wait() | |
1697 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 0.5, 0.5) | |
1698 | shok.Transparency = shok.Transparency + 0.002 | |
1699 | end | |
1700 | for e = 1, 24 do | |
1701 | wait() | |
1702 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 0.5, 0.5) | |
1703 | shok.Transparency = shok.Transparency + 0.03 | |
1704 | end | |
1705 | end)) | |
1706 | coroutine.resume(coroutine.create(function() | |
1707 | local shok = Instance.new("Part") | |
1708 | shok.Name = "shock2" | |
1709 | shok.BrickColor = BrickColor.new("Institutional white") | |
1710 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) | |
1711 | shok.Size = Vector3.new(1, 1, 1) | |
1712 | shok.Anchored = true | |
1713 | shok.Material = "Neon" | |
1714 | shok.Transparency = 0.35 | |
1715 | shok.CanCollide = false | |
1716 | shok.Parent = model | |
1717 | game.Debris:AddItem(shok, 12) | |
1718 | local mesh = Instance.new("SpecialMesh") | |
1719 | mesh.MeshType = "FileMesh" | |
1720 | mesh.MeshId = "rbxassetid://489415447" | |
1721 | mesh.Scale = Vector3.new(12, 12, 12) | |
1722 | mesh.Parent = shok | |
1723 | for e = 1, 15 do | |
1724 | wait() | |
1725 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
1726 | shok.Transparency = shok.Transparency + 0.004 | |
1727 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
1728 | end | |
1729 | for e = 1, 16 do | |
1730 | wait() | |
1731 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
1732 | shok.Transparency = shok.Transparency + 0.004 | |
1733 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
1734 | end | |
1735 | for e = 1, 12 do | |
1736 | wait() | |
1737 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
1738 | shok.Transparency = shok.Transparency + 0.06 | |
1739 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
1740 | end | |
1741 | end)) | |
1742 | coroutine.resume(coroutine.create(function() | |
1743 | local shok = Instance.new("Part") | |
1744 | shok.Name = "shock3" | |
1745 | shok.BrickColor = BrickColor.new("Institutional white") | |
1746 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) | |
1747 | shok.Size = Vector3.new(1, 1, 1) | |
1748 | shok.Anchored = true | |
1749 | shok.Material = "Neon" | |
1750 | shok.Transparency = 0.35 | |
1751 | shok.CanCollide = false | |
1752 | shok.Parent = model | |
1753 | game.Debris:AddItem(shok, 12) | |
1754 | local mesh = Instance.new("SpecialMesh") | |
1755 | mesh.MeshType = "FileMesh" | |
1756 | mesh.MeshId = "rbxassetid://489415447" | |
1757 | mesh.Scale = Vector3.new(12, 12, 12) | |
1758 | mesh.Parent = shok | |
1759 | for e = 1, 15 do | |
1760 | wait() | |
1761 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5) | |
1762 | shok.Transparency = shok.Transparency + 0.004 | |
1763 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
1764 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
1765 | end | |
1766 | for e = 1, 16 do | |
1767 | wait() | |
1768 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5) | |
1769 | shok.Transparency = shok.Transparency + 0.004 | |
1770 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
1771 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
1772 | end | |
1773 | for e = 1, 12 do | |
1774 | wait() | |
1775 | mesh.Scale = mesh.Scale + Vector3.new(0.5, -1, 0.5) | |
1776 | shok.Transparency = shok.Transparency + 0.06 | |
1777 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
1778 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
1779 | end | |
1780 | end)) | |
1781 | end | |
1782 | ||
1783 | ||
1784 | ||
1785 | tor = chr.Torso | |
1786 | Debounce = false | |
1787 | ||
1788 | Invis = function() | |
1789 | for i = 1,20 do | |
1790 | chr['Right Arm'].Transparency = chr['Right Arm'].Transparency + .05 | |
1791 | chr['Left Arm'].Transparency = chr['Left Arm'].Transparency + .05 | |
1792 | chr['Right Leg'].Transparency = chr['Right Leg'].Transparency + .05 | |
1793 | chr['Left Leg'].Transparency = chr['Left Leg'].Transparency + .05 | |
1794 | chr['Head'].Transparency = chr['Head'].Transparency + .05 | |
1795 | chr['Torso'].Transparency = chr['Torso'].Transparency + .05 | |
1796 | chr.Head['face'].Transparency = chr.Head['face'].Transparency + .05 | |
1797 | game["Run Service"].RenderStepped:wait() | |
1798 | end | |
1799 | end | |
1800 | ||
1801 | Vis = function() | |
1802 | for i = 1,20 do | |
1803 | chr['Right Arm'].Transparency = chr['Right Arm'].Transparency - .05 | |
1804 | chr['Left Arm'].Transparency = chr['Left Arm'].Transparency - .05 | |
1805 | chr['Right Leg'].Transparency = chr['Right Leg'].Transparency - .05 | |
1806 | chr['Left Leg'].Transparency = chr['Left Leg'].Transparency - .05 | |
1807 | chr['Head'].Transparency = chr['Head'].Transparency - .05 | |
1808 | chr['Torso'].Transparency = chr['Torso'].Transparency - .05 | |
1809 | chr.Head['face'].Transparency = chr.Head['face'].Transparency - .05 | |
1810 | game["Run Service"].RenderStepped:wait() | |
1811 | end | |
1812 | end | |
1813 | ||
1814 | Fade = function(Part) | |
1815 | if Part:IsA'Part' then | |
1816 | for i = 1,20 do | |
1817 | Part.Transparency = Part.Transparency + .05 | |
1818 | Part.Size = Part.Size - Vector3.new(.04,.04,.04) | |
1819 | Part.CFrame = Part.CFrame * CFrame.new(0,-.1,0) | |
1820 | wait() | |
1821 | end | |
1822 | Part:Destroy() | |
1823 | end | |
1824 | end | |
1825 | ||
1826 | Teleport = function(cx,cy,cz) | |
1827 | Debounce = true | |
1828 | tor.Anchored = true | |
1829 | Invis() | |
1830 | --MakeTpPart() | |
1831 | tor.Anchored = false | |
1832 | tor.CFrame = CFrame.new(cx,cy,cz) * CFrame.new(0,3,0) | |
1833 | tor.Anchored = true | |
1834 | Vis() | |
1835 | tor.Anchored = false | |
1836 | Debounce = false | |
1837 | end; | |
1838 | ||
1839 | ||
1840 | ||
1841 | tps = Instance.new("Sound",chr) | |
1842 | tps.SoundId = "http://www.roblox.com/asset/?id = 449860746" | |
1843 | tps.Volume = 30 | |
1844 | ||
1845 | ||
1846 | function Tele() | |
1847 | human.WalkSpeed = 0 | |
1848 | if activu == true or selected == false then | |
1849 | return | |
1850 | end | |
1851 | coroutine.resume(coroutine.create(function() | |
1852 | fglow(rleg.Glow, 1) | |
1853 | fglow(lleg.Glow, 1) | |
1854 | end)) | |
1855 | activu = true | |
1856 | local pe = Instance.new("ParticleEmitter") | |
1857 | pe.Color = ColorSequence.new(Color3.new(127, 0, 0)) | |
1858 | pe.LightEmission = 0.9 | |
1859 | pe.Size = NumberSequence.new(0.5) | |
1860 | pe.Texture = "rbxassetid://272050333" | |
1861 | pe.Transparency = NumberSequence.new(0.1) | |
1862 | pe.Lifetime = NumberRange.new(0.1) | |
1863 | pe.Rate = 250 | |
1864 | pe.RotSpeed = NumberRange.new(360) | |
1865 | pe.Speed = NumberRange.new(3) | |
1866 | pe.VelocitySpread = 360 | |
1867 | pe.Parent = rleg.Glow | |
1868 | local pea = pe:Clone() | |
1869 | pea.Parent = lleg.Glow | |
1870 | local pe2 = Instance.new("ParticleEmitter") | |
1871 | pe2.Color = ColorSequence.new(Color3.new(207, 207, 207)) | |
1872 | pe2.LightEmission = 0.9 | |
1873 | pe2.Size = NumberSequence.new(5) | |
1874 | pe2.Texture = "rbxassetid://516107903" | |
1875 | pe2.Transparency = NumberSequence.new(0.4) | |
1876 | pe2.ZOffset = 2 | |
1877 | pe2.Enabled = true | |
1878 | pe2.LockedToPart = true | |
1879 | pe2.Lifetime = NumberRange.new(0.07) | |
1880 | pe2.Rate = 8 | |
1881 | pe2.Rotation = NumberRange.new(0, 360) | |
1882 | pe2.RotSpeed = NumberRange.new(0) | |
1883 | pe2.Speed = NumberRange.new(0) | |
1884 | pe2.VelocitySpread = 180 | |
1885 | pe2.Parent = lleg.Glow | |
1886 | local pea2 = pe2:Clone() | |
1887 | pea2.Parent = rleg.Glow | |
1888 | ||
1889 | for l = 1, 30 do | |
1890 | swait() | |
1891 | lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.5) * ang(rd(6), rd(0), rd(0)), 0.02 + l / 40) | |
1892 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(12), rd(0), rd(0)), 0.02 + l / 40) | |
1893 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-8), rd(-7), rd(-10)), 0.02 + l / 40) | |
1894 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
1895 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-8), rd(7), rd(10)), 0.02 + l / 40) | |
1896 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
1897 | lerpz(RH, "C0", RHC0 * cf(0.4, 0.5, 0) * ang(rd(0), rd(-6), rd(8)), 0.02 + l / 40) | |
1898 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
1899 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(3), rd(0), rd(42)), 0.02 + l / 40) | |
1900 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
1901 | end | |
1902 | ||
1903 | pe:Destroy() | |
1904 | pe2:Destroy() | |
1905 | pea:Destroy() | |
1906 | pea2:Destroy() | |
1907 | local rng = Instance.new("Part", chr) | |
1908 | rng.Anchored = true | |
1909 | rng.BrickColor = BrickColor.new("Institutional white") | |
1910 | rng.CanCollide = false | |
1911 | rng.FormFactor = 3 | |
1912 | rng.Name = "Ring" | |
1913 | rng.Size = Vector3.new(1, 1, 1) | |
1914 | rng.Transparency = 0.5 | |
1915 | rng.TopSurface = 0 | |
1916 | rng.BottomSurface = 0 | |
1917 | rng.Position = tors.Position - Vector3.new(0,2,0) | |
1918 | rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
1919 | local rngm = Instance.new("SpecialMesh", rng) | |
1920 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1921 | rngm.Scale = Vector3.new(1, 1, 2) | |
1922 | coroutine.wrap(function() | |
1923 | for i = 1, 60, 8 do | |
1924 | rngm.Scale = Vector3.new(1.2 + i*1.1, 1.2 + i*1.1, 1) | |
1925 | rng.Transparency = i/60 | |
1926 | wait() | |
1927 | end | |
1928 | wait() | |
1929 | rng:Destroy() | |
1930 | end)() | |
1931 | tps:Play() | |
1932 | Teleport(mouse.Hit.X,mouse.Hit.Y,mouse.Hit.Z) | |
1933 | resetlerp() | |
1934 | human.WalkSpeed = 16 | |
1935 | activu = false | |
1936 | ||
1937 | end | |
1938 | ||
1939 | ||
1940 | ||
1941 | ||
1942 | boom3 = Instance.new("Sound",chr) | |
1943 | boom3.SoundId = "http://www.roblox.com/asset/?id = 450719019" | |
1944 | boom3.Volume = 50 | |
1945 | ||
1946 | ||
1947 | ||
1948 | ||
1949 | ||
1950 | gprop = {} | |
1951 | function materialhit(hit) | |
1952 | if hit.Parent ~= chr and hit.Parent.Parent ~= chr and hit.Name ~= "Trace" and hit.Parent:FindFirstChild("Humanoid") == nil then | |
1953 | gprop = {hit.BrickColor,hit.Material} | |
1954 | end | |
1955 | end | |
1956 | chr["Left Leg"].Touched:connect(materialhit) | |
1957 | chr["Right Leg"].Touched:connect(materialhit) | |
1958 | ||
1959 | ||
1960 | function KickBoom() | |
1961 | local effspwn = Instance.new("Part") | |
1962 | local model = Instance.new("Model") | |
1963 | game.Debris:AddItem(model, 20) | |
1964 | model.Name = "smasheffects" | |
1965 | model.Parent = chr | |
1966 | effspwn.Name = "spwnr" | |
1967 | effspwn.Size = Vector3.new(1, 1, 1) | |
1968 | effspwn.Anchored = true | |
1969 | effspwn.CanCollide = false | |
1970 | effspwn.Transparency = 1 | |
1971 | effspwn.CFrame = hrp.CFrame * CFrame.Angles(math.rad(180), 0, 0) | |
1972 | effspwn.Parent = model | |
1973 | ||
1974 | for i = 1, 15 do | |
1975 | local gtrace = Instance.new("Part",game.Workspace) | |
1976 | gtrace.BrickColor = gprop[1] | |
1977 | gtrace.Material = gprop[2] | |
1978 | gtrace.Size = Vector3.new(16,16,16) | |
1979 | gtrace.Anchored = true | |
1980 | gtrace.CanCollide = false | |
1981 | 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))) | |
1982 | local gdisp = coroutine.wrap(function() | |
1983 | wait(3) | |
1984 | for i = 1, 9 do | |
1985 | wait(.1) | |
1986 | gtrace.Transparency = gtrace.Transparency + .1 | |
1987 | end | |
1988 | gtrace:Destroy() | |
1989 | end) | |
1990 | gdisp() | |
1991 | end | |
1992 | ||
1993 | Crater(head,67) | |
1994 | ||
1995 | for i,v in pairs(FindNearestTorso(tors.CFrame.p,50))do | |
1996 | if v:FindFirstChild('Humanoid') then | |
1997 | v.Humanoid:TakeDamage(math.random(10000020,10000030)) | |
1998 | v.Humanoid.PlatformStand = true | |
1999 | v:FindFirstChild("Torso").Velocity = head.CFrame.lookVector * 250 | |
2000 | end | |
2001 | end | |
2002 | ||
2003 | coroutine.resume(coroutine.create(function() | |
2004 | local shok = Instance.new("Part") | |
2005 | shok.Name = "shock3" | |
2006 | shok.BrickColor = BrickColor.new("Institutional white") | |
2007 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) | |
2008 | shok.Size = Vector3.new(1, 1, 1) | |
2009 | shok.Anchored = true | |
2010 | shok.Material = "Neon" | |
2011 | shok.Transparency = 0.35 | |
2012 | shok.CanCollide = false | |
2013 | shok.Parent = model | |
2014 | game.Debris:AddItem(shok, 12) | |
2015 | local mesh = Instance.new("SpecialMesh") | |
2016 | mesh.MeshType = "FileMesh" | |
2017 | mesh.MeshId = "rbxassetid://489415447" | |
2018 | mesh.Scale = Vector3.new(19, 19, 19) | |
2019 | mesh.Parent = shok | |
2020 | for e = 1, 15 do | |
2021 | wait() | |
2022 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5) | |
2023 | shok.Transparency = shok.Transparency + 0.004 | |
2024 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
2025 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
2026 | end | |
2027 | for e = 1, 16 do | |
2028 | wait() | |
2029 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5) | |
2030 | shok.Transparency = shok.Transparency + 0.004 | |
2031 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
2032 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
2033 | end | |
2034 | for e = 1, 12 do | |
2035 | wait() | |
2036 | mesh.Scale = mesh.Scale + Vector3.new(0.5, -1, 0.5) | |
2037 | shok.Transparency = shok.Transparency + 0.06 | |
2038 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
2039 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
2040 | end | |
2041 | end)) | |
2042 | ||
2043 | ||
2044 | coroutine.resume(coroutine.create(function() | |
2045 | local shok = Instance.new("Part") | |
2046 | shok.Name = "shock3" | |
2047 | shok.BrickColor = BrickColor.new("Institutional white") | |
2048 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) | |
2049 | shok.Size = Vector3.new(1, 1, 1) | |
2050 | shok.Anchored = true | |
2051 | shok.Material = "Neon" | |
2052 | shok.Transparency = 0.35 | |
2053 | shok.CanCollide = false | |
2054 | shok.Parent = model | |
2055 | game.Debris:AddItem(shok, 12) | |
2056 | local mesh = Instance.new("SpecialMesh") | |
2057 | mesh.MeshType = "FileMesh" | |
2058 | mesh.MeshId = "rbxassetid://489415447" | |
2059 | mesh.Scale = Vector3.new(47, 47, 47) | |
2060 | mesh.Parent = shok | |
2061 | for e = 1, 15 do | |
2062 | wait() | |
2063 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5) | |
2064 | shok.Transparency = shok.Transparency + 0.004 | |
2065 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
2066 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
2067 | end | |
2068 | for e = 1, 16 do | |
2069 | wait() | |
2070 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5) | |
2071 | shok.Transparency = shok.Transparency + 0.004 | |
2072 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
2073 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
2074 | end | |
2075 | for e = 1, 12 do | |
2076 | wait() | |
2077 | mesh.Scale = mesh.Scale + Vector3.new(0.5, -1, 0.5) | |
2078 | shok.Transparency = shok.Transparency + 0.06 | |
2079 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
2080 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
2081 | end | |
2082 | end)) | |
2083 | ||
2084 | coroutine.resume(coroutine.create(function() | |
2085 | local shok = Instance.new("Part") | |
2086 | shok.Name = "shock3" | |
2087 | shok.BrickColor = BrickColor.new("Institutional white") | |
2088 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) | |
2089 | shok.Size = Vector3.new(1, 1, 1) | |
2090 | shok.Anchored = true | |
2091 | shok.Material = "Neon" | |
2092 | shok.Transparency = 0.35 | |
2093 | shok.CanCollide = false | |
2094 | shok.Parent = model | |
2095 | game.Debris:AddItem(shok, 12) | |
2096 | local mesh = Instance.new("SpecialMesh") | |
2097 | mesh.MeshType = "FileMesh" | |
2098 | mesh.MeshId = "rbxassetid://489415447" | |
2099 | mesh.Scale = Vector3.new(79, 79, 79) | |
2100 | mesh.Parent = shok | |
2101 | for e = 1, 15 do | |
2102 | wait() | |
2103 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5) | |
2104 | shok.Transparency = shok.Transparency + 0.004 | |
2105 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
2106 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
2107 | end | |
2108 | for e = 1, 16 do | |
2109 | wait() | |
2110 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5) | |
2111 | shok.Transparency = shok.Transparency + 0.004 | |
2112 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
2113 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
2114 | end | |
2115 | for e = 1, 12 do | |
2116 | wait() | |
2117 | mesh.Scale = mesh.Scale + Vector3.new(0.5, -1, 0.5) | |
2118 | shok.Transparency = shok.Transparency + 0.06 | |
2119 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
2120 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
2121 | end | |
2122 | end)) | |
2123 | end | |
2124 | ||
2125 | ||
2126 | ||
2127 | ||
2128 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
2129 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
2130 | end | |
2131 | cam = workspace.CurrentCamera | |
2132 | ||
2133 | ||
2134 | ||
2135 | ||
2136 | ||
2137 | ||
2138 | ||
2139 | ||
2140 | function NoOutline(Part) | |
2141 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
2142 | end | |
2143 | ||
2144 | ||
2145 | ||
2146 | ||
2147 | it = Instance.new | |
2148 | ||
2149 | ||
2150 | ||
2151 | ||
2152 | ||
2153 | ||
2154 | ||
2155 | ||
2156 | ||
2157 | ||
2158 | so = function(id,par,vol,pit) | |
2159 | coroutine.resume(coroutine.create(function() | |
2160 | local sou = Instance.new("Sound",par or workspace) | |
2161 | sou.Volume=vol | |
2162 | sou.Pitch=pit or 1 | |
2163 | sou.SoundId=id | |
2164 | swait() | |
2165 | sou:play() | |
2166 | game:GetService("Debris"):AddItem(sou,6) | |
2167 | end)) | |
2168 | end | |
2169 | ||
2170 | ||
2171 | function Stom() | |
2172 | ||
2173 | cf=CFrame.new | |
2174 | angles=CFrame.Angles | |
2175 | euler=CFrame.fromEulerAnglesXYZ | |
2176 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
2177 | RootPart=chr.HumanoidRootPart | |
2178 | RootJoint=RootPart.RootJoint | |
2179 | RootCF=euler(-1.57,0,3.14) | |
2180 | ||
2181 | function QuaternionFromCFrame(cf) | |
2182 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
2183 | local trace = m00 + m11 + m22 | |
2184 | if trace > 0 then | |
2185 | local s = math.sqrt(1 + trace) | |
2186 | local recip = 0.5/s | |
2187 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
2188 | else | |
2189 | local i = 0 | |
2190 | if m11 > m00 then | |
2191 | i = 1 | |
2192 | end | |
2193 | if m22 > (i == 0 and m00 or m11) then | |
2194 | i = 2 | |
2195 | end | |
2196 | if i == 0 then | |
2197 | local s = math.sqrt(m00-m11-m22+1) | |
2198 | local recip = 0.5/s | |
2199 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
2200 | elseif i == 1 then | |
2201 | local s = math.sqrt(m11-m22-m00+1) | |
2202 | local recip = 0.5/s | |
2203 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
2204 | elseif i == 2 then | |
2205 | local s = math.sqrt(m22-m00-m11+1) | |
2206 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
2207 | end | |
2208 | end | |
2209 | end | |
2210 | ||
2211 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
2212 | local xs, ys, zs = x + x, y + y, z + z | |
2213 | local wx, wy, wz = w*xs, w*ys, w*zs | |
2214 | local xx = x*xs | |
2215 | local xy = x*ys | |
2216 | local xz = x*zs | |
2217 | local yy = y*ys | |
2218 | local yz = y*zs | |
2219 | local zz = z*zs | |
2220 | 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)) | |
2221 | end | |
2222 | ||
2223 | function QuaternionSlerp(a, b, t) | |
2224 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
2225 | local startInterp, finishInterp; | |
2226 | if cosTheta >= 0.0001 then | |
2227 | if (1 - cosTheta) > 0.0001 then | |
2228 | local theta = math.acos(cosTheta) | |
2229 | local invSinTheta = 1/math.sin(theta) | |
2230 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
2231 | finishInterp = math.sin(t*theta)*invSinTheta | |
2232 | else | |
2233 | startInterp = 1-t | |
2234 | finishInterp = t | |
2235 | end | |
2236 | else | |
2237 | if (1+cosTheta) > 0.0001 then | |
2238 | local theta = math.acos(-cosTheta) | |
2239 | local invSinTheta = 1/math.sin(theta) | |
2240 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
2241 | finishInterp = math.sin(t*theta)*invSinTheta | |
2242 | else | |
2243 | startInterp = t-1 | |
2244 | finishInterp = t | |
2245 | end | |
2246 | end | |
2247 | 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 | |
2248 | end | |
2249 | ||
2250 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
2251 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
2252 | end | |
2253 | ||
2254 | function clerp(a,b,t) | |
2255 | local qa = {QuaternionFromCFrame(a)} | |
2256 | local qb = {QuaternionFromCFrame(b)} | |
2257 | local ax, ay, az = a.x, a.y, a.z | |
2258 | local bx, by, bz = b.x, b.y, b.z | |
2259 | local _t = 1-t | |
2260 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
2261 | end | |
2262 | ||
2263 | ||
2264 | ||
2265 | if activu == true or selected == false then | |
2266 | return | |
2267 | end | |
2268 | coroutine.resume(coroutine.create(function() | |
2269 | fglow(lleg.Glow, 6) | |
2270 | end)) | |
2271 | activu = true | |
2272 | local pe = Instance.new("ParticleEmitter") | |
2273 | pe.Color = ColorSequence.new(Color3.new(127, 0, 0)) | |
2274 | pe.LightEmission = 0.9 | |
2275 | pe.Size = NumberSequence.new(0.5) | |
2276 | pe.Texture = "rbxassetid://272050333" | |
2277 | pe.Transparency = NumberSequence.new(0.1) | |
2278 | pe.Lifetime = NumberRange.new(0.1) | |
2279 | pe.Rate = 250 | |
2280 | pe.RotSpeed = NumberRange.new(360) | |
2281 | pe.Speed = NumberRange.new(3) | |
2282 | pe.VelocitySpread = 360 | |
2283 | pe.Parent = lleg.Glow | |
2284 | local pea = pe:Clone() | |
2285 | pea.Parent = lleg.Glow | |
2286 | wait(0.5) | |
2287 | local pe2 = Instance.new("ParticleEmitter") | |
2288 | pe2.Color = ColorSequence.new(Color3.new(207, 207, 207)) | |
2289 | pe2.LightEmission = 0.9 | |
2290 | pe2.Size = NumberSequence.new(5) | |
2291 | pe2.Texture = "rbxassetid://516107903" | |
2292 | pe2.Transparency = NumberSequence.new(0.4) | |
2293 | pe2.ZOffset = 2 | |
2294 | pe2.Enabled = true | |
2295 | pe2.LockedToPart = true | |
2296 | pe2.Lifetime = NumberRange.new(0.07) | |
2297 | pe2.Rate = 8 | |
2298 | pe2.Rotation = NumberRange.new(0, 360) | |
2299 | pe2.RotSpeed = NumberRange.new(0) | |
2300 | pe2.Speed = NumberRange.new(0) | |
2301 | pe2.VelocitySpread = 180 | |
2302 | pe2.Parent = lleg.Glow | |
2303 | local pea2 = pe2:Clone() | |
2304 | pea2.Parent = lleg.Glow | |
2305 | local Mus = Instance.new("Sound",workspace) | |
2306 | Mus.SoundId = "rbxassetid://802518140" | |
2307 | Mus.Pitch = 1 | |
2308 | Mus.Volume = 90000 | |
2309 | Mus.Looped = false | |
2310 | wait(0.9) | |
2311 | Mus:Play() | |
2312 | ||
2313 | ||
2314 | ||
2315 | human.WalkSpeed = 0 | |
2316 | for i = 0,1,0.1 do | |
2317 | swait() | |
2318 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2319 | tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
2320 | RS.C0 = clerp(RS.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(20)), 0.3) | |
2321 | LS.C0 = clerp(LS.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
2322 | 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) | |
2323 | 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) | |
2324 | end | |
2325 | wait(1) | |
2326 | for i = 0,1,0.1 do | |
2327 | swait() | |
2328 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
2329 | tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
2330 | RS.C0 = clerp(RS.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)), 0.3) | |
2331 | LS.C0 = clerp(LS.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3) | |
2332 | 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) | |
2333 | 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) | |
2334 | end | |
2335 | KickBoom() | |
2336 | so("http://roblox.com/asset/?id=144699494",lleg,2,1.1) | |
2337 | so("http://roblox.com/asset/?id=321321137",lleg,1,1) | |
2338 | so("http://roblox.com/asset/?id=506384002",lleg,1,1) | |
2339 | so("http://roblox.com/asset/?id=157878578",lleg,25,1) | |
2340 | so("http://roblox.com/asset/?id=165970126",lleg,25,1) | |
2341 | ||
2342 | wait(3) | |
2343 | human.WalkSpeed = 16 | |
2344 | pe:Destroy() | |
2345 | pe2:Destroy() | |
2346 | pea:Destroy() | |
2347 | pea2:Destroy() | |
2348 | resetlerp() | |
2349 | activu = false | |
2350 | end | |
2351 | ||
2352 | ||
2353 | ||
2354 | ||
2355 | ||
2356 | function Smash() | |
2357 | for i = 1, 15 do | |
2358 | local gtrace = Instance.new("Part",game.Workspace) | |
2359 | gtrace.BrickColor = gprop[1] | |
2360 | gtrace.Material = gprop[2] | |
2361 | gtrace.Size = Vector3.new(19,19,19) | |
2362 | gtrace.Anchored = true | |
2363 | gtrace.CanCollide = false | |
2364 | 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))) | |
2365 | local gdisp = coroutine.wrap(function() | |
2366 | wait(7) | |
2367 | for i = 1, 9 do | |
2368 | wait(.1) | |
2369 | gtrace.Transparency = gtrace.Transparency + .1 | |
2370 | end | |
2371 | gtrace:Destroy() | |
2372 | end) | |
2373 | gdisp() | |
2374 | end | |
2375 | ||
2376 | Crater(head,67) | |
2377 | end | |
2378 | ||
2379 | function Smash2() | |
2380 | for i = 1, 15 do | |
2381 | local gtrace = Instance.new("Part",game.Workspace) | |
2382 | gtrace.BrickColor = gprop[1] | |
2383 | gtrace.Material = gprop[2] | |
2384 | gtrace.Size = Vector3.new(19,19,19) | |
2385 | gtrace.Anchored = true | |
2386 | gtrace.CanCollide = false | |
2387 | 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))) | |
2388 | local gdisp = coroutine.wrap(function() | |
2389 | wait(7) | |
2390 | for i = 1, 9 do | |
2391 | wait(.1) | |
2392 | gtrace.Transparency = gtrace.Transparency + .1 | |
2393 | end | |
2394 | gtrace:Destroy() | |
2395 | end) | |
2396 | gdisp() | |
2397 | end | |
2398 | ||
2399 | end | |
2400 | ||
2401 | function Smash3() | |
2402 | for i = 1, 15 do | |
2403 | local gtrace = Instance.new("Part",game.Workspace) | |
2404 | gtrace.BrickColor = gprop[1] | |
2405 | gtrace.Material = gprop[2] | |
2406 | gtrace.Size = Vector3.new(19,19,19) | |
2407 | gtrace.Anchored = true | |
2408 | gtrace.CanCollide = false | |
2409 | 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))) | |
2410 | local gdisp = coroutine.wrap(function() | |
2411 | wait(7) | |
2412 | for i = 1, 9 do | |
2413 | wait(.1) | |
2414 | gtrace.Transparency = gtrace.Transparency + .1 | |
2415 | end | |
2416 | gtrace:Destroy() | |
2417 | end) | |
2418 | gdisp() | |
2419 | end | |
2420 | ||
2421 | end | |
2422 | ||
2423 | ||
2424 | function Smash4() | |
2425 | for i = 1, 15 do | |
2426 | local gtrace = Instance.new("Part",game.Workspace) | |
2427 | gtrace.BrickColor = gprop[1] | |
2428 | gtrace.Material = gprop[2] | |
2429 | gtrace.Size = Vector3.new(19,19,19) | |
2430 | gtrace.Anchored = true | |
2431 | gtrace.CanCollide = false | |
2432 | 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))) | |
2433 | local gdisp = coroutine.wrap(function() | |
2434 | wait(7) | |
2435 | for i = 1, 9 do | |
2436 | wait(.1) | |
2437 | gtrace.Transparency = gtrace.Transparency + .1 | |
2438 | end | |
2439 | gtrace:Destroy() | |
2440 | end) | |
2441 | gdisp() | |
2442 | end | |
2443 | ||
2444 | end | |
2445 | ||
2446 | function Smash5() | |
2447 | for i = 1, 15 do | |
2448 | local gtrace = Instance.new("Part",game.Workspace) | |
2449 | gtrace.BrickColor = gprop[1] | |
2450 | gtrace.Material = gprop[2] | |
2451 | gtrace.Size = Vector3.new(19,19,19) | |
2452 | gtrace.Anchored = true | |
2453 | gtrace.CanCollide = false | |
2454 | 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))) | |
2455 | local gdisp = coroutine.wrap(function() | |
2456 | wait(7) | |
2457 | for i = 1, 9 do | |
2458 | wait(.1) | |
2459 | gtrace.Transparency = gtrace.Transparency + .1 | |
2460 | end | |
2461 | gtrace:Destroy() | |
2462 | end) | |
2463 | gdisp() | |
2464 | end | |
2465 | ||
2466 | end | |
2467 | ||
2468 | function Smash6() | |
2469 | for i = 1, 15 do | |
2470 | local gtrace = Instance.new("Part",game.Workspace) | |
2471 | gtrace.BrickColor = gprop[1] | |
2472 | gtrace.Material = gprop[2] | |
2473 | gtrace.Size = Vector3.new(19,19,19) | |
2474 | gtrace.Anchored = true | |
2475 | gtrace.CanCollide = false | |
2476 | 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))) | |
2477 | local gdisp = coroutine.wrap(function() | |
2478 | wait(7) | |
2479 | for i = 1, 9 do | |
2480 | wait(.1) | |
2481 | gtrace.Transparency = gtrace.Transparency + .1 | |
2482 | end | |
2483 | gtrace:Destroy() | |
2484 | end) | |
2485 | gdisp() | |
2486 | end | |
2487 | ||
2488 | end | |
2489 | ||
2490 | ||
2491 | for i,v in pairs(FindNearestTorso(tors.CFrame.p,99))do | |
2492 | if v:FindFirstChild('Humanoid') then | |
2493 | v.Humanoid:TakeDamage(math.random(9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999,9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)) | |
2494 | v.Humanoid.PlatformStand = true | |
2495 | v:FindFirstChild("Torso").Velocity = head.CFrame.lookVector * 600 | |
2496 | end | |
2497 | end | |
2498 | ||
2499 | ||
2500 | function HeavenSmash() | |
2501 | ||
2502 | ||
2503 | if activu == true or selected == false then | |
2504 | return | |
2505 | end | |
2506 | coroutine.resume(coroutine.create(function() | |
2507 | fglow(lleg.Glow, 19) | |
2508 | fglow(rleg.Glow, 19) | |
2509 | fglow(rarm.Glow, 19) | |
2510 | fglow(larm.Glow, 19) | |
2511 | fglow(head.Glow, 19) | |
2512 | fglow(tors.Glow, 19) | |
2513 | end)) | |
2514 | activu = true | |
2515 | local pe = Instance.new("ParticleEmitter") | |
2516 | pe.Color = ColorSequence.new(Color3.new(127, 0, 0)) | |
2517 | pe.LightEmission = 0.9 | |
2518 | pe.Size = NumberSequence.new(0.5) | |
2519 | pe.Texture = "rbxassetid://272050333" | |
2520 | pe.Transparency = NumberSequence.new(0.1) | |
2521 | pe.Lifetime = NumberRange.new(0.1) | |
2522 | pe.Rate = 250 | |
2523 | pe.RotSpeed = NumberRange.new(360) | |
2524 | pe.Speed = NumberRange.new(3) | |
2525 | pe.VelocitySpread = 360 | |
2526 | pe.Parent = lleg.Glow | |
2527 | local pea = pe:Clone() | |
2528 | pea.Parent = lleg.Glow | |
2529 | local pe2 = Instance.new("ParticleEmitter") | |
2530 | pe2.Color = ColorSequence.new(Color3.new(207, 207, 207)) | |
2531 | pe2.LightEmission = 0.9 | |
2532 | pe2.Size = NumberSequence.new(5) | |
2533 | pe2.Texture = "rbxassetid://516107903" | |
2534 | pe2.Transparency = NumberSequence.new(0.4) | |
2535 | pe2.ZOffset = 2 | |
2536 | pe2.Enabled = true | |
2537 | pe2.LockedToPart = true | |
2538 | pe2.Lifetime = NumberRange.new(0.07) | |
2539 | pe2.Rate = 8 | |
2540 | pe2.Rotation = NumberRange.new(0, 360) | |
2541 | pe2.RotSpeed = NumberRange.new(0) | |
2542 | pe2.Speed = NumberRange.new(0) | |
2543 | pe2.VelocitySpread = 180 | |
2544 | pe2.Parent = lleg.Glow | |
2545 | local pea2 = pe2:Clone() | |
2546 | pea2.Parent = lleg.Glow | |
2547 | ||
2548 | ||
2549 | ||
2550 | local pet = Instance.new("ParticleEmitter") | |
2551 | pet.Color = ColorSequence.new(Color3.new(127, 0, 0)) | |
2552 | pet.LightEmission = 0.9 | |
2553 | pet.Size = NumberSequence.new(0.5) | |
2554 | pet.Texture = "rbxassetid://272050333" | |
2555 | pet.Transparency = NumberSequence.new(0.1) | |
2556 | pet.Lifetime = NumberRange.new(0.1) | |
2557 | pet.Rate = 1 | |
2558 | pet.RotSpeed = NumberRange.new(360) | |
2559 | pet.Speed = NumberRange.new(3) | |
2560 | pet.VelocitySpread = 360 | |
2561 | pet.Parent = rarm.Glow | |
2562 | local pet2 = Instance.new("ParticleEmitter") | |
2563 | pet2.Color = ColorSequence.new(Color3.new(207, 207, 207)) | |
2564 | pet2.LightEmission = 0.9 | |
2565 | pet2.Size = NumberSequence.new(5) | |
2566 | pet2.Texture = "rbxassetid://516107903" | |
2567 | pet2.Transparency = NumberSequence.new(0.4) | |
2568 | pet2.ZOffset = 2 | |
2569 | pet2.Enabled = false | |
2570 | pet2.LockedToPart = true | |
2571 | pet2.Lifetime = NumberRange.new(0.07) | |
2572 | pet2.Rate = 8 | |
2573 | pet2.Rotation = NumberRange.new(0, 360) | |
2574 | pet2.RotSpeed = NumberRange.new(0) | |
2575 | pet2.Speed = NumberRange.new(0) | |
2576 | pet2.VelocitySpread = 180 | |
2577 | pet2.Parent = rarm.Glow | |
2578 | ||
2579 | ||
2580 | ||
2581 | local petl = Instance.new("ParticleEmitter") | |
2582 | petl.Color = ColorSequence.new(Color3.new(127, 0, 0)) | |
2583 | petl.LightEmission = 0.9 | |
2584 | petl.Size = NumberSequence.new(0.5) | |
2585 | petl.Texture = "rbxassetid://272050333" | |
2586 | petl.Transparency = NumberSequence.new(0.1) | |
2587 | petl.Lifetime = NumberRange.new(0.1) | |
2588 | petl.Rate = 1 | |
2589 | petl.RotSpeed = NumberRange.new(360) | |
2590 | petl.Speed = NumberRange.new(3) | |
2591 | petl.VelocitySpread = 360 | |
2592 | petl.Parent = larm.Glow | |
2593 | local petl2 = Instance.new("ParticleEmitter") | |
2594 | petl2.Color = ColorSequence.new(Color3.new(207, 207, 207)) | |
2595 | petl2.LightEmission = 0.9 | |
2596 | petl2.Size = NumberSequence.new(5) | |
2597 | petl2.Texture = "rbxassetid://516107903" | |
2598 | petl2.Transparency = NumberSequence.new(0.4) | |
2599 | petl2.ZOffset = 2 | |
2600 | petl2.Enabled = false | |
2601 | petl2.LockedToPart = true | |
2602 | petl2.Lifetime = NumberRange.new(0.07) | |
2603 | petl2.Rate = 8 | |
2604 | petl2.Rotation = NumberRange.new(0, 360) | |
2605 | petl2.RotSpeed = NumberRange.new(0) | |
2606 | petl2.Speed = NumberRange.new(0) | |
2607 | petl2.VelocitySpread = 180 | |
2608 | petl2.Parent = larm.Glow | |
2609 | ||
2610 | ||
2611 | local petl3 = Instance.new("ParticleEmitter") | |
2612 | petl3.Color = ColorSequence.new(Color3.new(127, 0, 0)) | |
2613 | petl3.LightEmission = 0.9 | |
2614 | petl3.Size = NumberSequence.new(0.5) | |
2615 | petl3.Texture = "rbxassetid://272050333" | |
2616 | petl3.Transparency = NumberSequence.new(0.1) | |
2617 | petl3.Lifetime = NumberRange.new(0.1) | |
2618 | petl3.Rate = 1 | |
2619 | petl3.RotSpeed = NumberRange.new(360) | |
2620 | petl3.Speed = NumberRange.new(3) | |
2621 | petl3.VelocitySpread = 360 | |
2622 | petl3.Parent = head.Glow | |
2623 | local petl23 = Instance.new("ParticleEmitter") | |
2624 | petl23.Color = ColorSequence.new(Color3.new(207, 207, 207)) | |
2625 | petl23.LightEmission = 0.9 | |
2626 | petl23.Size = NumberSequence.new(5) | |
2627 | petl23.Texture = "rbxassetid://516107903" | |
2628 | petl23.Transparency = NumberSequence.new(0.4) | |
2629 | petl23.ZOffset = 2 | |
2630 | petl23.Enabled = false | |
2631 | petl23.LockedToPart = true | |
2632 | petl23.Lifetime = NumberRange.new(0.07) | |
2633 | petl23.Rate = 8 | |
2634 | petl23.Rotation = NumberRange.new(0, 360) | |
2635 | petl23.RotSpeed = NumberRange.new(0) | |
2636 | petl23.Speed = NumberRange.new(0) | |
2637 | petl23.VelocitySpread = 180 | |
2638 | petl23.Parent = head.Glow | |
2639 | ||
2640 | ||
2641 | ||
2642 | local petl34 = Instance.new("ParticleEmitter") | |
2643 | petl34.Color = ColorSequence.new(Color3.new(127, 0, 0)) | |
2644 | petl34.LightEmission = 0.9 | |
2645 | petl34.Size = NumberSequence.new(0.5) | |
2646 | petl34.Texture = "rbxassetid://272050333" | |
2647 | petl34.Transparency = NumberSequence.new(0.1) | |
2648 | petl34.Lifetime = NumberRange.new(0.1) | |
2649 | petl34.Rate = 1 | |
2650 | petl34.RotSpeed = NumberRange.new(360) | |
2651 | petl34.Speed = NumberRange.new(3) | |
2652 | petl34.VelocitySpread = 360 | |
2653 | petl34.Parent = rleg.Glow | |
2654 | local petl234 = Instance.new("ParticleEmitter") | |
2655 | petl234.Color = ColorSequence.new(Color3.new(207, 207, 207)) | |
2656 | petl234.LightEmission = 0.9 | |
2657 | petl234.Size = NumberSequence.new(5) | |
2658 | petl234.Texture = "rbxassetid://516107903" | |
2659 | petl234.Transparency = NumberSequence.new(0.4) | |
2660 | petl234.ZOffset = 2 | |
2661 | petl234.Enabled = false | |
2662 | petl234.LockedToPart = true | |
2663 | petl234.Rate = 8 | |
2664 | petl234.Rotation = NumberRange.new(0, 360) | |
2665 | petl234.RotSpeed = NumberRange.new(0) | |
2666 | petl234.Speed = NumberRange.new(0) | |
2667 | petl234.VelocitySpread = 180 | |
2668 | petl234.Parent = rleg.Glow | |
2669 | ||
2670 | ||
2671 | local petl345 = Instance.new("ParticleEmitter") | |
2672 | petl345.Color = ColorSequence.new(Color3.new(127, 0, 0)) | |
2673 | petl345.LightEmission = 0.9 | |
2674 | petl345.Size = NumberSequence.new(0.5) | |
2675 | petl345.Texture = "rbxassetid://272050333" | |
2676 | petl345.Transparency = NumberSequence.new(0.1) | |
2677 | petl345.Lifetime = NumberRange.new(0.1) | |
2678 | petl345.Rate = 1 | |
2679 | petl345.RotSpeed = NumberRange.new(360) | |
2680 | petl345.Speed = NumberRange.new(3) | |
2681 | petl345.VelocitySpread = 360 | |
2682 | petl345.Parent = tors.Glow | |
2683 | local petl2345 = Instance.new("ParticleEmitter") | |
2684 | petl2345.Color = ColorSequence.new(Color3.new(207, 207, 207)) | |
2685 | petl2345.LightEmission = 0.9 | |
2686 | petl2345.Size = NumberSequence.new(5) | |
2687 | petl2345.Texture = "rbxassetid://516107903" | |
2688 | petl2345.Transparency = NumberSequence.new(0.4) | |
2689 | petl2345.ZOffset = 2 | |
2690 | petl2345.Enabled = false | |
2691 | petl2345.LockedToPart = true | |
2692 | petl2345.Rate = 8 | |
2693 | petl2345.Rotation = NumberRange.new(0, 360) | |
2694 | petl2345.RotSpeed = NumberRange.new(0) | |
2695 | petl2345.Speed = NumberRange.new(0) | |
2696 | petl2345.VelocitySpread = 180 | |
2697 | petl2345.Parent = tors.Glow | |
2698 | human.WalkSpeed = 0 | |
2699 | so("http://www.roblox.com/asset/?id=169445572",head,1.5,1.5) | |
2700 | so("http://www.roblox.com/asset/?id=169380495",head,1.5,1.5) | |
2701 | for l = 1, 30 do | |
2702 | swait() | |
2703 | lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.5) * ang(rd(6), rd(0), rd(0)), 0.02 + l / 40) | |
2704 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(12), rd(0), rd(0)), 0.02 + l / 40) | |
2705 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-8), rd(-7), rd(-10)), 0.02 + l / 40) | |
2706 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
2707 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-8), rd(7), rd(10)), 0.02 + l / 40) | |
2708 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
2709 | lerpz(RH, "C0", RHC0 * cf(0.4, 0.5, 0) * ang(rd(0), rd(-6), rd(8)), 0.02 + l / 40) | |
2710 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
2711 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(3), rd(0), rd(42)), 0.02 + l / 40) | |
2712 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40) | |
2713 | end | |
2714 | ||
2715 | ||
2716 | resetlerp() | |
2717 | ||
2718 | BV = Instance.new("BodyVelocity", tors) | |
2719 | BV.maxForce = Vector3.new(0,200000,0) | |
2720 | BV.P = 100000 | |
2721 | BV.velocity = Vector3.new(0,150,0) | |
2722 | local rng = Instance.new("Part", chr) | |
2723 | rng.Anchored = true | |
2724 | rng.BrickColor = BrickColor.new("Institutional white") | |
2725 | rng.CanCollide = false | |
2726 | rng.FormFactor = 3 | |
2727 | rng.Name = "Ring" | |
2728 | rng.Size = Vector3.new(1, 1, 1) | |
2729 | rng.Transparency = 0.5 | |
2730 | rng.TopSurface = 0 | |
2731 | rng.BottomSurface = 0 | |
2732 | rng.Position = tors.Position - Vector3.new(0,2,0) | |
2733 | rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
2734 | local rngm = Instance.new("SpecialMesh", rng) | |
2735 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2736 | rngm.Scale = Vector3.new(10, 10, 20) | |
2737 | x = Instance.new("Sound",tors) | |
2738 | x.SoundId = "http://www.roblox.com/asset/?id=169445602" | |
2739 | x.Looped = false | |
2740 | x.Pitch = .7 | |
2741 | x.Volume = 30 | |
2742 | x:Play() | |
2743 | coroutine.wrap(function() | |
2744 | for i = 1, 60, 8 do | |
2745 | rngm.Scale = Vector3.new(10.20 + i*10.10, 10.20 + i*10.10, 10) | |
2746 | rng.Transparency = i/60 | |
2747 | wait() | |
2748 | end | |
2749 | wait() | |
2750 | rng:Destroy() | |
2751 | end)() | |
2752 | wait(2.6) | |
2753 | BV:Destroy() | |
2754 | tors.Anchored = true | |
2755 | wait(3.2) | |
2756 | tors.Anchored = false | |
2757 | BV = Instance.new("BodyVelocity", tors) | |
2758 | BV.maxForce = Vector3.new(0,-20000,0) | |
2759 | BV.P = 1000 | |
2760 | BV.velocity = Vector3.new(0,-150,0) | |
2761 | wait(1) | |
2762 | BV:Destroy() | |
2763 | wait(0.01) | |
2764 | ||
2765 | human.WalkSpeed = 0 | |
2766 | boom3:Play() | |
2767 | ||
2768 | Smash() | |
2769 | Smash2() | |
2770 | Smash3() | |
2771 | Ring() | |
2772 | pe:Destroy() | |
2773 | pea:Destroy() | |
2774 | pea2:Destroy() | |
2775 | pe2:Destroy() | |
2776 | wait(2) | |
2777 | human.WalkSpeed = 16 | |
2778 | activu = false | |
2779 | end | |
2780 | ||
2781 | ||
2782 | ||
2783 | sound = Instance.new("Sound", game.Players.LocalPlayer.Character["Right Leg"]) | |
2784 | sound.SoundId = "rbxassetid://220025776" | |
2785 | sound.Volume = 6 | |
2786 | ||
2787 | sound2 = Instance.new("Sound", game.Players.LocalPlayer.Character["Torso"]) | |
2788 | sound2.SoundId = "rbxassetid://386946017" | |
2789 | sound2.Volume = 6 | |
2790 | ||
2791 | sound3 = Instance.new("Sound", game.Players.LocalPlayer.Character) | |
2792 | sound3.SoundId = "rbxassetid://165969964" | |
2793 | sound3.Volume = 6 | |
2794 | ||
2795 | function rip() | |
2796 | activu = true | |
2797 | local detect = Instance.new("Part", game.Players.LocalPlayer.Character) | |
2798 | detect.Size = Vector3.new(1,1,1) | |
2799 | detect:BreakJoints() | |
2800 | detect.CanCollide = false | |
2801 | local weld = Instance.new("Weld", detect) | |
2802 | weld.Part0 = game.Players.LocalPlayer.Character["Torso"] | |
2803 | weld.Part1 = detect | |
2804 | weld.C0 = weld.C0 * CFrame.new(0,-1,0) | |
2805 | ||
2806 | ||
2807 | ||
2808 | local function attack(prt) | |
2809 | local humanoid = prt.Parent:findFirstChild("Humanoid") | |
2810 | if humanoid ~= nil then | |
2811 | local torso = prt.Parent:findFirstChild("Torso") | |
2812 | ||
2813 | ||
2814 | ||
2815 | ||
2816 | ||
2817 | ||
2818 | ||
2819 | function KABOOMZ3() | |
2820 | local effspwn = Instance.new("Part") | |
2821 | coroutine.resume(coroutine.create(function() | |
2822 | local sound1 = Instance.new("Sound") | |
2823 | sound1.SoundId = "rbxassetid://138137702" | |
2824 | sound1.MaxDistance = 300 | |
2825 | sound1.EmitterSize = 20 | |
2826 | sound1.Volume = 2.5 | |
2827 | sound1.Pitch = 0.65 | |
2828 | sound1.Parent = effspwn | |
2829 | local sound2 = Instance.new("Sound") | |
2830 | sound2.SoundId = "rbxassetid://157878578" | |
2831 | sound2.MaxDistance = 300 | |
2832 | sound2.EmitterSize = 20 | |
2833 | sound2.Volume = 1 | |
2834 | sound2.Pitch = 0.7 | |
2835 | sound2.Parent = effspwn | |
2836 | local sound3 = Instance.new("Sound") | |
2837 | sound3.SoundId = "rbxassetid://138250406" | |
2838 | sound2.MaxDistance = 400 | |
2839 | sound2.EmitterSize = 30 | |
2840 | sound2.Volume = 0.5 | |
2841 | sound2.Pitch = 0.5 | |
2842 | sound2.Parent = effspwn | |
2843 | sound2:Play() | |
2844 | wait() | |
2845 | sound1:Play() | |
2846 | sound3:Play() | |
2847 | end)) | |
2848 | local model = Instance.new("Model") | |
2849 | game.Debris:AddItem(model, 20) | |
2850 | model.Name = "smasheffects" | |
2851 | model.Parent = workspace | |
2852 | effspwn.Name = "spwnr" | |
2853 | effspwn.Size = Vector3.new(1, 1, 1) | |
2854 | effspwn.Anchored = true | |
2855 | effspwn.CanCollide = false | |
2856 | effspwn.Transparency = 1 | |
2857 | effspwn.CFrame = torso.CFrame * CFrame.Angles(math.rad(180), 0, 0) | |
2858 | effspwn.Parent = model | |
2859 | ||
2860 | ||
2861 | ||
2862 | ||
2863 | ||
2864 | Crater(head,60) | |
2865 | Crater(head,120) | |
2866 | ||
2867 | for i,v in pairs(FindNearestTorso(tors.CFrame.p,50))do | |
2868 | if v:FindFirstChild('Humanoid') then | |
2869 | v.Humanoid:TakeDamage(math.random(10000020,10000030)) | |
2870 | v.Humanoid.PlatformStand = true | |
2871 | v:FindFirstChild("Torso").Velocity = head.CFrame.lookVector * 200 | |
2872 | end | |
2873 | end | |
2874 | ||
2875 | coroutine.resume(coroutine.create(function() | |
2876 | local shok = Instance.new("Part") | |
2877 | shok.Name = "whoosh" | |
2878 | shok.BrickColor = BrickColor.new("Institutional white") | |
2879 | shok.CFrame = effspwn.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
2880 | shok.Size = Vector3.new(1, 1, 1) | |
2881 | shok.Anchored = true | |
2882 | shok.Material = "Neon" | |
2883 | shok.Transparency = 0.1 | |
2884 | shok.CanCollide = false | |
2885 | shok.Parent = model | |
2886 | game.Debris:AddItem(shok, 12) | |
2887 | local mesh = Instance.new("SpecialMesh") | |
2888 | mesh.MeshType = "FileMesh" | |
2889 | mesh.MeshId = "rbxassetid://437347603" | |
2890 | mesh.Scale = Vector3.new(0.8, 0.8, 0.3) | |
2891 | mesh.Parent = shok | |
2892 | ||
2893 | ||
2894 | ||
2895 | ||
2896 | ||
2897 | for e = 1, 8 do | |
2898 | wait() | |
2899 | mesh.Scale = mesh.Scale + Vector3.new(0.24, 0.24, 0.22) | |
2900 | shok.Transparency = shok.Transparency + 0.035 | |
2901 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -22), 0.4) | |
2902 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29)) | |
2903 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
2904 | ||
2905 | end | |
2906 | for e = 1, 16 do | |
2907 | wait() | |
2908 | mesh.Scale = mesh.Scale + Vector3.new(0.13, 0.13, 0.12) | |
2909 | shok.Transparency = shok.Transparency + 0.11 | |
2910 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -10), 0.4) | |
2911 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(15)) | |
2912 | hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3) | |
2913 | ||
2914 | end | |
2915 | end)) | |
2916 | coroutine.resume(coroutine.create(function() | |
2917 | local shok = Instance.new("Part") | |
2918 | shok.Name = "wring1" | |
2919 | shok.BrickColor = BrickColor.new("Institutional white") | |
2920 | shok.CFrame = effspwn.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
2921 | shok.Size = Vector3.new(1, 1, 1) | |
2922 | shok.Anchored = true | |
2923 | shok.Material = "Neon" | |
2924 | shok.Transparency = 0.25 | |
2925 | shok.CanCollide = false | |
2926 | shok.Parent = model | |
2927 | game.Debris:AddItem(shok, 12) | |
2928 | local mesh = Instance.new("SpecialMesh") | |
2929 | mesh.MeshType = "FileMesh" | |
2930 | mesh.MeshId = "rbxassetid://3270017" | |
2931 | mesh.Scale = Vector3.new(0.1, 0.1, 0.05) | |
2932 | mesh.Parent = shok | |
2933 | for e = 1, 30 do | |
2934 | wait() | |
2935 | mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 3) | |
2936 | shok.Transparency = shok.Transparency + 0.002 | |
2937 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
2938 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)) | |
2939 | end | |
2940 | for e = 1, 38 do | |
2941 | wait() | |
2942 | mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 0.1) | |
2943 | shok.Transparency = shok.Transparency + 0.002 | |
2944 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
2945 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)) | |
2946 | end | |
2947 | for e = 1, 24 do | |
2948 | wait() | |
2949 | mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 0.1) | |
2950 | shok.Transparency = shok.Transparency + 0.03 | |
2951 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
2952 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2)) | |
2953 | end | |
2954 | end)) | |
2955 | coroutine.resume(coroutine.create(function() | |
2956 | local shok = Instance.new("Part") | |
2957 | shok.Name = "wring2" | |
2958 | shok.BrickColor = BrickColor.new("Institutional white") | |
2959 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 12, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)) | |
2960 | shok.Size = Vector3.new(1, 1, 1) | |
2961 | shok.Anchored = true | |
2962 | shok.Material = "Neon" | |
2963 | shok.Transparency = 0.25 | |
2964 | shok.CanCollide = false | |
2965 | shok.Parent = model | |
2966 | game.Debris:AddItem(shok, 12) | |
2967 | local mesh = Instance.new("SpecialMesh") | |
2968 | mesh.MeshType = "FileMesh" | |
2969 | mesh.MeshId = "rbxassetid://3270017" | |
2970 | mesh.Scale = Vector3.new(12, 12, 0.05) | |
2971 | mesh.Parent = shok | |
2972 | for e = 1, 30 do | |
2973 | wait() | |
2974 | mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 3) | |
2975 | shok.Transparency = shok.Transparency + 0.002 | |
2976 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
2977 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
2978 | end | |
2979 | for e = 1, 38 do | |
2980 | wait() | |
2981 | mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 0.1) | |
2982 | shok.Transparency = shok.Transparency + 0.002 | |
2983 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
2984 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
2985 | end | |
2986 | for e = 1, 24 do | |
2987 | wait() | |
2988 | mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 0.1) | |
2989 | shok.Transparency = shok.Transparency + 0.03 | |
2990 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
2991 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2)) | |
2992 | end | |
2993 | end)) | |
2994 | coroutine.resume(coroutine.create(function() | |
2995 | local shok = Instance.new("Part") | |
2996 | shok.Name = "coil1" | |
2997 | shok.BrickColor = BrickColor.new("Institutional white") | |
2998 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 12, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
2999 | shok.Size = Vector3.new(1, 1, 1) | |
3000 | shok.Anchored = true | |
3001 | shok.Material = "Neon" | |
3002 | shok.Transparency = 0.25 | |
3003 | shok.CanCollide = false | |
3004 | shok.Parent = model | |
3005 | game.Debris:AddItem(shok, 12) | |
3006 | local mesh = Instance.new("SpecialMesh") | |
3007 | mesh.MeshType = "FileMesh" | |
3008 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
3009 | mesh.Scale = Vector3.new(12, 12, 12) | |
3010 | mesh.Parent = shok | |
3011 | for e = 1, 15 do | |
3012 | wait() | |
3013 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
3014 | shok.Transparency = shok.Transparency + 0.004 | |
3015 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
3016 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
3017 | end | |
3018 | for e = 1, 16 do | |
3019 | wait() | |
3020 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
3021 | shok.Transparency = shok.Transparency + 0.004 | |
3022 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
3023 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
3024 | end | |
3025 | for e = 1, 12 do | |
3026 | wait() | |
3027 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
3028 | shok.Transparency = shok.Transparency + 0.06 | |
3029 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
3030 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
3031 | end | |
3032 | end)) | |
3033 | coroutine.resume(coroutine.create(function() | |
3034 | local shok = Instance.new("Part") | |
3035 | shok.Name = "coil2" | |
3036 | shok.BrickColor = BrickColor.new("Institutional white") | |
3037 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
3038 | shok.Size = Vector3.new(1, 1, 1) | |
3039 | shok.Anchored = true | |
3040 | shok.Material = "Neon" | |
3041 | shok.Transparency = 0.25 | |
3042 | shok.CanCollide = false | |
3043 | shok.Parent = model | |
3044 | game.Debris:AddItem(shok, 12) | |
3045 | local mesh = Instance.new("SpecialMesh") | |
3046 | mesh.MeshType = "FileMesh" | |
3047 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
3048 | mesh.Scale = Vector3.new(6, 12, 6) | |
3049 | mesh.Parent = shok | |
3050 | for e = 1, 15 do | |
3051 | wait() | |
3052 | mesh.Scale = mesh.Scale + Vector3.new(1.1, 2.4, 1.1) | |
3053 | shok.Transparency = shok.Transparency + 0.005 | |
3054 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4) | |
3055 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)) | |
3056 | end | |
3057 | for e = 1, 16 do | |
3058 | wait() | |
3059 | mesh.Scale = mesh.Scale + Vector3.new(1.1, 2.4, 1.1) | |
3060 | shok.Transparency = shok.Transparency + 0.005 | |
3061 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
3062 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)) | |
3063 | end | |
3064 | for e = 1, 12 do | |
3065 | wait() | |
3066 | mesh.Scale = mesh.Scale + Vector3.new(1.1, 2.4, 1.1) | |
3067 | shok.Transparency = shok.Transparency + 0.09 | |
3068 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4) | |
3069 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)) | |
3070 | end | |
3071 | end)) | |
3072 | coroutine.resume(coroutine.create(function() | |
3073 | local shok = Instance.new("Part") | |
3074 | shok.Name = "shokwve" | |
3075 | shok.BrickColor = BrickColor.new("Institutional white") | |
3076 | shok.Position = effspwn.Position + Vector3.new(0, 5, 0) | |
3077 | shok.Size = Vector3.new(1, 1, 1) | |
3078 | shok.Anchored = true | |
3079 | shok.Material = "Neon" | |
3080 | shok.Transparency = 0.6 | |
3081 | shok.CanCollide = false | |
3082 | shok.Parent = model | |
3083 | game.Debris:AddItem(shok, 12) | |
3084 | local mesh = Instance.new("SpecialMesh") | |
3085 | mesh.MeshType = "FileMesh" | |
3086 | mesh.MeshId = "rbxassetid://489415447" | |
3087 | mesh.Scale = Vector3.new(1, 1, 1) | |
3088 | mesh.Parent = shok | |
3089 | for e = 1, 12 do | |
3090 | wait() | |
3091 | mesh.Scale = mesh.Scale + Vector3.new(2, 2, 2) | |
3092 | shok.Transparency = shok.Transparency + 0.002 | |
3093 | end | |
3094 | for e = 1, 32 do | |
3095 | wait() | |
3096 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 0.5, 0.5) | |
3097 | shok.Transparency = shok.Transparency + 0.002 | |
3098 | end | |
3099 | for e = 1, 24 do | |
3100 | wait() | |
3101 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 0.5, 0.5) | |
3102 | shok.Transparency = shok.Transparency + 0.03 | |
3103 | end | |
3104 | end)) | |
3105 | coroutine.resume(coroutine.create(function() | |
3106 | local shok = Instance.new("Part") | |
3107 | shok.Name = "shock2" | |
3108 | shok.BrickColor = BrickColor.new("Institutional white") | |
3109 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) | |
3110 | shok.Size = Vector3.new(1, 1, 1) | |
3111 | shok.Anchored = true | |
3112 | shok.Material = "Neon" | |
3113 | shok.Transparency = 0.35 | |
3114 | shok.CanCollide = false | |
3115 | shok.Parent = model | |
3116 | game.Debris:AddItem(shok, 12) | |
3117 | local mesh = Instance.new("SpecialMesh") | |
3118 | mesh.MeshType = "FileMesh" | |
3119 | mesh.MeshId = "rbxassetid://489415447" | |
3120 | mesh.Scale = Vector3.new(12, 12, 12) | |
3121 | mesh.Parent = shok | |
3122 | for e = 1, 15 do | |
3123 | wait() | |
3124 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
3125 | shok.Transparency = shok.Transparency + 0.004 | |
3126 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
3127 | end | |
3128 | for e = 1, 16 do | |
3129 | wait() | |
3130 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
3131 | shok.Transparency = shok.Transparency + 0.004 | |
3132 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
3133 | end | |
3134 | for e = 1, 12 do | |
3135 | wait() | |
3136 | mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5) | |
3137 | shok.Transparency = shok.Transparency + 0.06 | |
3138 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0)) | |
3139 | end | |
3140 | end)) | |
3141 | coroutine.resume(coroutine.create(function() | |
3142 | local shok = Instance.new("Part") | |
3143 | shok.Name = "shock3" | |
3144 | shok.BrickColor = BrickColor.new("Institutional white") | |
3145 | shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) | |
3146 | shok.Size = Vector3.new(1, 1, 1) | |
3147 | shok.Anchored = true | |
3148 | shok.Material = "Neon" | |
3149 | shok.Transparency = 0.35 | |
3150 | shok.CanCollide = false | |
3151 | shok.Parent = model | |
3152 | game.Debris:AddItem(shok, 12) | |
3153 | local mesh = Instance.new("SpecialMesh") | |
3154 | mesh.MeshType = "FileMesh" | |
3155 | mesh.MeshId = "rbxassetid://489415447" | |
3156 | mesh.Scale = Vector3.new(12, 12, 12) | |
3157 | mesh.Parent = shok | |
3158 | for e = 1, 15 do | |
3159 | wait() | |
3160 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5) | |
3161 | shok.Transparency = shok.Transparency + 0.004 | |
3162 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
3163 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
3164 | end | |
3165 | for e = 1, 16 do | |
3166 | wait() | |
3167 | mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5) | |
3168 | shok.Transparency = shok.Transparency + 0.004 | |
3169 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
3170 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
3171 | end | |
3172 | for e = 1, 12 do | |
3173 | wait() | |
3174 | mesh.Scale = mesh.Scale + Vector3.new(0.5, -1, 0.5) | |
3175 | shok.Transparency = shok.Transparency + 0.06 | |
3176 | shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4) | |
3177 | shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0)) | |
3178 | end | |
3179 | end)) | |
3180 | end | |
3181 | ||
3182 | ||
3183 | ||
3184 | if torso ~= nil then | |
3185 | game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0 | |
3186 | game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0 | |
3187 | for i = 1,5 do | |
3188 | wait() | |
3189 | game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 * CFrame.Angles(0,0,0.25) | |
3190 | game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 * CFrame.Angles(0,0,0.25) | |
3191 | game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(-0.25,0,0) | |
3192 | end | |
3193 | sound:Play() | |
3194 | local bodyVel = Instance.new("BodyPosition", torso) | |
3195 | bodyVel.Position = game.Players.LocalPlayer.Character.Torso.Position + Vector3.new(0,1000,0) | |
3196 | bodyVel.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
3197 | wait(2) | |
3198 | torso.Anchored = true | |
3199 | for i = 1,5 do | |
3200 | wait() | |
3201 | game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 * CFrame.Angles(0,0,-0.25) | |
3202 | game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 * CFrame.Angles(0,0,-0.25) | |
3203 | game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0.25,0,0) | |
3204 | end | |
3205 | for i = 1,5 do | |
3206 | wait() | |
3207 | game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 * CFrame.Angles(0,0,-0.08) | |
3208 | game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0.08,0,0) | |
3209 | end | |
3210 | wait(1) | |
3211 | local bodyvel = Instance.new("BodyPosition" , game.Players.LocalPlayer.Character.Torso) | |
3212 | bodyvel.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
3213 | bodyvel.Position = torso.Position | |
3214 | for i = 1,5 do | |
3215 | wait() | |
3216 | game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 * CFrame.Angles(0,0,0) | |
3217 | game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 * CFrame.Angles(0,0,0.08) | |
3218 | game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(-0.15,0,0) | |
3219 | end | |
3220 | wait(2) | |
3221 | bodyVel:destroy() | |
3222 | game.Players.LocalPlayer.Character.Torso.Anchored = true | |
3223 | torso.Anchored = false | |
3224 | humanoid.PlatformStand = true | |
3225 | local bodyVel = Instance.new("BodyPosition", torso) | |
3226 | bodyVel.Position = game.Players.LocalPlayer.Character.Torso.Position - Vector3.new(0,1000,0) | |
3227 | bodyVel.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
3228 | sound2:Play() | |
3229 | ||
3230 | wait(1.2) | |
3231 | game.Players.LocalPlayer.Character.Torso.Anchored = false | |
3232 | game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
3233 | game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
3234 | game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
3235 | game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
3236 | activu = false | |
3237 | wait(0.5) | |
3238 | bodyvel:destroy() | |
3239 | local ROW3 = function(out, trans, s, wt, t, ang, plus) | |
3240 | for i = 1, 360, 360/t do | |
3241 | local c = Instance.new("Part", game.Workspace) | |
3242 | c.FormFactor = 3 | |
3243 | c.TopSurface = 0 | |
3244 | c.BottomSurface = 0 | |
3245 | c.Size = s | |
3246 | c.Anchored = true | |
3247 | c.CanCollide = wt | |
3248 | c.Material=workspace.Base.Material | |
3249 | c.Transparency = trans | |
3250 | c.BrickColor = workspace.Base.BrickColor | |
3251 | 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 | |
3252 | c.Locked=true | |
3253 | game.Debris:AddItem(c,25) | |
3254 | end | |
3255 | end | |
3256 | ||
3257 | ||
3258 | ||
3259 | ||
3260 | sound3:Play() | |
3261 | 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) | |
3262 | game.Players.LocalPlayer.Character.Torso.Anchored = true | |
3263 | KABOOMZ3() | |
3264 | wait(0.1) | |
3265 | ||
3266 | game.Players.LocalPlayer.Character.Torso.Anchored = false | |
3267 | game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16 | |
3268 | game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50 | |
3269 | ||
3270 | ||
3271 | end | |
3272 | end | |
3273 | end | |
3274 | detect.Touched:connect(attack) | |
3275 | wait(0.1) | |
3276 | detect:destroy() | |
3277 | activu = false | |
3278 | end | |
3279 | ||
3280 | ||
3281 | ||
3282 | function hito(partoz, magn, dmg, debtim) | |
3283 | for _, guy in pairs(workspace:GetChildren()) do | |
3284 | 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 | |
3285 | do | |
3286 | local humz = guy:FindFirstChild("Humanoid") | |
3287 | local hed = guy:FindFirstChild("Head") | |
3288 | humz:TakeDamage(dmg) | |
3289 | local db = Instance.new("StringValue") | |
3290 | db.Name = "alabo" | |
3291 | db.Parent = hed | |
3292 | delay(debtim, function() | |
3293 | db:Destroy() | |
3294 | end) | |
3295 | end | |
3296 | end | |
3297 | end | |
3298 | end | |
3299 | function animo(yep) | |
3300 | if yep == true then | |
3301 | anim.Parent = human | |
3302 | chr.Animate.Disabled = false | |
3303 | elseif yep == false then | |
3304 | chr.Animate.Disabled = true | |
3305 | anim.Parent = nil | |
3306 | end | |
3307 | end | |
3308 | mouse.KeyDown:connect(function(key) | |
3309 | if key == "e" then | |
3310 | rsmash() | |
3311 | end | |
3312 | if key == "l" then | |
3313 | jum() | |
3314 | end | |
3315 | if key == "r" then | |
3316 | Tele() | |
3317 | end | |
3318 | if key == "q" then | |
3319 | Stom() | |
3320 | end | |
3321 | if key == "f" then | |
3322 | HeavenSmash() | |
3323 | end | |
3324 | if key == "h" then | |
3325 | rip() | |
3326 | end | |
3327 | end) | |
3328 | tool.Equipped:connect(function() | |
3329 | selected = true | |
3330 | end) | |
3331 | tool.Unequipped:connect(function() | |
3332 | selected = false | |
3333 | end) |