View difference between Paste ID: EQkHhF4W and 0yVvcSQ7
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
local player = owner
8
local Cha = player.Character
9
local mouse = player:GetMouse()
10
local henshine = false
11
local RAC = Cha.Torso:WaitForChild("Right Shoulder")
12
local LAC = Cha.Torso:WaitForChild("Left Shoulder")
13
local RA = Cha:FindFirstChild("Right Arm")
14
local LA = Cha:FindFirstChild("Left Arm")
15
local Torso = Cha.Torso
16
local Head = Cha.Head
17
local RL = Cha:FindFirstChild("Right Leg")
18
local LL = Cha:FindFirstChild("Left Leg")
19
local Humanoid = Cha.Humanoid
20
if Cha:FindFirstChild("Shirt") then
21
    Cha["Shirt"]:remove()
22
end
23
if Cha:FindFirstChild("Pants") then
24
    Cha["Pants"]:remove()
25
end
26
wait(3)
27
local shirt = Instance.new("Shirt",Cha)
28
shirt.ShirtTemplate = "rbxassetid://361247795"
29
local pants = Instance.new("Pants",Cha)
30
pants.PantsTemplate = "rbxassetid://361247850"
31
local headr = Instance.new("SpecialMesh")
32
headr.MeshType = "FileMesh"
33
headr.Parent = Head
34
local hat = Instance.new("Part")
35
hat.Parent = Head 
36
hat.CanCollide = false
37
hat.CFrame = Head.CFrame*CFrame.new(0,1,0)
38
local Meshhat = Instance.new("SpecialMesh")
39
Meshhat.MeshType = "FileMesh"
40
Meshhat.MeshId = "rbxassetid://3473220812"
41
Meshhat.TextureId = "rbxassetid://3473220854"
42
Meshhat.Parent = hat
43
local weld12 = Instance.new("WeldConstraint")
44
weld12.Part0 = hat
45
weld12.Part1 = Head
46
weld12.Parent = Head
47
local ArmourPart = Instance.new("Part")
48
ArmourPart.Parent = Torso
49
ArmourPart.CanCollide = false
50
ArmourPart.CFrame = Torso.CFrame
51
local Meshhat2 = Instance.new("SpecialMesh")
52
Meshhat2.MeshType = "FileMesh"
53
Meshhat2.MeshId = "rbxassetid://3473226799"
54
Meshhat2.TextureId = "rbxassetid://3473220854"
55
Meshhat2.Parent = ArmourPart
56
local weld124 = Instance.new("WeldConstraint")
57
weld124.Part0 = ArmourPart
58
weld124.Part1 = Torso
59
weld124.Parent = Torso
60
wait(2)
61
local guihead = Instance.new("BillboardGui")
62
		guihead.Parent = Head
63
		guihead.Adornee = Head
64
		guihead.MaxDistance = 100
65
		guihead.Size = UDim2.new(3,0,3,0)
66
		guihead.StudsOffset = Vector3.new(0.5,2,0)
67
		local texthead = Instance.new("TextLabel")
68-
		texthead.Text = "Sxcret Agent"
68+
		texthead.Text = "Secret Agent"
69
		texthead.Font = "Cartoon"
70
		texthead.TextColor3 = Color3.new(251, 255, 7)
71
		texthead.Size = UDim2.new(1,0,1,0)
72
		texthead.FontSize = 'Size32'
73
		texthead.Position = UDim2.new(-0.125,0,-0.25,0)
74
		texthead.BackgroundTransparency = 1
75
		texthead.Parent = guihead
76
77
wait(2)
78
for e,a in pairs(Cha:children()) do
79
    if a:IsA("Accessory") then
80
        a:Destroy()
81
    end
82
end
83
hen =  true
84
 
