View difference between Paste ID: 64gjhb22 and wrzgNxtr
SHOW: | | - or go back to the newest paste.
1
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
2
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
3
local RealPlayer = Player
4
do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
5
6
7
plr = game.Players.LocalPlayer
8
char = plr.Character
9
hrp = plr.Character.HumanoidRootPart
10
mode = false
11
tors = char.Torso
12
m = plr:GetMouse()
13
hum = char.Humanoid
14
15
char.Head.face.Texture = ""
16
17
function sp()
18
local S = Instance.new("Sound",game.Soundscape)
19-
S.SoundId = ""
19+
S.SoundId = "rbxassetid://303536628"
20-
S.Volume = 0.6
20+
S.Volume = 1.6
21
S.Looped = true
22
S:Play()
23
end
24
25
sp()
26
27
local acos = math.acos
28
local sqrt = math.sqrt
29
local Vec3 = Vector3.new
30
local fromAxisAngle = CFrame.fromAxisAngle
31
32
local function toAxisAngle(CFr)
33
        local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
34
        local Angle = math.acos((R00+R11+R22-1)/2)
35
        local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
36
        A = A == 0 and 0.00001 or A
37
        local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
38
        B = B == 0 and 0.00001 or B
39
        local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
40
        C = C == 0 and 0.00001 or C
41
        local x = (R21-R12)/sqrt(A)
42
        local y = (R02-R20)/sqrt(B)
43
        local z = (R10-R01)/sqrt(C)
44
        return Vec3(x,y,z),Angle
45
end
46
47
function ApplyTrig(Num,Func)
48
        local Min,Max = Func(0),Func(1)
49
        local i = Func(Num)
50
        return (i-Min)/(Max-Min)
51
        --[[if Func == "sin" then
52
                return (math.sin((1-Num)*math.pi)+1)/2
53
        elseif Func == "cos" then
54
                return (math.cos((1-Num)*math.pi)+1)/2
55
        end]]
56
end
57
58
function LerpCFrame(CFrame1,CFrame2,Num)
59
        local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
60
        return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
61
end
62
63
function Crater(Torso,Radius)
64
        spawn(function()
65
        local Ray = Ray.new(char.Torso.Position,Vector3.new(0,-1,0)*10)
66
        local Ignore = {}
67
        for i,v in pairs(game:GetService("Players"):GetPlayers()) do
68
                if v.Character ~= nil then
69
                        Ignore[#Ignore+1] = v.Character
70
                end
71
        end
72
        local Hit,Pos,SurfaceNorm = workspace:FindPartOnRayWithIgnoreList(Ray,Ignore)
73
        if Hit == nil then return end
74
        local Parts = {}
75
        for i = 1,360,10 do
76
                local P = Instance.new("Part",char.Torso.Parent)
77
                P.Anchored = true
78
                P.FormFactor = "Custom"
79
                P.BrickColor = Hit.BrickColor
80
                P.Material = Hit.Material
81
                P.TopSurface = "Smooth"
82
                P.BottomSurface = "Smooth"
83
                P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100)
84
                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)))
85
                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,-45)*CFrame.Angles(math.rad(math.random(-50,-20)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15))),P.Size}
86
                if math.random(0,5) == 0 then -- rubble
87
                        local P = Instance.new("Part",char.Torso.Parent)
88
                        P.Anchored = true
89
P.CanCollide = false
90
                        P.FormFactor = "Custom"
91
                        P.BrickColor = Hit.BrickColor
92
                        P.Material = Hit.Material
93
                        P.TopSurface = "Smooth"
94
                        P.BottomSurface = "Smooth"
95
                        P.Size = Vector3.new(2,2,2)*(math.random(80,100)/100)
96
                        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)))
97
                      P.CanCollide = true
98
  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,-50)*CFrame.Angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90))),P.Size}
99
                end
100
        end
101
        for i = 0,1,0.05 do
102
                for i2,v in pairs(Parts) do
103
                        v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos))
104
                end
105
                wait(0.02)
106
        end
107
        for i,v in pairs(Parts) do
108
                if v[1].Size.X > 2.1 then
109
                        v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0)
110
                end
111
                v[1].Anchored = false
112
        end
113
        for i = 0,1,0.05 do
