View difference between Paste ID: A6zEzrjw and aRfHPb1h
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,game,owner = owner,game
3
local RealPlayer = Player
4
do
5
    print("FE Compatibility code by Mokiros")
6
    local rp = RealPlayer
7
    script.Parent = rp.Character
8
   
9
    --RemoteEvent for communicating
10
    local Event = Instance.new("RemoteEvent")
11
    Event.Name = "UserInput_Event"
12
 
13
    --Fake event to make stuff like Mouse.KeyDown work
14
    local function fakeEvent()
15
        local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
16
        t.connect = t.Connect
17
        return t
18
    end
19
 
20
    --Creating fake input objects with fake variables
21
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
22
    local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
23
    local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
24
        CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
25
    end}
26
    --Merged 2 functions into one by checking amount of arguments
27
    CAS.UnbindAction = CAS.BindAction
28
 
29
    --This function will trigger the events that have been :Connect()'ed
30
    local function te(self,ev,...)
31
        local t = m[ev]
32
        if t and t._fakeEvent then
33
            for _,f in pairs(t.Functions) do
34
                f(...)
35
            end
36
        end
37
    end
38
    m.TrigEvent = te
39
    UIS.TrigEvent = te
40
 
41
    Event.OnServerEvent:Connect(function(plr,io)
42
        if plr~=rp then return end
43
        m.Target = io.Target
44
        m.Hit = io.Hit
45
        if not io.isMouse then
46
            local b = io.UserInputState == Enum.UserInputState.Begin
47
            if io.UserInputType == Enum.UserInputType.MouseButton1 then
48
                return m:TrigEvent(b and "Button1Down" or "Button1Up")
49
            end
50
            for _,t in pairs(CAS.Actions) do
51
                for _,k in pairs(t.Keys) do
52
                    if k==io.KeyCode then
53
                        t.Function(t.Name,io.UserInputState,io)
54
                    end
55
                end
56
            end
57
            m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
58
            UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
59
        end
60
    end)
61
    Event.Parent = NLS([==[
62
    local Player = game:GetService("Players").LocalPlayer
63
    local Event = script:WaitForChild("UserInput_Event")
64
 
65
    local Mouse = Player:GetMouse()
66
    local UIS = game:GetService("UserInputService")
67
    local input = function(io,a)
68
        if a then return end
69
        --Since InputObject is a client-side instance, we create and pass table instead
70
        Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
71
    end
72
    UIS.InputBegan:Connect(input)
73
    UIS.InputEnded:Connect(input)
74
 
75
    local h,t
76
    --Give the server mouse data 30 times every second, but only if the values changed
77
    --If player is not moving their mouse, client won't fire events
78
    while wait(1/30) do
79
        if h~=Mouse.Hit or t~=Mouse.Target then
80
            h,t=Mouse.Hit,Mouse.Target
81
            Event:FireServer({isMouse=true,Target=t,Hit=h})
82
        end
83
    end]==],Player.Character)
84
 
85
    ----Sandboxed game object that allows the usage of client-side methods and services
86
    --Real game object
87
    local _rg = game
88
 
89
    --Metatable for fake service
90
    local fsmt = {
91
        __index = function(self,k)
92
            local s = rawget(self,"_RealService")
93
            if s then return s[k] end
94
        end,
95
        __newindex = function(self,k,v)
96
            local s = rawget(self,"_RealService")
97
            if s then s[k]=v end
98
        end,
99
        __call = function(self,...)
100
            local s = rawget(self,"_RealService")
101
            if s then return s(...) end
102
        end
103
    }
104
    local function FakeService(t,RealService)
105
        t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
106
        return setmetatable(t,fsmt)
107
    end
108
 
109
    --Fake game object
110
    local g = {
111
        GetService = function(self,s)
112
            return self[s]
113
        end,
114
        Players = FakeService({
115
            LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
116
        },"Players"),
117
        UserInputService = FakeService(UIS,"UserInputService"),
118
        ContextActionService = FakeService(CAS,"ContextActionService"),
119
    }
120
    rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
121
    g.service = g.GetService
122
   
123
    g.RunService = FakeService({
124
        RenderStepped = _rg:GetService("RunService").Heartbeat,
125
        BindToRenderStep = function(self,name,_,fun)
126
            self._btrs[name] = self.Heartbeat:Connect(fun)
127
        end,
128
        UnbindFromRenderStep = function(self,name)
129
            self._btrs[name]:Disconnect()
130
        end,
131
    },"RunService")
132
 
133
    setmetatable(g,{
134
        __index=function(self,s)
135
            return _rg:GetService(s) or typeof(_rg[s])=="function"
136
            and function(_,...)return _rg[s](_rg,...)end or _rg[s]
137
        end,
138
        __newindex = fsmt.__newindex,
139
        __call = fsmt.__call
140
    })
141
    --Changing owner to fake player object to support owner:GetMouse()
142
    game,owner = g,g.Players.LocalPlayer
143
end
144
local plr = game:GetService("Players").LocalPlayer
145
local plrg = plr.PlayerGui
146
local mouse = plr:GetMouse()
147
local char = plr.Character
148
local h = char.Head
149
local t = char.Torso
150
local ra = char["Right Arm"]
151
local la = char["Left Arm"]
152
local rl = char["Right Leg"]
153
local ll = char["Left Leg"]
154
local rs = t["Right Shoulder"]
155
local ls = t["Left Shoulder"]
156
local rh = t["Right Hip"]
157
local lh = t["Left Hip"]
158
local nec = t.Neck
159
local rad = math.rad
160
local anim = "idle"
161
local using = true
162
local supermode = false
163
local canattacc = false
164
local songs = {"rbxassetid://147461803","rbxassetid://1484225071"}
165
local rut = char.HumanoidRootPart
166
local rutj = rut.RootJoint
167
local hum = char:FindFirstChildOfClass("Humanoid")
168
hum.WalkSpeed = 0 hum.JumpPower = 0
169
local ff = Instance.new("ForceField",char) ff.Visible = false
170
local debrs = game:GetService("Debris")
171
local mus local crack local expls
172
local cursong = 1
173
expls = Instance.new("Sound",workspace) expls.Name = "Explso" expls.Volume = 5 expls.SoundId = "rbxassetid://262562442"
174
local hitbox = Instance.new("Part",ra) hitbox.Size = Vector3.new(1,1,1) hitbox.CanCollide = false hitbox.Transparency = 1
175
local hitboxw = Instance.new("Weld",hitbox) hitboxw.Part0 = ra hitboxw.Part1 = hitbox hitboxw.C0 = CFrame.new(0,-.7,0)
176
177-
Player = owner
177+
local naeeym2 = Instance.new("BillboardGui",Character)
178-
    Character = Player.Character
178+
naeeym2.AlwaysOnTop = true
179-
    local txt = Instance.new("BillboardGui", Character)
179+
naeeym2.Size = UDim2.new(5,35,2,35)
180-
    txt.Adornee = Character.Head