85
Head.face:Destroy()
86
87
wait(1)
88
local SongDriver15 = Instance.new("Sound")
89
SongDriver15.Parent = Cha.Torso
90
SongDriver15.SoundId = "rbxassetid://1873219898"
91
SongDriver15.Volume = 3
92
SongDriver15:Play()
93
Player = owner
94
Mouse = Player:GetMouse()
95
PlayerGui = Player.PlayerGui
96
Cam = workspace.CurrentCamera
97
Backpack = Player.Backpack
98
Character = Player.Character
99
Humanoid = Character.Humanoid
100
RootPart = Character["HumanoidRootPart"]
101
Torso = Character["Torso"]
102
Head = Character["Head"]
103
RightArm = Character["Right Arm"]
104
LeftArm = Character["Left Arm"]
105
RightLeg = Character["Right Leg"]
106
LeftLeg = Character["Left Leg"]
107
RootJoint = RootPart["RootJoint"]
108
Neck = Torso["Neck"]
109
RightShoulder = Torso["Right Shoulder"]
110
LeftShoulder = Torso["Left Shoulder"]
111
RightHip = Torso["Right Hip"]
112
LeftHip = Torso["Left Hip"]
113
local TIME = 0
114
local sick = Instance.new("Sound",Torso)
115
 
116
IT = Instance.new
117
CF = CFrame.new
118
VT = Vector3.new
119
RAD = math.rad
120
C3 = Color3.new
121
UD2 = UDim2.new
122
BRICKC = BrickColor.new
123
ANGLES = CFrame.Angles
124
EULER = CFrame.fromEulerAnglesXYZ
125
COS = math.cos
126
ACOS = math.acos
127
SIN = math.sin
128
ASIN = math.asin
129
ABS = math.abs
130
MRANDOM = math.random
131
FLOOR = math.floor
132
 
133
--//=================================\\
134
--||        Value shit things
135
--\\=================================//
136
 
137
Animation_Speed = 3
138
local FORCERESET = false
139
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
140
local SIZE = 1
141
local Speed = 24
142
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
143
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
144
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
145
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
146
local DAMAGEMULTIPLIER = 1
147
local ANIM = "Idle"
148
local ATTACK = false
149
local EQUIPPED = false
150
local HOLD = false
151
local COMBO = 1
152
local Rooted = false
153
local SINE = 0
154
local KEYHOLD = false
155
local CHANGE = 2 / Animation_Speed
156
local WALKINGANIM = false
157
local VALUE1 = false
158
local VALUE2 = false
159
local ROBLOXIDLEANIMATION = IT("Animation")
160
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
161
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
162
--ROBLOXIDLEANIMATION.Parent = Humanoid
163
local WEAPONGUI = IT("ScreenGui", PlayerGui)
164
WEAPONGUI.Name = "BanishV3Gui"
165
local Weapon = IT("Model")
166
Weapon.Name = "Adds"
167
local Effects = IT("Folder", Weapon)
168
Effects.Name = "Effects"
169
local ANIMATOR = Humanoid.Animator
170
local ANIMATE = Character:FindFirstChild("Animate")
171
local UNANCHOR = true
172
local TOBANISH = {}
173
Player_Size = 1
174
local Mode = 1
175
local kan = Instance.new("Sound",Character)
176
kan.Volume = 0
177
kan.TimePosition = 0
178
kan.PlaybackSpeed = 1
179
kan.Pitch = 1
180
kan.SoundId = "rbxassetid://614032233"
181
kan.Name = "wrecked"
182
kan.Looped = true
183
kan:Play()
184
local currentThemePlaying = kan.SoundId
185
local currentPitch = kan.Pitch
186
local currentVol = kan.Volume
187
--//=================================\\
188
--\\=================================//
189
for i,v in pairs(Character:children()) do
190
    if v:IsA("Accessory") then
191
        v:Destroy()
192
    end
193
end
194
 
195
warn("CREATED BY AlmightyToast#6465")
196
warn("aka KrYn0MoRe or ShrekBenson")
197
warn("DOnt rEm0vE tH1s 0r uR gAy")
198
--//=================================\\
199
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
200
--\\=================================//
201
 
202
ArtificialHB = Instance.new("BindableEvent", script)
203
ArtificialHB.Name = "ArtificialHB"
204
 
205
script:WaitForChild("ArtificialHB")
206
 
207
frame = Frame_Speed
208
tf = 0
209
allowframeloss = false
210
tossremainder = false
211
lastframe = tick()
212
script.ArtificialHB:Fire()
213
 
214
game:GetService("RunService").Heartbeat:connect(function(s, p)
215
    tf = tf + s
216
    if tf >= frame then
217
        if allowframeloss then
218
            script.ArtificialHB:Fire()
219
            lastframe = tick()
220
        else
221
            for i = 1, math.floor(tf / frame) do
222
                script.ArtificialHB:Fire()
223
            end
224
        lastframe = tick()
225
        end
226
        if tossremainder then
227
            tf = 0
228
        else
229
            tf = tf - frame * math.floor(tf / frame)
230
        end
231
    end
232
end)
233
 