114
                for i2,v in pairs(Parts) do
115
                        v[1].Transparency = i
116
                        if i == 1 then
117
                                v[1]:Destroy()
118
                        elseif i >= 0.25 then
119
                                v[1].CanCollide = false
120
                        end
121
                end
122
                wait(0.02)
123
        end
124
        Parts = nil
125
        end)
126
end
127
128
129
function FindNearestTorso(Position,Distance,SinglePlayer)
130
    if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
131
        local List = {}
132
        for i,v in pairs(workspace:GetChildren())do
133
            if v:IsA("Model")then
134
                if v:findFirstChild("Torso")then
135
                    if v ~= char then
136
                        if(v.char.Torso.Position -Position).magnitude <= Distance then
137
                            table.insert(List,v)
138
                        end 
139
                    end 
140
                end 
141
            end 
142
        end
143
    return List
144
end
145
146
147
148
149
function hito(partoz, magn, dmg, debtim)
150
    for _, guy in pairs(workspace:GetChildren()) do
151
      if guy:FindFirstChild("Humanoid") and guy:FindFirstChild("Head") and guy ~= plr.Character and magn > (guy:FindFirstChild("Head").Position - partoz.Position).magnitude and guy:FindFirstChild("Head"):FindFirstChild("alabo") == nil then
152
        do
153
          local humz = guy:FindFirstChild("Humanoid")
154
          local hed = guy:FindFirstChild("Head")
155
          humz:TakeDamage(dmg)
156
          local db = Instance.new("StringValue")
157
          db.Name = "alabo"
158
          db.Parent = hed
159
          delay(debtim, function()
160
            db:Destroy()
161
          end)
162
        end
163
      end
164
    end
165
  end
166
167
168
 RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
169
  RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
170
  LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
171
  LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
172
  RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
173
  RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
174
  LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
175
  LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
176
  NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
177
  NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
178
  RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
179
  RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
180
  RS = tors:FindFirstChild("Right Shoulder")
181
  LS = tors:FindFirstChild("Left Shoulder")
182
  RH = tors:FindFirstChild("Right Hip")
183
  LH = tors:FindFirstChild("Left Hip")
184
  RJ = hrp:FindFirstChild("RootJoint")
185
  N = tors:FindFirstChild("Neck")
186
  cf = CFrame.new
187
  ang = CFrame.Angles
188
  rd = math.rad
189
  rd2 = math.random
190
LOADED = 1
191
192
 Heartbeat = Instance.new("BindableEvent")
193
  Heartbeat.Name = "Heartbeat"
194
  Heartbeat.Parent = script
195
  frame = 0.03333333333333333
196
  tf = 0
197
  game:GetService("RunService").Heartbeat:connect(function(s, p)
198
    tf = tf + s
199
    if tf >= frame then
200
      for i = 1, math.floor(tf / frame) do
201
        Heartbeat:Fire()
202
      end
203
      tf = tf - frame * math.floor(tf / frame)
204
    end
205
  end)
206
  function swait(num)
207
    if num == 0 or num == nil then
208
      Heartbeat.Event:wait()
209
    else
210
      for i = 1, num do
211
        Heartbeat.Event:wait()
212
      end
213
    end
214
  end
215
216
 function makeweld(parent, p0, p1, c0, c1)
217
    local wel = Instance.new("Weld")
218
    wel.Part0 = p0
219
    wel.Part1 = p1
220
    wel.C0 = c0
221
    if c1 ~= nil then
222
      wel.C1 = c1
223
    end
224
    wel.Parent = parent
225
    return wel
226
  end
227
228
function smash()
229
	hum.WalkSpeed = 2
230
	hum.JumpPower = 1
231
	local S = Instance.new("Sound",game.Soundscape)
232-
	S.SoundId = "rbxassetid://321759840"
232+
	S.SoundId = ""
233
	S.Volume = 1.5
234
	local S4 = Instance.new("Sound",game.Soundscape)
235-
	S4.SoundId = "rbxassetid://303536628"
235+
	S4.SoundId = ""
236
	S4.Volume = 1.5
237
	local S3 = Instance.new("Sound",game.Soundscape)
238-
	S3.SoundId = ""
238+
	S3.SoundId = "rbxassetid://610327604"
