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