234
--//=================================\\
235
--\\=================================//
236
 
237
--//=================================\\
238
--||          MOST FUNCTIONS
239
--\\=================================//
240
 
241
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
242
    return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
243
end
244
 
245
function PositiveAngle(NUMBER)
246
    if NUMBER >= 0 then
247
        NUMBER = 0
248
    end
249
    return NUMBER
250
end
251
 
252
function NegativeAngle(NUMBER)
253
    if NUMBER <= 0 then
254
        NUMBER = 0
255
    end
256
    return NUMBER
257
end
258
 
259
function Swait(NUMBER)
260
    if NUMBER == 0 or NUMBER == nil then
261
        ArtificialHB.Event:wait()
262
    else
263
        for i = 1, NUMBER do
264
            ArtificialHB.Event:wait()
265
        end
266
    end
267
end
268
 
269
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
270
    local NEWMESH = IT(MESH)
271
    if MESH == "SpecialMesh" then
272
        NEWMESH.MeshType = MESHTYPE
273
        if MESHID ~= "nil" and MESHID ~= "" then
274
            NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
275
        end
276
        if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
277
            NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
278
        end
279
    end
280
    NEWMESH.Offset = OFFSET or VT(0, 0, 0)
281
    NEWMESH.Scale = SCALE
282
    NEWMESH.Parent = PARENT
283
    return NEWMESH
284
end
285
 
286
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
287
    local NEWPART = IT("Part")
288
    NEWPART.formFactor = FORMFACTOR
289
    NEWPART.Reflectance = REFLECTANCE
290
    NEWPART.Transparency = TRANSPARENCY
291
    NEWPART.CanCollide = false
292
    NEWPART.Locked = true
293
    NEWPART.Anchored = true
294
    if ANCHOR == false then
295
        NEWPART.Anchored = false
296
    end
297
    NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
298
    NEWPART.Name = NAME
299
    NEWPART.Size = SIZE
300
    NEWPART.Position = Torso.Position
301
    NEWPART.Material = MATERIAL
302
    NEWPART:BreakJoints()
303
    NEWPART.Parent = PARENT
304
    return NEWPART
305
end
306
 
307
    local function weldBetween(a, b)
308
        local weldd = IT("Weld")
309
        weldd.Part0 = a
310
        weldd.Part1 = b
311
        weldd.C0 = CF()
312
        weldd.C1 = b.CFrame:inverse() * a.CFrame
313
        weldd.Parent = a
314
        return weldd
315
    end
316
 
317
 
318
function QuaternionFromCFrame(cf)
319
    local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
320
    local trace = m00 + m11 + m22
321
    if trace > 0 then
322
        local s = math.sqrt(1 + trace)
323
        local recip = 0.5 / s
324
        return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
325
    else
326
        local i = 0
327
        if m11 > m00 then
328
            i = 1
329
        end
330
        if m22 > (i == 0 and m00 or m11) then
331
            i = 2
332
        end
333
        if i == 0 then
334
            local s = math.sqrt(m00 - m11 - m22 + 1)
335
            local recip = 0.5 / s
336
            return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
337
        elseif i == 1 then
338
            local s = math.sqrt(m11 - m22 - m00 + 1)
339
            local recip = 0.5 / s
340
            return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
341
        elseif i == 2 then
342
            local s = math.sqrt(m22 - m00 - m11 + 1)
343
            local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
344
        end
345
    end
346
end
347
 
348
function QuaternionToCFrame(px, py, pz, x, y, z, w)
349
    local xs, ys, zs = x + x, y + y, z + z
350
    local wx, wy, wz = w * xs, w * ys, w * zs
351
    local xx = x * xs
352
    local xy = x * ys
353
    local xz = x * zs
354
    local yy = y * ys
355
    local yz = y * zs
356
    local zz = z * zs
357
    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))
358
end
359
 
360
function QuaternionSlerp(a, b, t)
361
    local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
362
    local startInterp, finishInterp;
363
    if cosTheta >= 0.0001 then