239
	S3.Volume = 0.3
240
	S3.PlaybackSpeed = 0.85
241
	local pe = Instance.new("ParticleEmitter",char:FindFirstChild("Right Arm"))
242
	pe.Texture = "rbxassetid://272050333"
243
	pe.Size = NumberSequence.new(1)
244
	pe.LightEmission = 1
245
	pe.LightInfluence = 1
246
	pe.Rate = 1000000.000
247
	pe.Rotation = NumberRange.new(0, 360)
248
	pe.Speed = NumberRange.new(10)
249
	pe.Color = ColorSequence.new(Color3.new(0,170,0))
250
	pe.Lifetime = NumberRange.new(0.06)
251
	pe.LockedToPart = true
252
	local pe2 = Instance.new("ParticleEmitter",char:FindFirstChild("Right Arm"))
253
	pe2.Texture = "http://www.roblox.com/asset/?id=243098098"
254
	pe2.Size = NumberSequence.new(3)
255
	pe2.LightEmission = 1
256
	pe2.LightInfluence = 1
257
	pe2.Rate = 1000
258
	pe2.Color = ColorSequence.new(Color3.new(0,170,0))
259
	pe2.Rotation = NumberRange.new(0, 360)
260
	pe2.RotSpeed = NumberRange.new(2)
261
	pe2.Speed = NumberRange.new(15)
262
	pe2.SpreadAngle = Vector2.new(360,306)
263
	pe2.Lifetime = NumberRange.new(0.06)
264
	pe2.ZOffset = 1
265
	pe2.LockedToPart = true
266
	pe2.Name = "ParticleEmitter2"
267
 
268
	S:Play()
269
	 for _ = 1, 45 do
270
      swait()
271
      lerpz(RJ, "C0", RJC0 * cf(0, 0.8, -0.2) * ang(rd(10), rd(0), rd(-70)), 0.2)
272
      lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(6), rd(2), rd(68)), 0.2)
273
      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)
274
      lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
275
      lerpz(LS, "C0", LSC0 * cf(-0.15, -0.4, 0.5) * ang(rd(-10), rd(60), rd(-86)), 0.2)
276
      lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(80), rd(0)), 0.2)
277
      lerpz(RH, "C0", RHC0 * cf(0, 0.1, 0) * ang(rd(-6), rd(-29), rd(-2)), 0.2)
278
      lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
279
      lerpz(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-10)), 0.2)
280
      lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
281
	    end
282
    for _ = 1, 30 do
283
      swait()
284
      lerpz(RJ, "C0", RJC0 * cf(0, 1.2, -0.2) * ang(rd(5), rd(6), rd(-109)), 0.2)
285
      lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-2), rd(-6), rd(96)), 0.2)
286
      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)
287
      lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(60), rd(-46)), 0.2)
288
      lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(30), rd(0)), 0.2)
289
      lerpz(RH, "C0", RHC0 * cf(0, 0.1, 0) * ang(rd(-6), rd(-39), rd(-2)), 0.2)
290
      lerpz(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-10)), 0.2)
291
      lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(0)), 0.2)
292
293
    end
294
    for l = 1, 3 do
295
      swait()
296
      lerpz(RJ, "C0", RJC0 * cf(0.4, -1.6, -0.2) * ang(rd(5), rd(6), rd(60)), 0.3 + l / 4)
297
      lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(14), rd(-4), rd(-35)), 0.3 + l / 4)
298
      lerpz(RS, "C0", RSC0 * cf(0.3, -0.4, 0.55) * ang(rd(0), rd(-58), rd(95)), 0.3 + l / 4)
299
      lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(-80), rd(0)), 0.3 + l / 4)
300
      lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(60), rd(-66)), 0.3 + l / 4)
301
      lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(30), rd(0)), 0.3 + l / 4)
302
      lerpz(RH, "C0", RHC0 * cf(0, 0.1, 0) * ang(rd(-6), rd(-39), rd(-2)), 0.3 + l / 4)
303
      lerpz(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-10)), 0.3 + l / 4)
304
      lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(0)), 0.3 + l / 4)
305
    end