180+
naeeym2.StudsOffset = Vector3.new(0,3,0)
181-
    txt.Name = "_status"
181+
naeeym2.Adornee = Character.Head
182-
    txt.Size = UDim2.new(2, 0, 1.2, 0)
182+
naeeym2.Name = "Name"
183-
    txt.StudsOffset = Vector3.new(-9, 8, 0)
183+
local tecks2 = Instance.new("TextLabel",naeeym2)
184-
    local text = Instance.new("TextLabel", txt)
184+
tecks2.BackgroundTransparency = 1
185-
    text.Size = UDim2.new(10, 0, 7, 0)
185+
tecks2.TextScaled = true
186-
    text.FontSize = "Size24"
186+
tecks2.BorderSizePixel = 0
187-
    text.TextScaled = true
187+
tecks2.Text = "Insane"
188-
    text.TextTransparency = 0
188+
tecks2.Font = "Code"
189-
    text.BackgroundTransparency = 1
189+
tecks2.TextSize = 30
190-
    text.TextTransparency = 0
190+
tecks2.TextTransparency = 1
191-
    text.TextStrokeTransparency = 0
191+
tecks2.TextStrokeTransparency = 1
192
tecks2.TextColor3 = Color3.new(255/255,0/255,0/255)
193-
wait(1.5)
193+
tecks2.Size = UDim2.new(1,0,0.5,0)
194
tecks2.Parent = naeeym2
195-
    text.Font = "Antique"
195+
196-
    text.TextStrokeColor3 = Color3.new(255,0,0)
196+
197-
        text.Text = "Crazy"
197+
198
local naeeym2 = Instance.new("BillboardGui",Character)
199
naeeym2.AlwaysOnTop = true
200-
wait(0.2)
200+
naeeym2.Size = UDim2.new(5,35,2,35)
201
naeeym2.StudsOffset = Vector3.new(0,3,0)
202-
    text.Font = "Antique"
202+
naeeym2.Adornee = Character.Head
203-
    text.TextStrokeColor3 = Color3.new(255,0,0)
203+
naeeym2.Name = "Name"
204-
        text.Text = "cRazy"
204+
local tecks2 = Instance.new("TextLabel",naeeym2)
205
tecks2.BackgroundTransparency = 1
206-
wait(0.2)
206+
tecks2.TextScaled = true
207
tecks2.BorderSizePixel = 0
208-
    text.Font = "Antique"
208+
tecks2.Text = "iNsane"
209-
    text.TextStrokeColor3 = Color3.new(255,0,0)
209+
tecks2.Font = "Code"
210-
        text.Text = "crAzy"
210+
tecks2.TextSize = 30
211
tecks2.TextTransparency = 1
212-
wait(0.2)
212+
tecks2.TextStrokeTransparency = 1
213
tecks2.TextColor3 = Color3.new(255/255,0/255,0/255)
214-
    text.Font = "Antique"
214+
tecks2.Size = UDim2.new(1,0,0.5,0)
215-
    text.TextStrokeColor3 = Color3.new(255,0,0)
215+
tecks2.Parent = naeeym2
216-
        text.Text = "craZy"
216+
217
local naeeym2 = Instance.new("BillboardGui",Character)
218-
wait(0.2)
218+
naeeym2.AlwaysOnTop = true
219
naeeym2.Size = UDim2.new(5,35,2,35)
220-
    text.Font = "Antique"
220+
naeeym2.StudsOffset = Vector3.new(0,3,0)
221-
    text.TextStrokeColor3 = Color3.new(255,0,0)
221+
naeeym2.Adornee = Character.Head
222-
        text.Text = "crazY"
222+
naeeym2.Name = "Name"
223
local tecks2 = Instance.new("TextLabel",naeeym2)
224-
wait(0.2)
224+
tecks2.BackgroundTransparency = 1
225
tecks2.TextScaled = true
226-
    text.Font = "Antique"
226+
tecks2.BorderSizePixel = 0
227-
    text.TextStrokeColor3 = Color3.new(255,0,0)
227+
tecks2.Text = "inSane"
228-
        text.Text = "CRAZY"