364
        if (1 - cosTheta) > 0.0001 then
365
            local theta = ACOS(cosTheta)
366
            local invSinTheta = 1 / SIN(theta)
367
            startInterp = SIN((1 - t) * theta) * invSinTheta
368
            finishInterp = SIN(t * theta) * invSinTheta
369
        else
370
            startInterp = 1 - t
371
            finishInterp = t
372
        end
373
    else
374
        if (1 + cosTheta) > 0.0001 then
375
            local theta = ACOS(-cosTheta)
376
            local invSinTheta = 1 / SIN(theta)
377
            startInterp = SIN((t - 1) * theta) * invSinTheta
378
            finishInterp = SIN(t * theta) * invSinTheta
379
        else
380
            startInterp = t - 1
381
            finishInterp = t
382
        end
383
    end
384
    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
385
end
386
 
387
function Clerp(a, b, t)
388
    local qa = {QuaternionFromCFrame(a)}
389
    local qb = {QuaternionFromCFrame(b)}
390
    local ax, ay, az = a.x, a.y, a.z
391
    local bx, by, bz = b.x, b.y, b.z
392
    local _t = 1 - t
393
    return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
394
end
395
 
396
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
397
    local frame = IT("Frame")
398
    frame.BackgroundTransparency = TRANSPARENCY
399
    frame.BorderSizePixel = BORDERSIZEPIXEL
400
    frame.Position = POSITION
401
    frame.Size = SIZE
402
    frame.BackgroundColor3 = COLOR
403
    frame.BorderColor3 = BORDERCOLOR
404
    frame.Name = NAME
405
    frame.Parent = PARENT
406
    return frame
407
end
408
 
409
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
410
    local label = IT("TextLabel")
411
    label.BackgroundTransparency = 1
412
    label.Size = UD2(1, 0, 1, 0)
413
    label.Position = UD2(0, 0, 0, 0)
414
    label.TextColor3 = TEXTCOLOR
415
    label.TextStrokeTransparency = STROKETRANSPARENCY
416
    label.TextTransparency = TRANSPARENCY
417
    label.FontSize = TEXTFONTSIZE
418
    label.Font = TEXTFONT
419
    label.BorderSizePixel = BORDERSIZEPIXEL
420
    label.TextScaled = false
421
    label.Text = TEXT
422
    label.Name = NAME
423
    label.Parent = PARENT
424
    return label
425
end
426
 
427
function NoOutlines(PART)
428
    PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
429
end
430
 
431
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
432
    local NEWWELD = IT(TYPE)
433
    NEWWELD.Part0 = PART0
434
    NEWWELD.Part1 = PART1
435
    NEWWELD.C0 = C0
436
    NEWWELD.C1 = C1
437
    NEWWELD.Parent = PARENT
438
    return NEWWELD
439
end
440
 
441
local S = IT("Sound")
442
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
443
    local NEWSOUND = nil
444
    coroutine.resume(coroutine.create(function()
445
        NEWSOUND = S:Clone()
446
        NEWSOUND.Parent = PARENT
447
        NEWSOUND.Volume = VOLUME
448
        NEWSOUND.Pitch = PITCH
449
        NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
450
        NEWSOUND:play()
451
        if DOESLOOP == true then
452
            NEWSOUND.Looped = true
453
        else
454
            repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
455
            NEWSOUND:remove()
456
        end
457
    end))
458
    return NEWSOUND
459
end
460
 
461
function CFrameFromTopBack(at, top, back)
462
    local right = top:Cross(back)
463
    return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
464
end
465
 
466
--WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
467
function WACKYEFFECT(Table)
468
    local TYPE = (Table.EffectType or "Sphere")
469
    local SIZE = (Table.Size or VT(1,1,1))
470
    local ENDSIZE = (Table.Size2 or VT(0,0,0))
471
    local TRANSPARENCY = (Table.Transparency or 0)
472
    local ENDTRANSPARENCY = (Table.Transparency2 or 1)
473
    local CFRAME = (Table.CFrame or Torso.CFrame)
474
    local MOVEDIRECTION = (Table.MoveToPos or nil)
475
    local ROTATION1 = (Table.RotationX or 0)
476
    local ROTATION2 = (Table.RotationY or 0)
477
    local ROTATION3 = (Table.RotationZ or 0)
