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