306
local woosh = Instance.new("Part",workspace)
307
woosh.Size = Vector3.new(12, 12, 20)
308
woosh.BrickColor = BrickColor.new("Institutional white")
309
local me = Instance.new("FileMesh",woosh)
310
me.MeshId = "rbxassetid://437347603"
311
me.Scale = Vector3.new(1.3, 1.3, 1)
312
woosh.CanCollide = false
313
woosh.Anchored = false
314
woosh.CFrame = woosh.CFrame:lerp(woosh.CFrame * CFrame.new(0, 0, -22), 0.4)
315
		woosh.CFrame = woosh.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
316
		woosh.CFrame = char:FindFirstChild("Right Arm").CFrame
317
		woosh.CFrame = woosh.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
318
		local woosh2 = Instance.new("Part",workspace)
319
woosh2.Size = Vector3.new(12, 12, 20)
320
woosh2.BrickColor = BrickColor.new("Institutional white")
321
local me2 = Instance.new("FileMesh",woosh2)
322
me2.MeshId = "rbxassetid://3270017"
323
me2.Scale = Vector3.new(1.3, 1.3, 0.4)
324
woosh2.CanCollide = false
325
woosh2.Anchored = true
326
woosh2.CFrame = woosh2.CFrame:lerp(woosh2.CFrame * CFrame.new(0, 0, -22), 0.4)
327
		woosh2.CFrame = woosh2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
328
		woosh2.CFrame = char:FindFirstChild("Right Arm").CFrame * CFrame.new(0,-3,0)
329
		woosh2.CFrame = woosh2.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
330
				local woosh3 = Instance.new("Part",workspace)
331
woosh3.Size = Vector3.new(12, 12, 20)
332
woosh3.BrickColor = BrickColor.new("Institutional white")
333
local me3 = Instance.new("FileMesh",woosh3)
334
me3.MeshId = "rbxassetid://3270017"
335
me3.Scale = Vector3.new(1, 1, 0.4)
336
woosh3.CanCollide = false
337
woosh3.Anchored = true
338
woosh3.CFrame = woosh3.CFrame:lerp(woosh3.CFrame * CFrame.new(0, 0, -22), 0.4)
339
		woosh3.CFrame = woosh3.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
340
		woosh3.CFrame = char:FindFirstChild("Right Arm").CFrame * CFrame.new(0,-4.5,0)
341
		woosh3.CFrame = woosh3.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
342
		local woosh1 = Instance.new("Part",workspace)
343
woosh1.Size = Vector3.new(12, 12, 20)
344
woosh1.BrickColor = BrickColor.new("Institutional white")
345
local me1 = Instance.new("FileMesh",woosh1)
346
me1.MeshId = "rbxassetid://489415447"
347
me1.Scale = Vector3.new(1, 1, 0.4)
348
woosh1.CanCollide = false
349
woosh1.Anchored = true
350
		woosh1.CFrame = char:FindFirstChild("Right Arm").CFrame * CFrame.new(0,-4.5,0)
351
		local woosh4 = Instance.new("Part",workspace)
352
woosh4.Size = Vector3.new(12, 12, 20)
353
woosh4.BrickColor = BrickColor.new("Institutional white")
354
local me4 = Instance.new("FileMesh",woosh4)
355
me4.MeshId = "rbxassetid://http://www.roblox.com/asset/?id=1051557"
356
me4.Scale = Vector3.new(1.3,0.1,1)
357
woosh4.CanCollide = false
358
woosh4.Anchored = true
359
		woosh4.CFrame = char:FindFirstChild("Right Arm").CFrame
360
		local woosh4 = Instance.new("Part",workspace)
361
woosh4.Size = Vector3.new(12, 12, 20)
362
woosh4.BrickColor = BrickColor.new("Institutional white")
363
local me4 = Instance.new("FileMesh",woosh4)
364
me4.MeshId = "http://www.roblox.com/asset/?id=1051557"
365
me4.Scale = Vector3.new(2,3.3,2)
366
woosh4.CanCollide = false
367
woosh4.Anchored = true
368
		woosh4.CFrame = char:FindFirstChild("Right Arm").CFrame
369
		 local v = Instance.new("BodyVelocity", woosh)
370
  v.velocity = woosh.CFrame.lookVector *100
371
 v.maxForce = Vector3.new(math.huge, math.huge, math.huge)