478
    local MATERIAL = (Table.Material or "Neon")
479
    local COLOR = (Table.Color or C3(1,1,1))
480
    local TIME = (Table.Time or 45)
481
    local SOUNDID = (Table.SoundID or nil)
482
    local SOUNDPITCH = (Table.SoundPitch or nil)
483
    local SOUNDVOLUME = (Table.SoundVolume or nil)
484
    coroutine.resume(coroutine.create(function()
485
        local PLAYSSOUND = false
486
        local SOUND = nil
487
        local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
488
        if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
489
            PLAYSSOUND = true
490
            SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
491
        end
492
        EFFECT.Color = COLOR
493
        local MSH = nil
494
        if TYPE == "Sphere" then
495
            MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
496
        elseif TYPE == "Block" then
497
            MSH = IT("BlockMesh",EFFECT)
498
            MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
499
        elseif TYPE == "Wave" then
500
            MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
501
        elseif TYPE == "Ring" then
502
            MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
503
        elseif TYPE == "Slash" then
504
            MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
505
        elseif TYPE == "Round Slash" then
506
            MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
507
        elseif TYPE == "Swirl" then
508
            MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
509
        elseif TYPE == "Skull" then
510
            MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
511
        elseif TYPE == "Crystal" then
512
            MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
513
        end
514
        if MSH ~= nil then
515
            local MOVESPEED = nil
516
            if MOVEDIRECTION ~= nil then
517
                MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
518
            end
519
            local GROWTH = SIZE - ENDSIZE
520
            local TRANS = TRANSPARENCY - ENDTRANSPARENCY
521
            if TYPE == "Block" then
522
                EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
523
            else
524
                EFFECT.CFrame = CFRAME
525
            end
526
            for LOOP = 1, TIME+1 do
527
                Swait()
528
                MSH.Scale = MSH.Scale - GROWTH/TIME
529
                if TYPE == "Wave" then
530
                    MSH.Offset = VT(0,0,-MSH.Scale.X/8)
531
                end
532
                EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
533
                if TYPE == "Block" then
534
                    EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
535
                else
536
                    EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
537
                end
538
                if MOVEDIRECTION ~= nil then
539
                    local ORI = EFFECT.Orientation
540
                    EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
541
                    EFFECT.Orientation = ORI
542
                end
543
            end
544
            if PLAYSSOUND == false then
545
                EFFECT:remove()
546
            else
547
                SOUND.Stopped:Connect(function()
548
                    EFFECT:remove()
549
                end)
550
            end
551
        else
552
            if PLAYSSOUND == false then
553
                EFFECT:remove()
554
            else
555
                repeat Swait() until SOUND.Playing == false
556
                EFFECT:remove()
557
            end
558
        end
559
    end))
560
end
561
 
562
function MakeForm(PART,TYPE)
563
    if TYPE == "Cyl" then
564
        local MSH = IT("CylinderMesh",PART)
565
    elseif TYPE == "Ball" then
566
        local MSH = IT("SpecialMesh",PART)
567
        MSH.MeshType = "Sphere"
568
    elseif TYPE == "Wedge" then
569
        local MSH = IT("SpecialMesh",PART)
570
        MSH.MeshType = "Wedge"
571
    end
572
end
573
 
574
function SpawnTrail(FROM,TO,BIG)
575
    local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "New Yeller", "Trail", VT(0,0,0))
576
    MakeForm(TRAIL,"Cyl")
577
    local DIST = (FROM - TO).Magnitude
578
    if BIG == true then
579
        TRAIL.Size = VT(0.5,DIST,0.5)
580
    else
581
        TRAIL.Size = VT(0.25,DIST,0.25)
582
    end
583
    TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
584
    coroutine.resume(coroutine.create(function()
585
        for i = 1, 5 do
586
            Swait()
587
            TRAIL.Transparency = TRAIL.Transparency + 0.1
588
        end
589
        TRAIL:remove()
590
    end))
591
end
592
 
593
Debris = game:GetService("Debris")
594
 
595
function CastProperRay(StartPos, EndPos, Distance, Ignore)
596
    local DIRECTION = CF(StartPos,EndPos).lookVector
597
    return Raycast(StartPos, DIRECTION, Distance, Ignore)
598
end
599
 
600
function turnto(position)
601
    RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