228+
tecks2.Font = "Code"
229
tecks2.TextSize = 30
230
tecks2.TextTransparency = 1
231
tecks2.TextStrokeTransparency = 1
232
tecks2.TextColor3 = Color3.new(255/255,0/255,0/255)
233
tecks2.Size = UDim2.new(1,0,0.5,0)
234
tecks2.Parent = naeeym2
235
236
237
local naeeym2 = Instance.new("BillboardGui",Character)
238
naeeym2.AlwaysOnTop = true
239
naeeym2.Size = UDim2.new(5,35,2,35)
240
naeeym2.StudsOffset = Vector3.new(0,3,0)
241
naeeym2.Adornee = Character.Head
242
naeeym2.Name = "Name"
243
local tecks2 = Instance.new("TextLabel",naeeym2)
244
tecks2.BackgroundTransparency = 1
245
tecks2.TextScaled = true
246
tecks2.BorderSizePixel = 0
247
tecks2.Text = "insAne"
248
tecks2.Font = "Code"
249
tecks2.TextSize = 30
250
tecks2.TextTransparency = 1
251
tecks2.TextStrokeTransparency = 1
252
tecks2.TextColor3 = Color3.new(255/255,0/255,0/255)
253
tecks2.Size = UDim2.new(1,0,0.5,0)
254
tecks2.Parent = naeeym2
255
256
local naeeym2 = Instance.new("BillboardGui",Character)
257
naeeym2.AlwaysOnTop = true
258
naeeym2.Size = UDim2.new(5,35,2,35)
259
naeeym2.StudsOffset = Vector3.new(0,3,0)
260
naeeym2.Adornee = Character.Head
261
naeeym2.Name = "Name"
262
local tecks2 = Instance.new("TextLabel",naeeym2)
263
tecks2.BackgroundTransparency = 1
264
tecks2.TextScaled = true
265
tecks2.BorderSizePixel = 0
266
tecks2.Text = "insaNe"
267
tecks2.Font = "Code"
268
tecks2.TextSize = 30
269
tecks2.TextTransparency = 1
270
tecks2.TextStrokeTransparency = 1
271
tecks2.TextColor3 = Color3.new(255/255,0/255,0/255)
272
tecks2.Size = UDim2.new(1,0,0.5,0)
273
tecks2.Parent = naeeym2
274
275
local naeeym2 = Instance.new("BillboardGui",Character)
276
naeeym2.AlwaysOnTop = true
277
naeeym2.Size = UDim2.new(5,35,2,35)
278
naeeym2.StudsOffset = Vector3.new(0,3,0)
279
naeeym2.Adornee = Character.Head
280
naeeym2.Name = "Name"
281
local tecks2 = Instance.new("TextLabel",naeeym2)
282
tecks2.BackgroundTransparency = 1
283
tecks2.TextScaled = true
284
tecks2.BorderSizePixel = 0
285
tecks2.Text = "insanE"
286
tecks2.Font = "Code"
287
tecks2.TextSize = 30
288
tecks2.TextTransparency = 1
289
tecks2.TextStrokeTransparency = 1
290
tecks2.TextColor3 = Color3.new(255/255,0/255,0/255)
291
tecks2.Size = UDim2.new(1,0,0.5,0)
292
tecks2.Parent = naeeym2
293
294
local naeeym2 = Instance.new("BillboardGui",Character)
295
naeeym2.AlwaysOnTop = true
296
naeeym2.Size = UDim2.new(5,35,2,35)
297
naeeym2.StudsOffset = Vector3.new(0,3,0)
298
naeeym2.Adornee = Character.Head
299
naeeym2.Name = "Name"
300
local tecks2 = Instance.new("TextLabel",naeeym2)
301
tecks2.BackgroundTransparency = 1
302
tecks2.TextScaled = true
303
tecks2.BorderSizePixel = 0
304
tecks2.Text = "insanE"
305
tecks2.Font = "Code"
306
tecks2.TextSize = 30
307
tecks2.TextTransparency = 1
308
tecks2.TextStrokeTransparency = 1
309
tecks2.TextColor3 = Color3.new(255/255,0/255,0/255)
310
tecks2.Size = UDim2.new(1,0,0.5,0)
311
tecks2.Parent = naeeym2
312
313
local naeeym2 = Instance.new("BillboardGui",Character)
314
naeeym2.AlwaysOnTop = true
315
naeeym2.Size = UDim2.new(5,35,2,35)
316
naeeym2.StudsOffset = Vector3.new(0,3,0)
317
naeeym2.Adornee = Character.Head
318
naeeym2.Name = "Name"
319
local tecks2 = Instance.new("TextLabel",naeeym2)
320
tecks2.BackgroundTransparency = 1
321
tecks2.TextScaled = true
322
tecks2.BorderSizePixel = 0
323
tecks2.Text = "insaNe"
324
tecks2.Font = "Code"
325
tecks2.TextSize = 30
326
tecks2.TextTransparency = 1
327
tecks2.TextStrokeTransparency = 1
328
tecks2.TextColor3 = Color3.new(255/255,0/255,0/255)
329
tecks2.Size = UDim2.new(1,0,0.5,0)
330
tecks2.Parent = naeeym2
331
332
local naeeym2 = Instance.new("BillboardGui",Character)
333
naeeym2.AlwaysOnTop = true
334
naeeym2.Size = UDim2.new(5,35,2,35)
335
naeeym2.StudsOffset = Vector3.new(0,3,0)
336
naeeym2.Adornee = Character.Head
337
naeeym2.Name = "Name"
338
local tecks2 = Instance.new("TextLabel",naeeym2)
339
tecks2.BackgroundTransparency = 1
340
tecks2.TextScaled = true
341
tecks2.BorderSizePixel = 0
342
tecks2.Text = "insAne"
343
tecks2.Font = "Code"
344
tecks2.TextSize = 30
345
tecks2.TextTransparency = 1
346
tecks2.TextStrokeTransparency = 1
347
tecks2.TextColor3 = Color3.new(255/255,0/255,0/255)
348
tecks2.Size = UDim2.new(1,0,0.5,0)
349
tecks2.Parent = naeeym2
350
351
local naeeym2 = Instance.new("BillboardGui",Character)
352
naeeym2.AlwaysOnTop = true
353
naeeym2.Size = UDim2.new(5,35,2,35)
354
naeeym2.StudsOffset = Vector3.new(0,3,0)
355
naeeym2.Adornee = Character.Head
356
naeeym2.Name = "Name"
357
local tecks2 = Instance.new("TextLabel",naeeym2)
358
tecks2.BackgroundTransparency = 1
359
tecks2.TextScaled = true
360
tecks2.BorderSizePixel = 0
361
tecks2.Text = "inSane"
362
tecks2.Font = "Code"
363
tecks2.TextSize = 30
364
tecks2.TextTransparency = 1
365
tecks2.TextStrokeTransparency = 1
366
tecks2.TextColor3 = Color3.new(255/255,0/255,0/255)
367
tecks2.Size = UDim2.new(1,0,0.5,0)
368
tecks2.Parent = naeeym2
369
370
local naeeym2 = Instance.new("BillboardGui",Character)
371
naeeym2.AlwaysOnTop = true
372
naeeym2.Size = UDim2.new(5,35,2,35)
373
naeeym2.StudsOffset = Vector3.new(0,3,0)
374
naeeym2.Adornee = Character.Head
375
naeeym2.Name = "Name"
376
local tecks2 = Instance.new("TextLabel",naeeym2)
377
tecks2.BackgroundTransparency = 1
378
tecks2.TextScaled = true
379
tecks2.BorderSizePixel = 0
380
tecks2.Text = "iNsane"
381
tecks2.Font = "Code"
382
tecks2.TextSize = 30
383
tecks2.TextTransparency = 1
384
tecks2.TextStrokeTransparency = 1
385
tecks2.TextColor3 = Color3.new(255/255,0/255,0/255)
386
tecks2.Size = UDim2.new(1,0,0.5,0)
387
tecks2.Parent = naeeym2
388
389
local naeeym2 = Instance.new("BillboardGui",Character)
390
naeeym2.AlwaysOnTop = true
391
naeeym2.Size = UDim2.new(5,35,2,35)
392
naeeym2.StudsOffset = Vector3.new(0,3,0)
393
naeeym2.Adornee = Character.Head
394
naeeym2.Name = "Name"
395
local tecks2 = Instance.new("TextLabel",naeeym2)
396
tecks2.BackgroundTransparency = 1
397
tecks2.TextScaled = true
398
tecks2.BorderSizePixel = 0
399
tecks2.Text = "Insane"
400
tecks2.Font = "Code"
401
tecks2.TextSize = 30
402
tecks2.TextTransparency = 1
403
tecks2.TextStrokeTransparency = 1
404
tecks2.TextColor3 = Color3.new(255/255,0/255,0/255)
405
tecks2.Size = UDim2.new(1,0,0.5,0)
406
tecks2.Parent = naeeym2
407
408
local naeeym2 = Instance.new("BillboardGui",Character)
409
naeeym2.AlwaysOnTop = true
410
naeeym2.Size = UDim2.new(5,35,2,35)
411
naeeym2.StudsOffset = Vector3.new(0,3,0)
412
naeeym2.Adornee = Character.Head
413
naeeym2.Name = "Name"
414
local tecks2 = Instance.new("TextLabel",naeeym2)
415
tecks2.BackgroundTransparency = 1
416
tecks2.TextScaled = true
417
tecks2.BorderSizePixel = 0
418
tecks2.Text = "inSAne"
419
tecks2.Font = "Code"
420
tecks2.TextSize = 30
421
tecks2.TextTransparency = 1
422
tecks2.TextStrokeTransparency = 1
423
tecks2.TextColor3 = Color3.new(255/255,0/255,0/255)
424
tecks2.Size = UDim2.new(1,0,0.5,0)
425
tecks2.Parent = naeeym2
426
427
local naeeym2 = Instance.new("BillboardGui",Character)
428
naeeym2.AlwaysOnTop = true
429
naeeym2.Size = UDim2.new(5,35,2,35)
430
naeeym2.StudsOffset = Vector3.new(0,3,0)
431
naeeym2.Adornee = Character.Head
432
naeeym2.Name = "Name"
433
local tecks2 = Instance.new("TextLabel",naeeym2)
434
tecks2.BackgroundTransparency = 1
435
tecks2.TextScaled = true
436
tecks2.BorderSizePixel = 0
437
tecks2.Text = "INSANE"
438
tecks2.Font = "Code"
439
tecks2.TextSize = 30
440
tecks2.TextTransparency = 1
441
tecks2.TextStrokeTransparency = 1
442
tecks2.TextColor3 = Color3.new(255/255,0/255,0/255)
443
tecks2.Size = UDim2.new(1,0,0.5,0)
444
tecks2.Parent = naeeym2
445
446
447
Player = game:GetService("Players").LocalPlayer
448
PlayerGui = Player.PlayerGui
449
Cam = workspace.CurrentCamera
450
Backpack = Player.Backpack
451
Character = Player.Character
452
Humanoid = Character.Humanoid
453
Mouse = Player:GetMouse()
454
RootPart = Character["HumanoidRootPart"]
455
Torso = Character["Torso"]
456
Head = Character["Head"]
457
RightArm = Character["Right Arm"]
458
LeftArm = Character["Left Arm"]
459
RightLeg = Character["Right Leg"]
460
LeftLeg = Character["Left Leg"]
461
RootJoint = RootPart["RootJoint"]
462
Neck = Torso["Neck"]
463
RightShoulder = Torso["Right Shoulder"]
464
LeftShoulder = Torso["Left Shoulder"]
465
RightHip = Torso["Right Hip"]
466
LeftHip = Torso["Left Hip"]
467
local sick = Instance.new("Sound",Torso)
468
sick.SoundId = "rbxassetid://145082678"
469
sick.Looped = true
470
sick.Pitch = 1
471
sick.Volume = 10
472
sick:Play()
473
474
475
ArtificialHB = Instance.new("BindableEvent", script)
476
ArtificialHB.Name = "Heartbeat"
477
script:WaitForChild("Heartbeat")
478
frame = 1 / 60
479
tf = 0
480
allowframeloss = false
481
tossremainder = false
482
lastframe = tick()
483
script.Heartbeat:Fire()
484
game:GetService("RunService").Heartbeat:connect(function(s, p)
485
    tf = tf + s
486
    if tf >= frame then
487
        if allowframeloss then
488
            script.Heartbeat:Fire()
489
            lastframe = tick()
490
        else
491
            for i = 1, math.floor(tf / frame) do
492
                script.Heartbeat:Fire()
493
            end
494
            lastframe = tick()
495
        end
496
        if tossremainder then
497
            tf = 0
498
        else
499
            tf = tf - frame * math.floor(tf / frame)
500
        end
501
    end
502
end)
503
function swait(num)
504
    if num == 0 or num == nil then