372
S3:Play()
373
pe:remove()
374
pe2:remove()
375
Crater()
376
    for i = 0.14,1,0.015 do
377
	wait()
378
	hito(woosh, 70, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
379
	woosh.CFrame = woosh.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0.1)
380
		woosh1.CFrame = woosh1.CFrame * CFrame.fromEulerAnglesXYZ(0,0.2,0)
381
woosh.Transparency = woosh.Transparency + 0.04
382
woosh2.CFrame = woosh2.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0.2)
383
woosh2.Transparency = woosh2.Transparency + 0.03
384
me2.Scale = me2.Scale + Vector3.new(2,2,1.8)
385
woosh3.CFrame = woosh3.CFrame * CFrame.fromEulerAnglesXYZ(0,0,0.2)
386
woosh3.Transparency = woosh3.Transparency + 0.035
387
me3.Scale = me3.Scale + Vector3.new(1.3,1.3,1)
388
me1.Scale = me1.Scale + Vector3.new(2,1,2)
389
woosh1.Transparency = woosh1.Transparency + 0.04
390
woosh4.CFrame = woosh4.CFrame * CFrame.fromEulerAnglesXYZ(0,0.2,0)
391
woosh4.Transparency = woosh4.Transparency + 0.02
392
me4.Scale = me4.Scale + Vector3.new(2,4,2)
393
end
394
woosh3:remove()
395
woosh2:remove()
396
woosh1:remove()
397
woosh4:remove()
398
woosh:remove()
399
  
400
    for _ = 1, 24 do
401
      swait()
402
      lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
403
      lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
404
      lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
405
      lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
406
      lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
407
      lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
408
      lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
409
      lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
410
      lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
411
    end
412
S:remove()
413
hum.WalkSpeed = 16
414
	hum.JumpPower = 50
415
	wait(2.3)
416
	S4:remove()
417
	S3:remove()
418
end
419
420
function ring()
421
	local S4 = Instance.new("Sound",game.Soundscape)
422
	S4.SoundId = "rbxassetid://991726501"
423
	S4.Volume = 1.5
424
		local pe = Instance.new("ParticleEmitter",char:FindFirstChild("Right Leg"))
425
	pe.Texture = "rbxassetid://272050333"
426
	pe.Size = NumberSequence.new(1)
427
	pe.LightEmission = 1
428
	pe.LightInfluence = 1
429
	pe.Rate = 1000000.000
430
	pe.Rotation = NumberRange.new(0, 360)
431
	pe.Speed = NumberRange.new(10)
432
	pe.Color = ColorSequence.new(Color3.new(0,170,0))
433
	pe.Lifetime = NumberRange.new(0.06)
434
	pe.LockedToPart = true
435
	local pe2 = Instance.new("ParticleEmitter",char:FindFirstChild("Right Leg"))
436
	pe2.Texture = "http://www.roblox.com/asset/?id=243098098"
437
	pe2.Size = NumberSequence.new(3)
438
	pe2.LightEmission = 1
439
	pe2.LightInfluence = 1
440
	pe2.Rate = 1000
441
	pe2.Color = ColorSequence.new(Color3.new(0,170,0))
442
	pe2.Rotation = NumberRange.new(0, 360)
443
	pe2.RotSpeed = NumberRange.new(2)
444
	pe2.Speed = NumberRange.new(15)
445
	pe2.SpreadAngle = Vector2.new(360,306)
446
	pe2.Lifetime = NumberRange.new(0.06)
447
	pe2.ZOffset = 1
448
	pe2.LockedToPart = true
449
	pe2.Name = "ParticleEmitter2"
450
	wait(0.3)
451
	local me = Instance.new("Part",workspace)
452
	  local mesh = Instance.new("SpecialMesh")
453
      mesh.MeshType = "FileMesh"
454
      mesh.MeshId = "rbxassetid://3270017"
455
      mesh.Scale = Vector3.new(12, 12, 0.05)
456
      mesh.Parent = me
457
me.Anchored = true
458
me.CanCollide = false
459
me.BrickColor = BrickColor.new("Institutional white")
460
me.CFrame = me.CFrame:lerp(me.CFrame * CFrame.new(0, 0, -22), 0.4)
461
		me.CFrame = me.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
462
		me.CFrame = hrp.CFrame * CFrame.new(0,-2.5,0)
