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