505
        ArtificialHB.Event:wait()
506
    else
507
        for i = 0, num do
508
            ArtificialHB.Event:wait()
509
        end
510
    end
511
end
512
function sound(parent,id,vol,pit)
513
    local sound = Instance.new("Sound",parent)
514
    sound.Volume = vol
515
    sound.SoundId = "rbxassetid://"..id
516
    sound.Pitch = pit
517
    sound:Play()
518
    coroutine.resume(coroutine.create(function()
519
   
520
    repeat
521
        swait()
522
    until sound.Playing == false
523
    sound:Destroy()
524
    end))
525
    end
526
function dest(hit,type)
527
	local size = 50
528
	if type == "big" then
529
		size = 300
530
	end
531
	if hit.Name ~= "Destructed" and hit.Name ~= "ExplEff" and hit.Parent ~= char and hit.Parent.Parent ~= char then
532
	if hit.Size.x <size and hit.Size.y <size and hit.Size.z <size then
533
		if hit:IsA("Seat") or hit:IsA("VehicleSeat") then
534
			hit.Parent = nil
535
		end
536
		hit:ClearAllChildren()
537
		hit.Anchored = false hit.CanCollide = true hit.Parent = workspace
538
		hit.Name = "Destructed"
539
		if hit:IsA("Part") then
540
			hit.FormFactor = "Custom"
541
		end
542
		hit.Size = Vector3.new(hit.Size.x/2,hit.Size.y/2,hit.Size.z/2)
543
		hit.CFrame = hit.CFrame * CFrame.new(hit.Size.x/2,hit.Size.y/2,hit.Size.z/2)
544
		local clone = hit:Clone() clone.Parent = workspace
545
		local clone1 = hit:Clone() clone1.Parent = workspace
546
		local clone2 = hit:Clone() clone2.Parent = workspace
547
		local clone3 = hit:Clone() clone3.Parent = workspace
548
		local clone4 = hit:Clone() clone4.Parent = workspace
549
		local clone5 = hit:Clone() clone5.Parent = workspace
550
		local clone6 = hit:Clone() clone6.Parent = workspace
551
		clone.CFrame = hit.CFrame * CFrame.new(0,-hit.Size.y,0)
552
		clone1.CFrame = hit.CFrame * CFrame.new(-hit.Size.x,-hit.Size.y,0)
553
		clone2.CFrame = hit.CFrame * CFrame.new(-hit.Size.x,0,0)
554
		clone3.CFrame = hit.CFrame * CFrame.new(0,0,-hit.Size.z)
555
		clone4.CFrame = clone.CFrame * CFrame.new(0,0,-clone.Size.z)
556
		clone5.CFrame = clone1.CFrame * CFrame.new(0,0,-clone1.Size.z)
557
		clone6.CFrame = clone2.CFrame * CFrame.new(0,0,-clone2.Size.z)
558
		local parts = {hit,clone,clone1,clone2,clone3,clone4,clone5,clone6}
559
		local partsd = 1
560
		for i = 1,#parts do
561
		debrs:AddItem(parts[partsd],math.random(6,17))
562
		partsd = partsd +1
563
		end
564
	end
565
	end