463
		me.CFrame = me.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
464
		me.Anchored = false
465
		local me2 = Instance.new("Part",workspace)
466
	  local mesh2 = Instance.new("SpecialMesh")
467
      mesh2.MeshType = "FileMesh"
468
      mesh2.MeshId = "rbxassetid://3270017"
469
      mesh2.Scale = Vector3.new(12, 12, 0.05)
470
      mesh2.Parent = me2
471
me2.Anchored = true
472
me2.CanCollide = false
473
me2.BrickColor = BrickColor.new("Institutional white")
474
me2.CFrame = me2.CFrame:lerp(me2.CFrame * CFrame.new(0, 0, -22), 0.4)
475
		me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
476
		me2.CFrame = hrp.CFrame
477
		me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
478
		local bfor = Instance.new("BodyPosition")
479
    bfor.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
480
    bfor.P = 2500
481
    bfor.Position = me.Position + Vector3.new(0, 50, 0)
482
    bfor.Parent = me
483
me.Velocity = me.CFrame.lookVector *65
484
    local sound2 = Instance.new("Sound",game.Soundscape)
485
      sound2.SoundId = "rbxassetid://157878578"
486
      sound2.MaxDistance = 300
487
      sound2.EmitterSize = 20
488
      sound2.Volume = 2
489
      sound2.Pitch = 0.9
490
      local sound3 = Instance.new("Sound",game.Soundscape)
491
      sound3.SoundId = "rbxassetid://138250406"
492
      sound2.MaxDistance = 400
493
      sound2.EmitterSize = 30
494
      sound2.Volume = 1.5
495
      sound2.Pitch = 0.6
496
      sound2:Play()
497
sound3:Play()
498
wait(0.4)
499
local bfor = Instance.new("BodyPosition")
500
    bfor.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
501
    bfor.P = 2500
502
    bfor.Position = plr.Character.HumanoidRootPart.Position + Vector3.new(0, 500, 0)
503
    bfor.Parent = plr.Character.HumanoidRootPart
504
plr.Character.HumanoidRootPart.Velocity=plr.Character.HumanoidRootPart.CFrame.lookVector *200
505
S4:Play()
506
local part = Instance.new("Part",workspace)
507
part.Transparency = 1
508
part.CanCollide = false
509
part.Anchored = true
510
part.CFrame = char:FindFirstChild("Right Leg").CFrame
511
local smok = Instance.new("Smoke",part)
512
smok.Opacity = 1
513
smok.Size = 20
514
      for e = 1, 30 do
515
        wait()
516
        mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 1)
517
         me.Transparency =  me.Transparency + 0.04
518
         me.CFrame = me.CFrame:lerp( me.CFrame * CFrame.new(0, 0, -1), 0.4)
519
         me.CFrame =  me.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
520
 mesh2.Scale = mesh2.Scale + Vector3.new(8, 8, 3)
521
         me2.Transparency =  me2.Transparency + 0.04
522
         me2.CFrame = me2.CFrame:lerp( me2.CFrame * CFrame.new(0, 0, -1), 0.4)
523
         me2.CFrame =  me2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
524
smok.Size = smok.Size + 10
525
wait()
526
      end
527
S4:remove()
528
pe:remove()
529
pe2:remove()
530
bfor:remove()
531
me2:remove()
532
		me:remove()
533
		for i = 0,1,0.01 do
534
			wait()
535
			smok.Opacity = smok.Opacity - 0.01
536
		end
537
		part:remove()
538
		sound2:remove()
539
sound3:remove()
540
end
541
542
function ring2()
543
	hum.WalkSpeed = 0
544
	hum.JumpPower = 0
545
		local pe = Instance.new("ParticleEmitter",char:FindFirstChild("Right Leg"))
546
	pe.Texture = "rbxassetid://272050333"
547
	pe.Size = NumberSequence.new(1)
548
	pe.LightEmission = 1
549
	pe.LightInfluence = 1
550
	pe.Rate = 1000000.000
551
	pe.Rotation = NumberRange.new(0, 360)
552
	pe.Speed = NumberRange.new(10)
553
	pe.Color = ColorSequence.new(Color3.new(0,170,0))
554
	pe.Lifetime = NumberRange.new(0.06)