602
end
603
local asd = Instance.new("ParticleEmitter")
604
asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
605
asd.LightEmission = .1
606
asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
607
aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
608
bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
609
asd.Transparency = bbb
610
asd.Size = aaa
611
asd.ZOffset = .9
612
asd.Acceleration = Vector3.new(0, -15, 0)
613
asd.LockedToPart = false
614
asd.EmissionDirection = "Back"
615
asd.Lifetime = NumberRange.new(1, 2)
616
asd.Rotation = NumberRange.new(-100, 100)
617
asd.RotSpeed = NumberRange.new(-100, 100)
618
asd.Speed = NumberRange.new(10)
619
asd.Enabled = false
620
asd.VelocitySpread = 999
621
 
622
function getbloody(victim,amount)
623
    local PART = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Blood", victim.Size)
624
    PART.CFrame = victim.CFrame
625
    local HITPLAYERSOUNDS = {"356551938","264486467"}
626
    Debris:AddItem(PART,5)
627
    CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
628
    CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
629
    CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
630
    local prtcl = asd:Clone()
631
    prtcl.Parent = PART
632
    prtcl:Emit(amount*10)
633
end
634
 
635
local Particle = IT("ParticleEmitter",nil)
636
Particle.Enabled = false
637
Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
638
Particle.LightEmission = 0.5
639
Particle.Rate = 150
640
Particle.ZOffset = 1
641
Particle.Rotation = NumberRange.new(-180, 180)
642
Particle.RotSpeed = NumberRange.new(-180, 180)
643
Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
644
Particle.Color = ColorSequence.new(C3(0,1,0),C3(0.4,0,0))
645
 
646
--ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
647
function ParticleEmitter(Table)
648
    local PRTCL = Particle:Clone()
649
    local Speed = Table.Speed or 5
650
    local Drag = Table.Drag or 0
651
    local Size1 = Table.Size1 or 1
652
    local Size2 = Table.Size2 or 5
653
    local Lifetime1 = Table.Lifetime1 or 1
654
    local Lifetime2 = Table.Lifetime2 or 1.5
655
    local Parent = Table.Parent or Torso
656
    local Emit = Table.Emit or 100
657
    local Offset = Table.Offset or 360
658
    local Acel = Table.Acel or VT(0,0,0)
659
    local Enabled = Table.Enabled or false
660
    PRTCL.Parent = Parent
661
    PRTCL.Size = NumberSequence.new(Size1,Size2)
662
    PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
663
    PRTCL.Speed = NumberRange.new(Speed)
664
    PRTCL.VelocitySpread = Offset
665
    PRTCL.Drag = Drag
666
    PRTCL.Acceleration = Acel
667
    if Enabled == false then
668
        PRTCL:Emit(Emit)
669
        Debris:AddItem(PRTCL,Lifetime2)
670
    else
671
        PRTCL.Enabled = true
672
    end
673
    return PRTCL
674
end
675
 
676
function unanchor()
677
    if UNANCHOR == true then
678
        g = Character:GetChildren()
679
        for i = 1, #g do
680
            if g[i].ClassName == "Part" then
681
                g[i].Anchored = false
682
            end
683
        end
684
    end
685
end
686
 
687
function newTheme(ID,timepos,pitch,vol)
688
local kanz = kan
689
--kanz:Stop()
690
kanz.Volume = vol
691
--kanz.TimePosition = timepos
692
kanz.PlaybackSpeed = pitch
693
kanz.Pitch = pitch
694
kanz.SoundId = ID
695
kanz.Name = "wrecked"
696
kanz.Looped = true
697
currentThemePlaying = kanz.SoundId
698
currentVol = kanz.Volume
699
currentPitch = kanz.Pitch
700
--kanz:Play()
701
--coroutine.resume(coroutine.create(function()
702
--wait(0.05)
703
--end))
704
end
705
 
706
--//=================================\\
707
--||            Attacks
708
--\\=================================//
709
function switch()
710
    ATTACK = true
711
    Rooted = true
712
    CreateSound("363808674",workspace,8,1,false)
713
    for i=0, 1.5, 0.1 / Animation_Speed do
714
        Swait()
715
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(18), RAD(0)), 1 / Animation_Speed)
716
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(-24)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
717
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
718
        RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
719
        LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
720
    end
721
    CreateSound("363808674",workspace,8,1,false)