566
end
567
hitbox.Touched:connect(function(hit)
568
	if hit.Size.x <150 and hit.Size.y <150 and hit.Size.z <150 and canattacc then
569
		if hit.Parent ~= char or hit.Parent.Parent ~= char then
570
		if hit:IsA("Seat") or hit:IsA("VehicleSeat") then
571
			hit.Parent = nil
572
		end
573
		crack:Play()
574
		canattacc = false
575
		hit:ClearAllChildren()
576
		hit.Anchored = false hit.CanCollide = true hit.Parent = workspace
577
		hit.Name = "Destructed"
578
		hit:BreakJoints()
579
		hit.Size = Vector3.new(hit.Size.x/2,hit.Size.y/2,hit.Size.z/2)
580
		hit.CFrame = hit.CFrame * CFrame.new(hit.Size.x/2,hit.Size.y/2,hit.Size.z/2)
581
		local clone = hit:Clone() clone.Parent = workspace
582
		local clone1 = hit:Clone() clone1.Parent = workspace
583
		local clone2 = hit:Clone() clone2.Parent = workspace
584
		local clone3 = hit:Clone() clone3.Parent = workspace
585
		local clone4 = hit:Clone() clone4.Parent = workspace
586
		local clone5 = hit:Clone() clone5.Parent = workspace
587
		local clone6 = hit:Clone() clone6.Parent = workspace
588
		clone.CFrame = hit.CFrame * CFrame.new(0,-hit.Size.y,0)
589
		clone1.CFrame = hit.CFrame * CFrame.new(-hit.Size.x,-hit.Size.y,0)
590
		clone2.CFrame = hit.CFrame * CFrame.new(-hit.Size.x,0,0)
591
		clone3.CFrame = hit.CFrame * CFrame.new(0,0,-hit.Size.z)
592
		clone4.CFrame = clone.CFrame * CFrame.new(0,0,-clone.Size.z)
593
		clone5.CFrame = clone1.CFrame * CFrame.new(0,0,-clone1.Size.z)
594
		clone6.CFrame = clone2.CFrame * CFrame.new(0,0,-clone2.Size.z)
595
		local parts = {hit,clone,clone1,clone2,clone3,clone4,clone5,clone6}
596
		local partsd = 1
597
		for i = 1,#parts do
598
		debrs:AddItem(parts[partsd],math.random(6,17))
599
		partsd = partsd +1
600
		end
601
		end
602
	end
603
end)
604
605
function intro()
606
	local ani = char:WaitForChild("Animate")
607
	local anima = hum:WaitForChild("Animator")
608
	if ani ~= nil then
609
	ani:Destroy()
610
	end
611
	if anima ~= nil then
612
	anima:Destroy()
613
	end
614
	for i = 0,.4,.02 do
615
		nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(50),rad(180),rad(0)),i)
616
		rutj.C0 = rutj.C0:lerp(CFrame.new(0,-2,0) * CFrame.Angles(rad(-160),rad(0),rad(180)),i)
617
		rs.C0 = rs.C0:lerp(CFrame.new(1,.4,0) * CFrame.Angles(rad(70),rad(90),rad(0)),i)
618
          ls.C0 = ls.C0:lerp(CFrame.new(-1,.4,0) * CFrame.Angles(rad(70),rad(-90),rad(0)),i)
619
		rh.C0 = rh.C0:lerp(CFrame.new(1,-.2,-.7) * CFrame.Angles(rad(-20),rad(80),rad(0)),i)
620
		lh.C0 = lh.C0:lerp(CFrame.new(-1,-.3,-.6) * CFrame.Angles(rad(-20),rad(-80),rad(0)),i)
621
		swait()
622
	end
623
	for i = 1,50 do
624
		nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(50),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),1)
625
		wait()
626
	end
627
	char["Body Colors"]:Destroy()
628
	h.BrickColor = BrickColor.new("Really black")
629
	t.BrickColor = BrickColor.new("Really black")
630
	ra.BrickColor = BrickColor.new("Really black")
631
	la.BrickColor = BrickColor.new("Really black")
632
	rl.BrickColor = BrickColor.new("Really black")
633
	ll.BrickColor = BrickColor.new("Really black")
634
	local eff = Instance.new("Part",workspace) eff.Size = Vector3.new(1,1,1) eff.Name = "ExplEff1" eff.CanCollide = false eff.Anchored = true eff.BrickColor = BrickColor.new("Deep orange") eff.CFrame = rut.CFrame eff.Material = "Neon"
635
	expls:Play()
636
	local cf = rut.CFrame
637
	coroutine.resume(coroutine.create(function()
638
	for i = 0,.6,.016 do
639
		eff.CFrame = eff.CFrame:lerp(cf,i)
640
		eff.CFrame = eff.CFrame * CFrame.Angles(rad(math.random(-180,180)),rad(math.random(-180,180)),rad(math.random(-180,180)))
641
		eff.Size = eff.Size:lerp(Vector3.new(25,25,25),i)
642
		eff.Color = eff.Color:lerp(Color3.new(160,0,0),i)
643
		eff.Transparency = eff.Transparency +.027
644
		if eff.Transparency > .99 then
645
			eff:Destroy()
646
		end
647
		swait()
648
	end
649
	end))
650
	using = false
651
end
652
intro()
653
function explos(pos)
654
	local eff = Instance.new("Part",workspace) eff.Size = Vector3.new(1,1,1) eff.Name = "ExplEff1" eff.CanCollide = true eff.BrickColor = BrickColor.new("Deep orange") eff.CFrame = pos.CFrame eff.Material = "Neon"
655
		local eff2 = Instance.new("Part",eff) eff2.Name = "ExplEff" eff2.Size = Vector3.new(25,70,25) eff2.CanCollide = false eff2.Anchored = true eff2.Material = "Neon" eff2.BrickColor = eff.BrickColor
656
		local eff2m = Instance.new("SpecialMesh",eff2) eff2m.MeshType = Enum.MeshType.Sphere eff2.CFrame = eff.CFrame
657
		local cf = pos.CFrame
658
		expls:Play()
659
		eff.Touched:connect(function(hit)
660
			dest(hit)
661
		end)
662
		coroutine.resume(coroutine.create(function()
663
		for i = 0,.6,.016 do
664
			eff.CFrame = eff.CFrame:lerp(cf,i)
665
			eff.CFrame = eff.CFrame * CFrame.Angles(rad(math.random(-180,180)),rad(math.random(-180,180)),rad(math.random(-180,180)))
666
			eff.Size = eff.Size:lerp(Vector3.new(25,25,25),i)
667
			eff.Color = eff.Color:lerp(Color3.new(160,0,0),i)
668
			eff2.Color = eff2.Color:lerp(Color3.new(160,0,0),i)
669
			eff.Transparency = eff.Transparency +.027
670
			eff2.Transparency = eff2.Transparency +.027
671
			eff2.Size = eff2.Size:lerp(Vector3.new(4,125,4),i)
672
			eff2.CFrame = CFrame.new(eff.CFrame.p,eff2.CFrame.p * Vector3.new(eff2.CFrame.p.x,eff2.CFrame.p.y,eff2.CFrame.p.z))
673
			if eff.Transparency > .99 then
674
				eff:Destroy()
675
				eff2:Destroy()
676
			elseif eff.Transparency >.3 and eff.Transparency <.34 then
677
				local boom = Instance.new("Explosion",workspace) boom.BlastRadius = 20 boom.Position = eff.Position boom.BlastPressure = 100000 boom.Visible = false
678
			end
679
			swait()
680
		end
681
	end))