555
	pe.LockedToPart = true
556
	local pe2 = Instance.new("ParticleEmitter",char:FindFirstChild("Right Leg"))
557
	pe2.Texture = "http://www.roblox.com/asset/?id=243098098"
558
	pe2.Size = NumberSequence.new(3)
559
	pe2.LightEmission = 1
560
	pe2.LightInfluence = 1
561
	pe2.Rate = 1000
562
	pe2.Color = ColorSequence.new(Color3.new(0,170,0))
563
	pe2.Rotation = NumberRange.new(0, 360)
564
	pe2.RotSpeed = NumberRange.new(2)
565
	pe2.Speed = NumberRange.new(15)
566
	pe2.SpreadAngle = Vector2.new(360,306)
567
	pe2.Lifetime = NumberRange.new(0.06)
568
	pe2.ZOffset = 1
569
	pe2.LockedToPart = true
570
	pe2.Name = "ParticleEmitter2"
571
	for l = 1, 30 do
572
      swait()
573
      lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.5) * ang(rd(6), rd(0), rd(0)), 0.02 + l / 40)
574
      lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(12), rd(0), rd(0)), 0.02 + l / 40)
575
      lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-8), rd(-7), rd(-10)), 0.02 + l / 40)
576
      lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
577
      lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-8), rd(7), rd(10)), 0.02 + l / 40)
578
      lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
579
      lerpz(RH, "C0", RHC0 * cf(0.4, 0.5, 0) * ang(rd(0), rd(-6), rd(8)), 0.02 + l / 40)
580
      lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
581
      lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(3), rd(0), rd(42)), 0.02 + l / 40)
582
      lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
583
	    end
584
	local S4 = Instance.new("Sound",game.Soundscape)
585
	S4.SoundId = "rbxassetid://991726501"
586
	S4.Volume = 1.5
587
	wait(0.3)
588
	local me = Instance.new("Part",workspace)
589
	  local mesh = Instance.new("SpecialMesh")
590
      mesh.MeshType = "FileMesh"
591
      mesh.MeshId = "rbxassetid://3270017"
592
      mesh.Scale = Vector3.new(12, 12, 0.05)
593
      mesh.Parent = me
594
me.Anchored = true
595
me.CanCollide = false
596
me.BrickColor = BrickColor.new("Institutional white")
597
me.CFrame = me.CFrame:lerp(me.CFrame * CFrame.new(0, 0, -22), 0.4)
598
		me.CFrame = me.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
599
		me.CFrame = hrp.CFrame * CFrame.new(0,-2.5,0)
600
		me.CFrame = me.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
601
		me.Anchored = false
602
		local me2 = Instance.new("Part",workspace)
603
	  local mesh2 = Instance.new("SpecialMesh")
604
      mesh2.MeshType = "FileMesh"
605
      mesh2.MeshId = "rbxassetid://3270017"
606
      mesh2.Scale = Vector3.new(12, 12, 0.05)
607
      mesh2.Parent = me2
608
me2.Anchored = true
609
me2.CanCollide = false
610
me2.BrickColor = BrickColor.new("Institutional white")
611
me2.CFrame = me2.CFrame:lerp(me2.CFrame * CFrame.new(0, 0, -22), 0.4)
612
		me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
613
		me2.CFrame = hrp.CFrame
614
		me2.CFrame = me2.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
615
		local bfor = Instance.new("BodyPosition")
616
    bfor.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
617
    bfor.P = 2500
618
    bfor.Position = me.Position + Vector3.new(0, 50, 0)
619
    bfor.Parent = me
620
me.Velocity = me.CFrame.lookVector *65
621
    local sound2 = Instance.new("Sound",game.Soundscape)
622
      sound2.SoundId = "rbxassetid://157878578"
623
      sound2.MaxDistance = 300
624
      sound2.EmitterSize = 20
625
      sound2.Volume = 2
626
      sound2.Pitch = 0.9
627
      local sound3 = Instance.new("Sound",game.Soundscape)
628
      sound3.SoundId = "rbxassetid://138250406"
629
      sound2.MaxDistance = 400
630
      sound2.EmitterSize = 30
631
      sound2.Volume = 1.5
632
      sound2.Pitch = 0.6