722
    for i=0, 1.5, 0.1 / Animation_Speed do
723
        Swait()
724
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-18), RAD(0)), 1 / Animation_Speed)
725
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
726
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(24)) * LEFTSHOULDERC0, 1 / Animation_Speed)
727
        RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
728
        LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
729
    end
730
if Mode == 1 and Mode ~= 2 then
731
Mode = 2
732
Speed = 38
733
Humanoid.WalkSpeed = Speed
734
elseif Mode == 2 and Mode ~= 1 then
735
Mode = 1
736
Speed = 24
737
Humanoid.WalkSpeed = Speed
738
end
739
ATTACK = false
740
Rooted = false
741
end
742
 
743
function Spinning_Attack()
744
    ATTACK = true
745
    CreatePart("Block",LeftArm,"Plastic",0,1,BrickColor.new(0,0,0),"HitBox",Vector3.new(1,2,1),false)
746
    local HitBox = LeftArm.HitBox
747
    weldBetween(HitBox, LeftArm)
748
    Humanoid.WalkSpeed = 3.01
749
    for i = 0, 1.2, 0.1 do
750
        Swait()
751
        RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CFrame.new(0, -0.5, 0) * ANGLES(math.rad(0), math.rad(0), math.rad(-65)), 0.3)
752
        Torso.Neck.C0 = Clerp(Torso.Neck.C0, NECKC0 * ANGLES(math.rad(10), math.rad(0), math.rad(0)), 0.1)
753
        RightShoulder.C0 = Clerp(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * ANGLES(math.rad(0), math.rad(0), math.rad(10)), 0.1)
754
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * ANGLES(math.rad(-35), math.rad(0), math.rad(-10)), 0.3)
755
        RightHip.C0 = Clerp(RightHip.C0, CFrame.new(1, -1, 0) * RIGHTSHOULDERC0 * ANGLES(math.rad(-2.5), math.rad(-25), math.rad(-25)), 0.3)
756
        LeftHip.C0 = Clerp(LeftHip.C0, CFrame.new(-1, -1, 0) * LEFTSHOULDERC0 * ANGLES(math.rad(-2.5), math.rad(-0), math.rad(-20)), 0.3)
757
      end
758
    for i = 0, 4.6, 0.1 do
759
        Swait()
760
    CreateSound("2304904662",workspace,3,1,false)
761
        HitBox.Touched:connect(function(hit)
762
            if hit.Parent and hit.Parent ~= Character and hit.Parent:FindFirstChildOfClass('Humanoid') then
763
                hit.Parent:FindFirstChildOfClass('Humanoid').Health = 1 - 9999e+999
764
            end
765
        end)
766
        RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CFrame.new(0, -0.5, 0) * ANGLES(math.rad(0), math.rad(0), math.rad(65 + 255.45 * i)), 0.3)
767
        Torso.Neck.C0 = Clerp(Torso.Neck.C0, NECKC0 * ANGLES(math.rad(10), math.rad(0), math.rad(0)), 0.1)
768
        RightShoulder.C0 = Clerp(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * ANGLES(math.rad(-90), math.rad(0), math.rad(47)), 0.1)
769
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * ANGLES(math.rad(-90), math.rad(-90), math.rad(-47)), 0.3)
770
        RightHip.C0 = Clerp(RightHip.C0, CFrame.new(1, -1, 0) * RIGHTSHOULDERC0 * ANGLES(math.rad(-2.5), math.rad(-25), math.rad(95)), 0.3)
771
        LeftHip.C0 = Clerp(LeftHip.C0, CFrame.new(-1, -1, 0) * LEFTSHOULDERC0 * ANGLES(math.rad(-4.5), math.rad(0), math.rad(30)), 0.3)
772
      end
773
    ATTACK = false
774
    Humanoid.WalkSpeed = 8
775
    HitBox:Destroy()
776
end
777
 
778
--//=================================\\
779
--||          Key Functions
780
--\\=================================//
781
Mouse.KeyDown:connect(function(k)
782
    if(ATTACK)then return end
783
    if(k == 't')then
784
        switch()
785
    elseif(k == 'v')then
786
        Spinning_Attack()
787
    end
788
end)
789
--//=================================\\
790
--||           Animations
791
--\\=================================//
792
 