682
end
683
function bigexplos(pos)
684
	local eff = Instance.new("Part",workspace) eff.Size = Vector3.new(1,1,1) eff.Name = "ExplEff1" eff.CanCollide = false eff.BrickColor = BrickColor.new("Deep orange") eff.CFrame = pos.CFrame eff.Material = "Neon"
685
		local cf = pos.CFrame
686
		expls:Play()
687
		eff.Touched:connect(function(hit)
688
			if hit.Anchored == true then
689
			dest(hit)
690
			else
691
				dest(hit,"big")
692
			end
693
		end)
694
		coroutine.resume(coroutine.create(function()
695
		for i = 0,.6,.016 do
696
			eff.CFrame = eff.CFrame:lerp(cf,i)
697
			eff.CFrame = eff.CFrame * CFrame.Angles(rad(math.random(-180,180)),rad(math.random(-180,180)),rad(math.random(-180,180)))
698
			eff.Size = eff.Size:lerp(Vector3.new(600,600,600),i)
699
			eff.Color = eff.Color:lerp(Color3.new(160,0,0),i)
700
			eff.Transparency = eff.Transparency +.027
701
			if eff.Transparency > .99 then
702
				eff:Destroy()
703
			elseif eff.Transparency >.3 and eff.Transparency <.34 then
704
				local boom = Instance.new("Explosion",workspace) boom.BlastRadius = 20 boom.Position = eff.Position boom.BlastPressure = 100000 boom.Visible = false
705
			end
706
			swait()
707
		end
708
	end))
709
end
710
function gren(from,to)
711
	local rocc = Instance.new("Part",workspace) rocc.Name = "Rock" rocc.Size = Vector3.new(.3,1.4,.3)
712
    rocc.CFrame = from
713
    local rmesh = Instance.new("SpecialMesh",rocc) rmesh.MeshType = "FileMesh" rmesh.MeshId = "rbxassetid://431532852" rmesh.TextureId = "rbxassetid://431532899" rmesh.Scale = Vector3.new(.005,.005,.005)
714
   local cfm = CFrame.new(rocc.CFrame.p,to.p)
715
	local vel = Instance.new("BodyVelocity",rocc) vel.Velocity = cfm.lookVector * 100
716
	coroutine.resume(coroutine.create(function()
717
		wait(2.91)
718
		explos(rocc)
719
		end))
720
	debrs:AddItem(vel,.1)
721
	debrs:AddItem(rocc,2.9)
722
end
723
function throwgrenade()
724
	using = true
725
		for i = 0,.4,.02 do
726
			nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(80),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),i)
727
			rutj.C0 = rutj.C0:lerp(CFrame.new(0,-.1,0) * CFrame.Angles(rad(-70),rad(0),rad(180)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
728
			rs.C0 = rs.C0:lerp(CFrame.new(1,.3,0) * CFrame.Angles(rad(20),rad(90),rad(180)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i)
729
               ls.C0 = ls.C0:lerp(CFrame.new(-1,.3,0) * CFrame.Angles(rad(20),rad(-90),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i)
730
			rh.C0 = rh.C0:lerp(CFrame.new(1,-1,-.3) * CFrame.Angles(rad(-25),rad(100),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
731
			lh.C0 = lh.C0:lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(-20),rad(-80),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
732
			swait()
733
		end
734
		gren(ra.CFrame * CFrame.new(0,-1.4,0),mouse.Hit)
735
		for i = 0,.4,.04 do
736
			nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(50),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),i)
737
			rutj.C0 = rutj.C0:lerp(CFrame.new(0,-.1,0) * CFrame.Angles(rad(-110),rad(0),rad(180)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
738
			rs.C0 = rs.C0:lerp(CFrame.new(1,.3,0) * CFrame.Angles(rad(20),rad(90),rad(70)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i)
739
               ls.C0 = ls.C0:lerp(CFrame.new(-1,.3,0) * CFrame.Angles(rad(20),rad(-90),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i)
740
			rh.C0 = rh.C0:lerp(CFrame.new(1,-1,-.3) * CFrame.Angles(rad(25),rad(100),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
741
			lh.C0 = lh.C0:lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(20),rad(-80),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
742
			swait()
743
		end
744
		using = false
745
end
746
local speed1 = .03
747
local speed2 = .05
748
function swng()
749
	if supermode == true then
750
	speed1 = .05
751
	speed2 = .08
752
	else
753
	speed1 = .03
754
	speed2 = .05
755
	end
756
	using = true
757
	for i = 0,.4,speed1 do
758
		nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(80),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),i)
759
		rutj.C0 = rutj.C0:lerp(CFrame.new(0,-.1,0) * CFrame.Angles(rad(-110),rad(0),rad(150)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
760
		rs.C0 = rs.C0:lerp(CFrame.new(1,.3,0) * CFrame.Angles(rad(0),rad(90),rad(110)) * CFrame.Angles(rad(-60),rad(0),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i)
761
		swait()
762
	end
763
	canattacc = true
764
	for i = 0,.4,speed2 do
765
		nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(80),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),i)
766
		rutj.C0 = rutj.C0:lerp(CFrame.new(0,-.1,0) * CFrame.Angles(rad(-110),rad(0),rad(230)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
767
		rs.C0 = rs.C0:lerp(CFrame.new(1,.3,0) * CFrame.Angles(rad(0),rad(90),rad(110)) * CFrame.Angles(rad(20),rad(0),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i)
768
		swait()
769
	end
770
	for i = 0,.4,speed2 do
771
		nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(50),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),i)
772
			rutj.C0 = rutj.C0:lerp(CFrame.new(0,-.1,0) * CFrame.Angles(rad(-110),rad(0),rad(180)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
773
			rs.C0 = rs.C0:lerp(CFrame.new(1,.3,0) * CFrame.Angles(rad(20),rad(90),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i)
774
		swait()
775
	end
776
	canattacc = false
777
	using = false
778
end
779
function selfd()
780
	using = true
781
	for i = 1,50 do
782
		i = .9
783
		nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(50),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),i*2)
784
		rutj.C0 = rutj.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-110),rad(0),rad(180)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i*2)
785
		rs.C0 = rs.C0:lerp(CFrame.new(1,.3,0) * CFrame.Angles(rad(0),rad(90),rad(179)) * CFrame.Angles(rad(50),rad(0),rad(20)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i*2)
786
		ls.C0 = ls.C0:lerp(CFrame.new(-1,.3,0) * CFrame.Angles(rad(0),rad(-90),rad(-179)) * CFrame.Angles(rad(50),rad(0),rad(-20)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i*2)
787
		rh.C0 = rh.C0:lerp(CFrame.new(1,-.3,-.7) * CFrame.Angles(rad(20),rad(100),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i*2)
788
		lh.C0 = lh.C0:lerp(CFrame.new(-1,-.5,-.6) * CFrame.Angles(rad(-50),rad(-50),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i*2)
789
		swait()
790
	end
791
	t.Anchored = true
792
	bigexplos(rut)
793
	wait(1)
794
	t.Anchored = false
795
	using = false
796
end
797
798
mouse.KeyDown:connect(function(key)
799
	if key == "q" and not using then
800
		throwgrenade()
801
	end
802
	if key == "e" and not using then
803
		swng()
804
	end
805
	if key == "f" and supermode then
806
		selfd()
807
	end
808
	if key == "c" and not using then
809
		explos(t)
810
		t.Anchored = true
811
		using = true
812
		wait(.3)
813
		t.Anchored = false
814
		using = false
815
	end
816
	if key == "r" and not supermode then
817
		cursong = 2
818
		mus.SoundId = songs[2] mus:Play()
819
		supermode = true
820
	elseif key == "r" and supermode then
821
		cursong = 1
822
		mus.SoundId = songs[1] mus:Play()
823
		supermode = false
824
	end
825
end)
826
hum.Running:connect(function(a)
827
	if a >0 then
828
	anim = "walk"
829
	else
830
		anim = "idle"
831
	end
832
end)
833
hum.Jumping:connect(function()
834
	anim = "jump"
835
end)
836
hum.FreeFalling:connect(function()
837
	anim = "fall"
838
end)
839
840
while true do
841
	if char:FindFirstChild("MusicA") == nil then
842
		mus = Instance.new("Sound",char) mus.Name = "MusicA" mus.Volume = 3 mus.SoundId = songs[cursong] mus.Looped = true mus:Play()
843
	end
844
	if workspace:FindFirstChild("Explso") == nil then
845
		expls = Instance.new("Sound",workspace) expls.Name = "Explso" expls.Volume = 5 expls.SoundId = "rbxassetid://262562442"
846
	end
847
	if ra:FindFirstChild("Cracko") == nil then
848
		crack = Instance.new("Sound",ra) crack.Name = "Cracko" crack.Pitch = .6 crack.Volume = 5 crack.SoundId = "rbxassetid://147685617"
849
	end
850
	crack = ra:FindFirstChild("Cracko")
851
	expls = workspace:FindFirstChild("Explso") 
852
	mus = char:FindFirstChild("MusicA")
853
	hum.MaxHealth = 7e9 hum.Health = 7e9
854
	if not supermode then
855
		hum.WalkSpeed = 12 hum.JumpPower = 70
856
	else
857
		hum.WalkSpeed = 36 hum.JumpPower = 90
858
	end
859
	if anim == "idle" and not using then
860
			i = .5
861
			nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(50),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),i)
862
			rutj.C0 = rutj.C0:lerp(CFrame.new(0,-.1,0) * CFrame.Angles(rad(-110),rad(0),rad(180)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
863
			rs.C0 = rs.C0:lerp(CFrame.new(1,.3,0) * CFrame.Angles(rad(20),rad(90),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i)
864
               ls.C0 = ls.C0:lerp(CFrame.new(-1,.3,0) * CFrame.Angles(rad(20),rad(-90),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i)
865
			rh.C0 = rh.C0:lerp(CFrame.new(1,-1,-.3) * CFrame.Angles(rad(25),rad(100),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
866
			lh.C0 = lh.C0:lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(20),rad(-80),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
867
	end
868
	if anim == "idle" and not using and supermode then
869
		i = .5
870
		nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(50),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),i*3)
871
		rutj.C0 = rutj.C0:lerp(CFrame.new(0,-.7,0) * CFrame.Angles(rad(-110),rad(0),rad(180)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
872
		rs.C0 = rs.C0:lerp(CFrame.new(1,.3,0) * CFrame.Angles(rad(0),rad(90),rad(179)) * CFrame.Angles(rad(50),rad(0),rad(20)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i)
873
		ls.C0 = ls.C0:lerp(CFrame.new(-1,.3,0) * CFrame.Angles(rad(0),rad(-90),rad(-179)) * CFrame.Angles(rad(50),rad(0),rad(-20)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i)
874
		rh.C0 = rh.C0:lerp(CFrame.new(1,-.3,-.7) * CFrame.Angles(rad(20),rad(100),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
875
		lh.C0 = lh.C0:lerp(CFrame.new(-1,-.5,-.6) * CFrame.Angles(rad(-50),rad(-50),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
876
	end
877
	if anim == "jump" and not using then
878
			i = .4
879
			nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(110),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),i)
880
			rutj.C0 = rutj.C0:lerp(CFrame.new(0,-.1,0) * CFrame.Angles(rad(-80),rad(0),rad(180)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
881
			rs.C0 = rs.C0:lerp(CFrame.new(1,.3,0) * CFrame.Angles(rad(20),rad(90),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(math.atan(math.random(-4,4)))) * CFrame.Angles(rad(-30),rad(0),rad(20)),i)
882
               ls.C0 = ls.C0:lerp(CFrame.new(-1,.3,0) * CFrame.Angles(rad(20),rad(-90),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(math.atan(math.random(-4,4)))) * CFrame.Angles(rad(-30),rad(0),rad(-20)),i)
883
			rh.C0 = rh.C0:lerp(CFrame.new(1,-1,-.3) * CFrame.Angles(rad(5),rad(100),rad(20)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(math.atan(math.random(-20,20))),rad(math.atan(math.random(-20,20)))),i)
884
			lh.C0 = lh.C0:lerp(CFrame.new(-1,-1,-.3) * CFrame.Angles(rad(0),rad(-80),rad(20)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(math.atan(math.random(-20,20))),rad(math.atan(math.random(-20,20)))),i)
885
	end
886
	if  anim == "fall" and not using then
887
			i = .4
888
			nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(110),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),i)
889
			rutj.C0 = rutj.C0:lerp(CFrame.new(0,-.1,0) * CFrame.Angles(rad(-80),rad(0),rad(180)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
890
			rs.C0 = rs.C0:lerp(CFrame.new(1,.3,0) * CFrame.Angles(rad(20),rad(90),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(math.atan(math.random(-4,4)))) * CFrame.Angles(rad(30),rad(0),rad(140)),i)
891
               ls.C0 = ls.C0:lerp(CFrame.new(-1,.3,0) * CFrame.Angles(rad(20),rad(-90),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(math.atan(math.random(-4,4)))) * CFrame.Angles(rad(30),rad(0),rad(-130)),i)
892
			rh.C0 = rh.C0:lerp(CFrame.new(1,-.7,.2) * CFrame.Angles(rad(5),rad(100),rad(20)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(math.atan(math.random(-20,20))),rad(math.atan(math.random(-20,20)))),i)
893
			lh.C0 = lh.C0:lerp(CFrame.new(-1,-1,.2) * CFrame.Angles(rad(-5),rad(-80),rad(20)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(math.atan(math.random(-20,20))),rad(math.atan(math.random(-20,20)))),i)
894
	end
895
	if anim == "walk" and not using and not supermode then
896
		for i = 0,.3,.025 do
897
			if anim == "walk" and not using and not supermode then
898
			nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(70),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),i)
899
			rutj.C0 = rutj.C0:lerp(CFrame.new(0,.2,0) * CFrame.Angles(rad(-110),rad(0),rad(175)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
900
			rs.C0 = rs.C0:lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(-35),rad(90),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i)
901
               ls.C0 = ls.C0:lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(35),rad(-90),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i)
902
			rh.C0 = rh.C0:lerp(CFrame.new(1,-1.2,-.4) * CFrame.Angles(rad(60),rad(85),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
903
			lh.C0 = lh.C0:lerp(CFrame.new(-1,-.6,-.2) * CFrame.Angles(rad(-35),rad(-85),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
904
			swait()
905
			end
906
		end
907
		for i = 0,.3,.025 do
908
			if anim == "walk" and not using and not supermode then
909
			nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(70),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),i)
910
			rutj.C0 = rutj.C0:lerp(CFrame.new(0,-.1,0) * CFrame.Angles(rad(-110),rad(0),rad(185)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
911
			rs.C0 = rs.C0:lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(-10),rad(95),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i)
912
               ls.C0 = ls.C0:lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(10),rad(-85),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i)
913
			rh.C0 = rh.C0:lerp(CFrame.new(1,-.8,.2) * CFrame.Angles(rad(-15),rad(85),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
914
			lh.C0 = lh.C0:lerp(CFrame.new(-1,-1,.2) * CFrame.Angles(rad(15),rad(-85),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
915
			swait()
916
			end
917
		end
918
		for i = 0,.3,.025 do
919
			if anim == "walk" and not using and not supermode then
920
			nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(70),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),.4)
921
			rutj.C0 = rutj.C0:lerp(CFrame.new(0,.2,0) * CFrame.Angles(rad(-110),rad(0),rad(185)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
922
			rs.C0 = rs.C0:lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(35),rad(90),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i)
923
               ls.C0 = ls.C0:lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(-35),rad(-90),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i)
924
			rh.C0 = rh.C0:lerp(CFrame.new(1,-.6,-.2) * CFrame.Angles(rad(-35),rad(85),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
925
			lh.C0 = lh.C0:lerp(CFrame.new(-1,-1.2,-.4) * CFrame.Angles(rad(60),rad(-85),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
926
			swait()
927
			end
928
		end
929
		for i = 0,.3,.025 do
930
			if anim == "walk" and not using and not supermode then
931
			nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(70),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),i)
932
			rutj.C0 = rutj.C0:lerp(CFrame.new(0,-.1,0) * CFrame.Angles(rad(-110),rad(0),rad(175)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
933
			rs.C0 = rs.C0:lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(10),rad(95),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i)
934
               ls.C0 = ls.C0:lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(-10),rad(-85),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i)
935
			rh.C0 = rh.C0:lerp(CFrame.new(1,-.8,-.2) * CFrame.Angles(rad(-15),rad(85),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
936
			lh.C0 = lh.C0:lerp(CFrame.new(-1,-1,-.2) * CFrame.Angles(rad(15),rad(-85),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
937
			swait()
938
			end
939
		end
940
		end
941
		if anim == "walk" and not using and supermode then
942
			for i = 0,.3,.045 do
943
			if anim == "walk" and not using and supermode then
944
			nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(110),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),i*5)
945
			rutj.C0 = rutj.C0:lerp(CFrame.new(0,.2,0) * CFrame.Angles(rad(-110),rad(0),rad(175)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i*3)
946
			rs.C0 = rs.C0:lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(100),rad(110)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i*5)
947
               ls.C0 = ls.C0:lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(30)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i*5)
948
			rh.C0 = rh.C0:lerp(CFrame.new(1,-1.3,-.7) * CFrame.Angles(rad(60),rad(80),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
949
			lh.C0 = lh.C0:lerp(CFrame.new(-1,-.7,.2) * CFrame.Angles(rad(-35),rad(-80),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
950
			swait()
951
			end
952
			end
953
		for i = 0,.3,.045 do
954
			if anim == "walk" and not using and supermode then
955
			nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(110),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),i*5)
956
			rutj.C0 = rutj.C0:lerp(CFrame.new(0,-.1,0) * CFrame.Angles(rad(-110),rad(0),rad(185)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
957
			rs.C0 = rs.C0:lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(100),rad(110)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i*5)
958
               ls.C0 = ls.C0:lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(30)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i*5)
959
			rh.C0 = rh.C0:lerp(CFrame.new(1,-.9,.2) * CFrame.Angles(rad(-20),rad(80),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
960
			lh.C0 = lh.C0:lerp(CFrame.new(-1,-.5,-.2) * CFrame.Angles(rad(20),rad(-80),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
961
			swait()
962
			end
963
		end
964
		for i = 0,.3,.045 do
965
			if anim == "walk" and not using and supermode then
966
			nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(110),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),i*5)
967
			rutj.C0 = rutj.C0:lerp(CFrame.new(0,-.1,0) * CFrame.Angles(rad(-110),rad(0),rad(185)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i*3)
968
			rs.C0 = rs.C0:lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(100),rad(110)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i*5)
969
               ls.C0 = ls.C0:lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(30)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i*5)
970
			rh.C0 = rh.C0:lerp(CFrame.new(1,-.7,.2) * CFrame.Angles(rad(-35),rad(80),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
971
			lh.C0 = lh.C0:lerp(CFrame.new(-1,-1.3,-.7) * CFrame.Angles(rad(60),rad(-80),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
972
			swait()
973
			end
974
		end
975
		for i = 0,.3,.045 do
976
			if anim == "walk" and not using and supermode then
977
			nec.C0 = nec.C0:lerp(CFrame.new(0,1,-.2) * CFrame.Angles(rad(110),rad(180),rad(0)) * CFrame.Angles(rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10))),rad(math.tan(math.random(-10,10)))),i*5)
978
			rutj.C0 = rutj.C0:lerp(CFrame.new(0,-.1,0) * CFrame.Angles(rad(-110),rad(0),rad(175)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
979
			rs.C0 = rs.C0:lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(100),rad(110)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i*5)
980
               ls.C0 = ls.C0:lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(30)) * CFrame.Angles(rad(math.atan(math.random(-40,40))),rad(0),rad(0)),i*5)
981
			rh.C0 = rh.C0:lerp(CFrame.new(1,-.9,-.2) * CFrame.Angles(rad(20),rad(80),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
982
			lh.C0 = lh.C0:lerp(CFrame.new(-1,-.5,.2) * CFrame.Angles(rad(-20),rad(-80),rad(0)) * CFrame.Angles(rad(math.atan(math.random(-20,20))),rad(0),rad(0)),i)
983
			swait()
984
			end
985
		end
986
		end
987
	swait()
988
end