633
      sound2:Play()
634
sound3:Play()
635
636
S4:Play()
637
local part = Instance.new("Part",workspace)
638
part.Transparency = 1
639
part.CanCollide = false
640
part.Anchored = true
641
part.CFrame = char:FindFirstChild("Right Leg").CFrame
642
local smok = Instance.new("Smoke",part)
643
smok.Opacity = 1
644
smok.Size = 20
645
local woosh4 = Instance.new("Part",workspace)
646
woosh4.Size = Vector3.new(12, 12, 20)
647
woosh4.BrickColor = BrickColor.new("Institutional white")
648
local me4 = Instance.new("FileMesh",woosh4)
649
me4.MeshId = "rbxassetid://http://www.roblox.com/asset/?id=1051557"
650
me4.Scale = Vector3.new(1.3,0.1,1)
651
woosh4.CanCollide = false
652
woosh4.Anchored = true
653
		woosh4.CFrame = char:FindFirstChild("Right Arm").CFrame
654
		local woosh4 = Instance.new("Part",workspace)
655
woosh4.Size = Vector3.new(12, 12, 20)
656
woosh4.BrickColor = BrickColor.new("Institutional white")
657
local me4 = Instance.new("FileMesh",woosh4)
658
me4.MeshId = "http://www.roblox.com/asset/?id=1051557"
659
me4.Scale = Vector3.new(2,3.3,2)
660
woosh4.CanCollide = false
661
woosh4.Anchored = true
662
		woosh4.CFrame = char:FindFirstChild("Right Leg").CFrame
663
		Crater()
664
      for e = 1, 30 do
665
        wait()
666
hito(woosh4, 70, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
667
        hito(me2, 70, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
668
hito(me, 70, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
669
mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 1)
670
         me.Transparency =  me.Transparency + 0.04
671
         me.CFrame = me.CFrame:lerp( me.CFrame * CFrame.new(0, 0, -1), 0.4)
672
         me.CFrame =  me.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
673
 mesh2.Scale = mesh2.Scale + Vector3.new(8, 8, 3)
674
         me2.Transparency =  me2.Transparency + 0.04
675
         me2.CFrame = me2.CFrame:lerp( me2.CFrame * CFrame.new(0, 0, -1), 0.4)
676
         me2.CFrame =  me2.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
677
smok.Size = smok.Size + 10
678
woosh4.CFrame = woosh4.CFrame * CFrame.fromEulerAnglesXYZ(0,1,0)
679
woosh4.Transparency = woosh4.Transparency + 0.06
680
me4.Scale = me4.Scale + Vector3.new(2,4,2)
681
wait()
682
      end
683
 for _ = 1, 18 do
684
      swait()
685
      lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
686
      lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
687
      lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
688
      lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
689
      lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
690
      lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
691
      lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
692
      lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
693
      lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
694
      lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
695
    end
696
hum.WalkSpeed = 16
697
	hum.JumpPower = 50
698
woosh4:remove()
699
S4:remove()
700
pe:remove()
701
pe2:remove()
702
me2:remove()
703
		me:remove()
704
		for i = 0,1,0.01 do
705
			wait()
706
			smok.Opacity = smok.Opacity - 0.01
707
		end
708
		part:remove()
709
		sound2:remove()
710
sound3:remove()
711
712
end
713
714
715
 function lerpz(joint, prop, cfrmz, alp)
716
    joint[prop] = joint[prop]:lerp(cfrmz, alp)
717
  end
718
719
m.KeyDown:connect(function(key)
720
	key = key:lower()
721
	if key == "e" and LOADED == 1 then
722
		LOADED = LOADED -1
723
		smash()
724
		LOADED = LOADED +1
725
	end
726
end)
727
728
m.KeyDown:connect(function(key)
729
	key = key:lower()
730
	if key == "z" and LOADED == 1 then
731
		LOADED = LOADED -1
732
		ring()
733
		wait(1)
734
		LOADED = LOADED +1
735
	end
736
end)
737
738
739
m.KeyDown:connect(function(key)
740
	key = key:lower()
741
	if key == "r" and LOADED == 1 then
742
		LOADED = LOADED -1
743
		ring2()
744
		wait(1)
745
		LOADED = LOADED +1
746
	end
747
end)