793
local CONNECT = nil
794
 
795
while true do
796
    Swait()
797
    ANIMATE.Parent = nil
798
    if Character:FindFirstChildOfClass("Humanoid") == nil then
799
        Humanoid = IT("Humanoid",Character)
800
    end
801
    for _,v in next, Humanoid:GetPlayingAnimationTracks() do
802
        v:Stop();
803
    end
804
    SINE = SINE + CHANGE
805
    local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
806
    local TORSOVERTICALVELOCITY = RootPart.Velocity.y
807
    local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
808
    local WALKSPEEDVALUE = 12 / (Humanoid.WalkSpeed / 12)
809
    if ANIM == "Walk" and TORSOVELOCITY > 1 then
810
        RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
811
        Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
812
        RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
813
        LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
814
    elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
815
        RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
816
        Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
817
        RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
818
        LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
819
    end
820
    if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
821
        ANIM = "Jump"
822
        if ATTACK == false then
823
            RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
824
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
825
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
826
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
827
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
828
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
829
        end
830
    elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
831
        ANIM = "Fall"
832
        if ATTACK == false then
833
            RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
834
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
835
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
836
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
837
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
838
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
839
        end
840
    elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
841
        ANIM = "Idle"
842
        if ATTACK == false and Mode == 1 then
843
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
844
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.15 / Animation_Speed)
845
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5 + 0.2 * COS(SINE / 12), -0.1 + 0.2) * ANGLES(RAD(220), RAD(45), RAD(-75))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
846
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.2 * COS(SINE / 12), -0.1 + 0.2) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
847
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
848
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
849
        end
850
    if Mode == 2 then
851
        ANIM = "Idle"
852
RightHip.C0=Clerp(RightHip.C0,CF(1,-1 - 0.05 * math.cos(SINE / 32),0)*ANGLES(math.rad(0),math.rad(90),math.rad(0))*ANGLES(math.rad(-3),math.rad(0 - 1 * math.cos(SINE / 56)),math.rad(25 - 2 * math.cos(SINE / 32))),.1)
853
LeftHip.C0=Clerp(LeftHip.C0,CF(-1,-1 - 0.05 * math.cos(SINE / 32),0)*ANGLES(math.rad(0),math.rad(-90),math.rad(0))*ANGLES(math.rad(-3),math.rad(0 - 1 * math.cos(SINE / 56)),math.rad(-25 + 2 * math.cos(SINE / 32))),.1)
854
RootJoint.C0=Clerp(RootJoint.C0,ROOTC0*CF(0,-0.25 + 0.02 * math.cos(SINE / 32),-0.1 + 0.05 * math.cos(SINE / 32))*ANGLES(math.rad(25 - 2 * math.cos(SINE / 32)),math.rad(0),math.rad(0)),.1)
855
Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(math.rad(25 + math.random(-1,1)),math.rad(math.random(-1,1)),math.rad(math.random(-1,1))),0.6)
856
RightShoulder.C0=Clerp(RightShoulder.C0,CF(1.5,0.7 + 0.025 * math.cos(SINE / 45),-0.5)*ANGLES(math.rad(25 + 5 * math.cos(SINE / 74) + math.random(-1,1)),math.rad(1 - 3 * math.cos(SINE / 53)),math.rad(1 + 3 * math.cos(SINE / 45))),.1)
857
LeftShoulder.C0=Clerp(LeftShoulder.C0,CF(-1.5,0.7 + 0.025 * math.cos(SINE / 45),-0.5)*ANGLES(math.rad(25 - 3 * math.cos(SINE / 73) + math.random(-1,1)),math.rad(2 - 1 * math.cos(SINE / 55)),math.rad(-3 - 3 * math.cos(SINE / 45))),.1)
858
end
859
    elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
860
        ANIM = "Walk"
861
        if ATTACK == false then
862
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
863
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
864
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.35 / Animation_Speed)
865
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
866
            RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
867
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
868
        end
869
    end
870
    unanchor()
871
    Humanoid.MaxHealth = "inf"
872
    Humanoid.Health = "inf"
873
    if Rooted == false then
874
        Disable_Jump = false
875
        Humanoid.WalkSpeed = Speed
876
    elseif Rooted == true then
877
        Disable_Jump = true
878
        Humanoid.WalkSpeed = 0
879
    end
880
end