Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --by youngmacka123--
- script.Parent = owner.Character
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- local RealPlayer = Player
- do print("hi")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;print'by youngmacka123 aka makaroni'
- plr = owner
- char = plr.Character
- ra = char["Right Arm"]
- la = char["Left Arm"]
- hed = char.Head
- root = char.HumanoidRootPart
- hum = char.Humanoid
- dancin = false
- clerp = function(toclerp, cf, number)
- local joint = toclerp
- joint.C0 = joint.C0:Lerp(cf, number)
- end
- clerp2 = function(toclerp, cf)
- local joint = toclerp
- joint.C0 = cf
- end
- clerp3 = function(toclerp, cf, number)
- local joint = toclerp
- joint.C1 = joint.C1:Lerp(cf, number)
- end
- Swait,swait = function(number)
- if number == 0 or number == nil then
- game:GetService("RunService").Heartbeat:Wait()
- else
- for i = 1,number do
- game:GetService("RunService").Heartbeat:Wait()
- end
- end
- end
- ezweld = function(p, a, b, cf)
- local weld = Instance.new("Weld",p)
- weld.Part0 = a
- weld.Part1 = b
- weld.C0 = cf
- return weld
- end
- NewSound = function(p, id, pit, vol, loop)
- local Sound = Instance.new("Sound",p)
- Sound.Pitch = pit
- Sound.Volume = vol
- Sound.SoundId = "rbxassetid://" ..id
- Sound.Looped = loop
- Sound:Play()
- return Sound
- end
- IT = Instance.new
- Rad = math.rad
- Cos = math.cos
- Sin = math.sin
- BrickC = BrickColor.new
- C3 = Color3.new
- VT = Vector3.new
- anim = "Idle"
- attack = false
- local RS = char.Torso["Right Shoulder"]
- local LS = char.Torso["Left Shoulder"]
- local RH = char.Torso["Right Hip"]
- local LH = char.Torso["Left Hip"]
- local neck = char.Torso["Neck"]
- local anim = "Idle"
- local animate = char.Animate
- local root = char.HumanoidRootPart
- local rootj = root.RootJoint
- local timepos = 0
- local sine = 0
- local RSnor = RS.C0
- local LSnor = LS.C0
- local RHnor = RH.C0
- local LHnor = LH.C0
- local RSnor2 = RS.C1
- local LSnor2 = LS.C1
- local RHnor2 = RH.C1
- local LHnor2 = LH.C1
- local rootjnor = rootj.C0
- local necknor = neck.C0
- local tors = char.Torso
- hum.Animator:remove()
- mouse = plr:GetMouse()
- hold = false
- Debris = game:GetService("Debris")
- local dustp = Instance.new("Part",char)
- dustp.Transparency = 1
- dustp.Size = Vector3.new(0.1, 0.1, 0.1)
- dustp.CanCollide = false
- dustp.Locked = true
- local dustj = ezweld(char, root, dustp, CFrame.new(0, -tors.Size.y - 0.5, 0))
- local dust = Instance.new("ParticleEmitter",dustp)
- dust.Rate = 3
- dust.Lifetime = NumberRange.new(0.35)
- dust.Texture = "rbxassetid://420061161"
- dust.Speed = NumberRange.new(2)
- dust.EmissionDirection = "Back"
- dust.Rotation = NumberRange.new(155)
- dust.RotSpeed = NumberRange.new(15)
- dust.Enabled = false
- dust.Size = NumberSequence.new(tors.Size.y - 1.5, tors.Size.y - 0.75)
- dust.Transparency = NumberSequence.new(0.25, 1)
- sped = 16
- hee = 15
- ae = false
- emrad = 0
- function RayCast(Position, Direction, Range, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
- end
- for i,v in pairs (char:GetChildren()) do
- if v:IsA("Hat") or v:IsA("Accessory") or v:IsA("ShirtGraphic") or v:IsA("Shirt") or v:IsA("Pants") then
- v:remove()
- end
- if v:IsA("Part") then
- v.Color = Color3.new(1, 1, 1)
- end
- end
- function addpart(p, size, trans, collide, anchor, color, bc, mat)
- local part = Instance.new("Part", p)
- part.Size = size
- part.Transparency = trans
- part.CanCollide = collide
- part.Anchored = anchor
- part.Material = mat
- if bc then
- part.BrickColor = BrickColor.new(color)
- else
- part.Color = color
- end
- return part
- end
- function addmesh(p, scale, t, msh, txt)
- local mesh = Instance.new("SpecialMesh", p)
- mesh.Scale = scale
- mesh.MeshType = t
- if t == "FileMesh" then
- mesh.MeshId = "rbxassetid://" ..msh
- mesh.TextureId = "rbxassetid://" ..txt
- end
- end
- local accessory = addpart(char, Vector3.new(2, 1.6, 2), 0, false, false, "Grey", true, "Plastic")
- local mesh = addmesh(accessory, Vector3.new(1, 1, 1), "FileMesh", 11144636, 11144632)
- local weld = ezweld(char, accessory, hed, CFrame.new(0, -0.9775, 0))
- local hat2 = addpart(char, Vector3.new(2, 1.6, 2), 1, false, false, "Grey", true, "Plastic")
- local mesh = addmesh(hat2, Vector3.new(1, 1, 1), "FileMesh", 11144636, 11144632)
- local weld2 = ezweld(char, hat2, ra, CFrame.new(0, 1.65, 0))
- local shirt = Instance.new("Shirt", char)
- shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=11192464"
- local pants = Instance.new("Pants", char)
- pants.PantsTemplate = "http://www.roblox.com/asset/?id=11192327"
- local music = NewSound(hed, 1234043017, 1, 10, true)
- music.Name = "musicthatneedstobevisualizedayee"
- local smug = false
- cn = CFrame.new
- angles = CFrame.Angles
- local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
- local NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- local loudness = 0
- local remote = Instance.new("RemoteEvent", char)
- remote.Name = "localsound"
- local client = NLS([[
- plr = owner
- char = plr.Character
- hed = char.Head
- song = hed.musicthatneedstobevisualizedayee
- remote = char.localsound
- while true do
- game:GetService("RunService").Heartbeat:Wait()
- remote:FireServer(song.PlaybackLoudness / 3)
- end
- ]], char)
- remote.OnServerEvent:connect(function(_,loud)
- loudness = loud
- end)
- smug = false
- function smuggy()
- if smug then
- smug = false
- RS.C1 = RSnor2
- LS.C1 = LSnor2
- RH.C1 = RHnor2
- LH.C1 = LHnor2
- else
- local sinno = 0
- RS.C1 = cn(0, 0.5, 0)
- LS.C1 = cn(0, 0.5, 0)
- RH.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- LH.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- attack = true
- smug = true
- repeat
- Swait()
- sinno = sinno + loudness / 75 + 0.15
- clerp(rootj, RootCF*CFrame.new(0+(.75*math.cos(sinno/8)),0+(.2*math.sin(sinno/16)),-.25+(-.1*math.cos(sinno/4)))*angles(math.rad(-10-10*math.sin(sinno/16)),math.rad(0),math.rad(0+(20*math.sin(sinno/8)))), 0.3)
- clerp(neck, NeckCF*CFrame.new(0,0,0)*angles(math.rad(20*math.sin(sinno/16)),math.rad(0),math.rad(0-(20*math.sin(sinno/32)))), 0.3)
- clerp(RH, CFrame.new(.5, -.9+.1*math.cos(sinno/4), -.1-.1*math.cos(sinno/4))*angles(math.rad(-10-(10*math.sin(sinno/16))-(5*math.sin(sinno/8)) ),math.rad(-20+(-20*math.sin(sinno/8))),math.rad(10+(20*math.cos(sinno/8)))), 0.3)
- clerp(LH, CFrame.new(-.5, -.9+.1*math.cos(sinno/4), -.1-.1*math.cos(sinno/4))*angles(math.rad(-10-(10*math.sin(sinno/16))+(5*math.sin(sinno/8)) ),math.rad(20+(-20*math.sin(sinno/8))),math.rad(-10+(20*math.cos(sinno/8)))), 0.3)
- clerp(RS, CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(120+(-20*math.cos(sinno/8))+(-20*math.sin(sinno/16))),math.rad(0),math.rad(25+(25*math.cos(sinno/8)) )), 0.3)
- clerp(LS, CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(120+(20*math.cos(sinno/8))+(-20*math.sin(sinno/16))),math.rad(0),math.rad(-25+(25*math.cos(sinno/8)))), 0.3)
- until smug == false
- smug = false
- attack = false
- end
- end
- function wave()
- attack = true
- for i = 1,45 do
- Swait()
- sped = 0
- dust.Enabled = false
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0.15 * Cos(sine / 12)), 0.3)
- clerp(neck, necknor * CFrame.Angles(Rad(0 + 3 * Cos(sine / (12 / 1))), 0, Rad(0)), 0.3)
- clerp(RH, RHnor * CFrame.Angles(Rad(-4), Rad(-4), 0) * CFrame.new(0, -0.15 * Cos(sine / 12), 0), 0.3)
- clerp(LH, LHnor * CFrame.Angles(Rad(-4), Rad(4), 0) * CFrame.new(0, -0.15 * Cos(sine / 12), 0), 0.3)
- clerp(RS, RSnor * CFrame.new(0, 0.5, 0) * CFrame.Angles(Rad(15 + 25 * Cos(sine / 5)), Rad(0), Rad(180)), 0.3)
- clerp(LS, LSnor * CFrame.new(0, -0.05, 0) * CFrame.Angles(Rad(-11 - 5 * Sin(sine / 12)), Rad(3), 0), 0.3)
- end
- attack = false
- end
- function dropdice()
- attack = true
- local dice = Instance.new("Part", workspace)
- dice.Name = "dice" ..plr.Name
- dice.Size = Vector3.new(1, 0.95, 1)
- dice.CanCollide = false
- local mesh = addmesh(dice, Vector3.new(0.02, 0.02, 0.02), "FileMesh", 3717997607, 4557756121)
- local weld = ezweld(char, dice, ra, CFrame.new(0, ra.Size.y / 2 + 0.25, 0))
- for i = 1,12 do
- Swait()
- sped = 0
- dust.Enabled = false
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0.15 * Cos(sine / 12)), 0.3)
- clerp(neck, necknor * CFrame.Angles(Rad(0 + 3 * Cos(sine / (12 / 1))), 0, Rad(25)), 0.3)
- clerp(RH, RHnor * CFrame.Angles(Rad(-4), Rad(-4), 0) * CFrame.new(0, -0.15 * Cos(sine / 12), 0), 0.3)
- clerp(LH, LHnor * CFrame.Angles(Rad(-4), Rad(4), 0) * CFrame.new(0, -0.15 * Cos(sine / 12), 0), 0.3)
- clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(90)), 0.3)
- clerp(LS, LSnor * CFrame.new(0, -0.05, 0) * CFrame.Angles(Rad(-11 - 5 * Sin(sine / 12)), Rad(3), 0), 0.3)
- end
- weld:remove()
- dice.CanCollide = true
- attack = false
- end
- local a = math.huge
- function nograv(part)
- local vel = Instance.new("BodyVelocity", part)
- vel.MaxForce = Vector3.new(a, a, a)
- vel.Velocity = Vector3.new(0, 0, 0)
- return vel
- end
- rl = char["Right Leg"]
- ll = char["Left Leg"]
- function kickdice()
- attack = true
- for i = 1,25 do
- Swait()
- sped = 0
- dust.Enabled = false
- clerp(rootj, rootjnor * CFrame.new(0, 0, -0.25 + 0.15 * Cos(sine / 12)) * CFrame.Angles(Rad(45), 0, Rad(0)), 0.3)
- clerp(neck, necknor * CFrame.Angles(Rad(0 + 3 * Cos(sine / (12 / 1))), 0, Rad(0)), 0.3)
- clerp(RH, RHnor * CFrame.Angles(Rad(-4), Rad(-4), Rad(-45)) * CFrame.new(0, -0.15 * Cos(sine / 12), 0), 0.3)
- clerp(LH, LHnor * CFrame.Angles(Rad(-4), Rad(4), Rad(-45)) * CFrame.new(0, -0.15 * Cos(sine / 12), 0), 0.3)
- clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-45)), 0.3)
- clerp(LS, LSnor * CFrame.new(0, -0.05, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(45)), 0.3)
- end
- local detect = addpart(char, rl.Size, 1, false, false, "Grey", true, "Plastic")
- detect.Locked = true
- local grav = nograv(detect)
- local kicked = false
- local hitbox = detect.Touched:connect(function(hit)
- if hit.Name == "dice" ..plr.Name and kicked == false then
- kicked = true
- hit.Velocity = rl.CFrame.lookVector * 150
- end
- end)
- for i = 1,25 do
- Swait()
- sped = 0
- detect.CFrame = rl.CFrame
- dust.Enabled = false
- clerp(rootj, rootjnor * CFrame.new(0, 0, -0.25 + 0.15 * Cos(sine / 12)) * CFrame.Angles(Rad(-45), 0, Rad(0)), 0.3)
- clerp(neck, necknor * CFrame.Angles(Rad(0 + 3 * Cos(sine / (12 / 1))), 0, Rad(0)), 0.3)
- clerp(RH, RHnor * CFrame.Angles(Rad(-4), Rad(-4), Rad(45)) * CFrame.new(0, -0.15 * Cos(sine / 12), 0), 0.3)
- clerp(LH, LHnor * CFrame.Angles(Rad(-4), Rad(4), Rad(45)) * CFrame.new(0, -0.15 * Cos(sine / 12), 0), 0.3)
- clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-45)), 0.3)
- clerp(LS, LSnor * CFrame.new(0, -0.05, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(45)), 0.3)
- end
- detect:remove()
- hitbox:disconnect()
- attack = false
- end
- local stolen = nil
- local caught = {}
- local gottem = false
- local yus = Instance.new("NumberValue", nil)
- function catchinhat()
- if stolen == nil then
- attack = true
- accessory.Transparency = 1
- hat2.Transparency = 0
- for i = 1,45 do
- Swait()
- sped = 0
- dust.Enabled = false
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0.15 * Cos(sine / 12)) * CFrame.Angles(Rad(0), 0, Rad(25)), 0.3)
- clerp(neck, necknor * CFrame.Angles(Rad(0 + 3 * Cos(sine / (12 / 1))), 0, Rad(-25)), 0.3)
- clerp(RH, RHnor * CFrame.Angles(Rad(-4), Rad(-4), 0) * CFrame.new(0, -0.15 * Cos(sine / 12), 0), 0.3)
- clerp(LH, LHnor * CFrame.Angles(Rad(-4), Rad(4), 0) * CFrame.new(0, -0.15 * Cos(sine / 12), 0), 0.3)
- clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(90)), 0.3)
- clerp(LS, LSnor * CFrame.new(0, -0.05, 0) * CFrame.Angles(Rad(-11 - 5 * Sin(sine / 12)), Rad(3), 0), 0.3)
- end
- if mouse.Target then
- if mouse.Target.Parent then
- local dud = mouse.Target.Parent
- if dud and dud ~= workspace then
- local torso = dud:FindFirstChild("Torso") or dud:FindFirstChild("UpperTorso")
- if torso then
- for i = 1,75 do
- Swait()
- torso.Anchored = true
- torso.CFrame = torso.CFrame:lerp(hat2.CFrame, 0.075)
- sped = 0
- dust.Enabled = false
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0.15 * Cos(sine / 12)) * CFrame.Angles(Rad(0), 0, Rad(25)), 0.3)
- clerp(neck, necknor * CFrame.Angles(Rad(0 + 3 * Cos(sine / (12 / 1))), 0, Rad(-25)), 0.3)
- clerp(RH, RHnor * CFrame.Angles(Rad(-4), Rad(-4), 0) * CFrame.new(0, -0.15 * Cos(sine / 12), 0), 0.3)
- clerp(LH, LHnor * CFrame.Angles(Rad(-4), Rad(4), 0) * CFrame.new(0, -0.15 * Cos(sine / 12), 0), 0.3)
- clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(90)), 0.3)
- end
- torso.Anchored = false
- end
- local stolen = dud
- yus.Parent = stolen
- gottem = true
- for i,v in pairs (stolen:children()) do
- if v:IsA("Hat") or v:IsA("Accessory") or v:IsA("Shirt") or v:IsA("ShirtGraphic") or v:IsA("Pants") or v:IsA("Part") or v:IsA("MeshPart") or v:IsA("Humanoid") then
- table.insert(caught, v)
- v.Parent = nil
- end
- end
- end
- end
- end
- hat2.Transparency = 1
- accessory.Transparency = 0
- attack = false
- end
- return stolen
- end
- function release(cf)
- if yus.Parent ~= nil then
- local stolen = yus.Parent
- if stolen ~= nil then
- gottem = false
- for i = 1,#caught do
- if caught[i] ~= nil then
- caught[i].Parent = stolen
- if caught[i].ClassName == "Part" or caught[i].ClassName == "MeshPart" then
- caught[i].CFrame = hat2.CFrame
- end
- end
- end
- else
- gottem = false
- end
- stolen = nil;caught = {}
- end
- end
- mouse.KeyDown:connect(function(key)
- if key == "t" then
- wave()
- end
- if key == "y" then
- smuggy()
- end
- if key == "e" then
- dropdice()
- end
- if key == "r" then
- kickdice()
- end
- if key == "v" then
- if gottem == false then
- catchinhat()
- else
- release(hat2.CFrame)
- end
- end
- end)
- print('by youngmacka123')
- while true do
- Swait()
- music.Playing = true
- music.SoundId = "rbxassetid://1234043017"
- music.Volume = 5
- music.Looped = true
- sine = sine + 1
- hum.JumpPower = 45
- hum.WalkSpeed = sped
- local TiltVelocity = CFrame.new(root.CFrame:vectorToObjectSpace(root.Velocity/1.6))
- local TORSOVELOCITY = (root.Velocity * VT(1, 0, 1)).magnitude
- local WALKSPEEDVALUE = 7 / (hum.WalkSpeed / 17)
- torsverticalvel = root.Velocity.y
- hitfloor = RayCast(root.Position, (CFrame.new(root.Position, root.Position + Vector3.new(0, -1, 0))).lookVector, tors.Size.y+2+hum.HipHeight, char)
- if TORSOVELOCITY < 1 and hitfloor ~= nil then
- anim = "Idle"
- if attack == false then
- sped = 10
- dust.Enabled = false
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0.15 * Cos(sine / 12)), 0.3)
- clerp(neck, necknor * CFrame.Angles(Rad(0 + 3 * Cos(sine / (12 / 1))), 0, Rad(0)), 0.3)
- clerp(RH, RHnor * CFrame.Angles(Rad(-4), Rad(-4), 0) * CFrame.new(0, -0.15 * Cos(sine / 12), 0), 0.3)
- clerp(LH, LHnor * CFrame.Angles(Rad(-4), Rad(4), 0) * CFrame.new(0, -0.15 * Cos(sine / 12), 0), 0.3)
- clerp(RS, RSnor * CFrame.new(0, -0.05, 0) * CFrame.Angles(Rad(-11 - 5 * Sin(sine / 12)), Rad(-3), 0), 0.3)
- clerp(LS, LSnor * CFrame.new(0, -0.05, 0) * CFrame.Angles(Rad(-11 - 5 * Sin(sine / 12)), Rad(3), 0), 0.3)
- end
- elseif TORSOVELOCITY > 1 and hitfloor ~= nil then
- anim = "Walk"
- if attack == false then
- sped = 16
- dust.Enabled = false
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0.05 * Cos(sine / (WALKSPEEDVALUE + 15))) * CFrame.Angles(-Rad(TiltVelocity.z) + Rad(TiltVelocity.z / 3) * Sin(sine / (WALKSPEEDVALUE / 2)) * 1, Rad(0) -Rad(TiltVelocity.x) + Rad(TiltVelocity.x / 8) * Sin(sine / (WALKSPEEDVALUE / 2)) * 0.4 + root.Velocity.y / 35, 0), 0.3)
- clerp(neck, necknor * CFrame.Angles(Rad(TiltVelocity.z) - Rad(TiltVelocity.z / 3) * Sin(sine / (WALKSPEEDVALUE / 2)) * 1, hed.Velocity.y / 35, 0), 0.3)
- clerp(RH, RHnor * CFrame.new(0 + 0.025 * Sin(sine / (WALKSPEEDVALUE / 1)), 0.05 + 0.1 * Sin(sine / (WALKSPEEDVALUE / 2)), 0) * CFrame.Angles(Rad(0 - 25 * math.sin(sine / WALKSPEEDVALUE)*math.rad(TiltVelocity.x)*5.5), Rad(0), Rad(hee * Cos(sine / WALKSPEEDVALUE)) + 0 + Sin(sine / WALKSPEEDVALUE) / 2.5 * -Rad(TiltVelocity.z) * 10) * CFrame.new(0, -0.025 * Cos(sine / 12), 0), 0.3)
- clerp(LH, LHnor * CFrame.new(0 + 0.025 * Sin(sine / (WALKSPEEDVALUE / 1)), 0.05 + 0.1 * Sin(sine / (WALKSPEEDVALUE / 2)), 0) * CFrame.Angles(Rad(0 - 25 * math.sin(sine / WALKSPEEDVALUE)*math.rad(TiltVelocity.x)*5.5), Rad(0), Rad(hee * Cos(sine / WALKSPEEDVALUE)) + 0 + Sin(sine / WALKSPEEDVALUE) / 2.5 * -Rad(TiltVelocity.z) * 10) * CFrame.new(0, -0.025 * Cos(sine / 12), 0), 0.3)
- clerp(RS, RSnor * CFrame.Angles(Rad(0), 0, Rad(-hee * Cos(sine / WALKSPEEDVALUE)) - 0 + -Sin(sine / WALKSPEEDVALUE) / 2.5 * -Rad(TiltVelocity.z) * 10), 0.3)
- clerp(LS, LSnor * CFrame.Angles(Rad(0), 0, Rad(-hee * Cos(sine / WALKSPEEDVALUE)) - 0 + -Sin(sine / WALKSPEEDVALUE) / 2.5 * -Rad(TiltVelocity.z) * 10), 0.3)
- end
- elseif torsverticalvel > 0.05 and hitfloor == nil then
- anim = "Jump"
- if attack == false then
- sped = 16
- dust.Enabled = false
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0.1 * Cos(sine / (WALKSPEEDVALUE + 15))) * CFrame.Angles(Rad(5), 0, 0), 0.3)
- clerp(neck, necknor * CFrame.Angles(Rad(-5), 0, 0), 0.3)
- clerp(RH, RHnor * CFrame.Angles(Rad(-6), Rad(-15), Rad(-20)) * CFrame.new(0, -0.1 * Cos(sine / (WALKSPEEDVALUE + 15)), 0), 0.3)
- clerp(LH, LHnor * CFrame.Angles(Rad(-6), Rad(15), Rad(20)) * CFrame.new(0, -0.1 * Cos(sine / (WALKSPEEDVALUE + 15)), 0), 0.3)
- clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(20 + 6 * math.sin(sine / 12)), 0, Rad(160)), 0.3)
- clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(20 + 6 * math.sin(sine / 12)), 0, Rad(-160)), 0.3)
- end
- elseif torsverticalvel < 0.05 and hitfloor == nil then
- anim = "Fall"
- if attack == false then
- sped = 16
- dust.Enabled = false
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0.1 * Cos(sine / 12)) * CFrame.Angles(Rad(-5), 0, 0), 0.3)
- clerp(neck, necknor * CFrame.Angles(Rad(25), 0, 0), 0.3)
- clerp(RH, RHnor * CFrame.Angles(Rad(-6), Rad(-15), Rad(25)) * CFrame.new(0, -0.1 * Cos(sine / 12), 0), 0.3)
- clerp(LH, LHnor * CFrame.Angles(Rad(-6), Rad(15), Rad(-25)) * CFrame.new(0, -0.1 * Cos(sine / 12), 0), 0.3)
- clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, Rad(35)), 0.3)
- clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, Rad(-35)), 0.3)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement