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
- plr = owner
- char = script.Parent
- ra = char["Right Arm"]
- la = char["Left Arm"]
- rl = char["Right Leg"]
- ll = char["Left Leg"]
- tors = char.Torso
- 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", nil)
- 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
- function addpart(p, size, trans, collide, anchor, color, bc)
- local part = Instance.new("Part", p)
- part.Size = size
- part.Transparency = trans
- part.CanCollide = collide
- part.Anchored = anchor
- 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
- sh = 0.25
- body = Instance.new("Model", char)
- body.Name = "Body"
- ra.Transparency = 1
- upr = addpart(body, Vector3.new(1.36, 1.582, 1.516), 0, false, false, Color3.new(1, 1, 1), false)
- upm = addmesh(upr, Vector3.new(1, 1, 1), "FileMesh", 4086240035, 4086231003)
- upw = ezweld(body, upr, ra, CFrame.new(0, -0.35, 0))
- lwr = addpart(body, Vector3.new(1.107, 1.384, 1.064), 0, false, false, Color3.new(1, 1, 1), false)
- lwm = addmesh(lwr, Vector3.new(1, 1, 1), "FileMesh", 4086240028, 4086231003)
- lww = ezweld(body, lwr, ra, CFrame.new(0.15, 0.425, 0))
- rhd = addpart(body, Vector3.new(0.659, 0.801, 0.627), 0, false, false, Color3.new(1, 1, 1), false)
- rhm = addmesh(rhd, Vector3.new(1, 1, 1), "FileMesh", 4086240025, 4086231003)
- rhw = ezweld(body, rhd, ra, CFrame.new(0.15, 1.05, 0))
- la.Transparency = 1
- upl = addpart(body, Vector3.new(1.36, 1.582, 1.516), 0, false, false, Color3.new(1, 1, 1), false)
- upm = addmesh(upl, Vector3.new(1, 1, 1), "FileMesh", 4086240030, 4086227755)
- upw = ezweld(body, upl, la, CFrame.new(0, -0.35, 0))
- lwl = addpart(body, Vector3.new(1.107, 1.384, 1.064), 0, false, false, Color3.new(1, 1, 1), false)
- lwm = addmesh(lwl, Vector3.new(1, 1, 1), "FileMesh", 4086240052, 4086227755)
- lww = ezweld(body, lwl, la, CFrame.new(-0.15, 0.425, 0))
- lhd = addpart(body, Vector3.new(0.659, 0.801, 0.627), 0, false, false, Color3.new(1, 1, 1), false)
- lhm = addmesh(lhd, Vector3.new(1, 1, 1), "FileMesh", 4086240013, 4086227755)
- lhw = ezweld(body, lhd, la, CFrame.new(-0.15, 1.05, 0))
- rl.Transparency = 1
- upr = addpart(body, Vector3.new(1.36, 1.582, 1.516), 0, false, false, Color3.new(1, 1, 1), false)
- upm = addmesh(upr, Vector3.new(1, 1, 1), "FileMesh", 4086240115, 4086232421)
- upw = ezweld(body, upr, rl, CFrame.new(0, -0.35 - sh, 0))
- lwr = addpart(body, Vector3.new(1.107, 1.384, 1.064), 0, false, false, Color3.new(1, 1, 1), false)
- lwm = addmesh(lwr, Vector3.new(1, 1, 1), "FileMesh", 4086240070, 4086232421)
- lww = ezweld(body, lwr, rl, CFrame.new(0, 0.535 - sh, -0.075))
- rft = addpart(body, Vector3.new(0.659, 0.801, 0.627), 0, false, false, Color3.new(1, 1, 1), false)
- rfm = addmesh(rft, Vector3.new(1, 1, 1), "FileMesh", 4086240077, 4086232421)
- rfw = ezweld(body, rft, rl, CFrame.new(0, 1.15 - sh, -0.075))
- ll.Transparency = 1
- upl = addpart(body, Vector3.new(1.36, 1.582, 1.516), 0, false, false, Color3.new(1, 1, 1), false)
- upm = addmesh(upl, Vector3.new(1, 1, 1), "FileMesh", 4086240074, 4086229148)
- upw = ezweld(body, upl, ll, CFrame.new(0, -0.35 - sh, 0))
- lwl = addpart(body, Vector3.new(1.107, 1.384, 1.064), 0, false, false, Color3.new(1, 1, 1), false)
- lwm = addmesh(lwl, Vector3.new(1, 1, 1), "FileMesh", 4086240094, 4086229148)
- lww = ezweld(body, lwl, ll, CFrame.new(0, 0.535 - sh, -0.075))
- lft = addpart(body, Vector3.new(0.659, 0.801, 0.627), 0, false, false, Color3.new(1, 1, 1), false)
- lfm = addmesh(lft, Vector3.new(1, 1, 1), "FileMesh", 4086240057, 4086229148)
- lfw = ezweld(body, lft, ll, CFrame.new(0, 1.15 - sh, -0.075))
- tors.Transparency = 1
- upt = addpart(body, Vector3.new(2.011, 0.598, 1.768), 0, false, false, Color3.new(1, 1, 1), false)
- upm = addmesh(upt, Vector3.new(1, 1, 1), "FileMesh", 4086240054, 4086234619)
- upw = ezweld(body, upt, tors, CFrame.new(0, -0.25, 0))
- lwt = addpart(body, Vector3.new(2.057, 1.485, 2.12), 0, false, false, Color3.new(1, 1, 1), false)
- lwm = addmesh(lwt, Vector3.new(1, 1, 1), "FileMesh", 4086240109, 4086234619)
- lww = ezweld(char, lwt, tors, CFrame.new(0, 0.75, 0))
- hed.Transparency = 1
- hed:ClearAllChildren()
- hd = addpart(body, Vector3.new(1.194, 2.557, 2.074), 0, false, false, Color3.new(1, 1, 1), false)
- hdm = addmesh(hd, Vector3.new(1, 1, 1), "FileMesh", 4086240014, 4086236176)
- hdw = ezweld(body, hd, hed, CFrame.new(0, -0.425, 0.5))
- for i,v in pairs (char:children()) do
- if v:IsA("Hat") or v:IsA("Accessory") or v:IsA("Shirt") or v:IsA("Pants") or v:IsA("ShirtGraphic") then
- v:remove()
- end
- if v:IsA("Part") then
- v.BrickColor = BrickColor.new("Cyan")
- end
- if v:IsA("BodyColors") then
- v:remove()
- end
- end
- danim = Instance.new("Animation")
- danim.AnimationId = "rbxassetid://132546884"
- function projectorclone()
- char.Archivable = true
- local clone = char:Clone()
- clone.Parent = script
- clone.Name = " "
- clone.Torso.CFrame = root.CFrame * CFrame.new(3.5, 0, 0)
- for i,v in pairs (clone:children()) do
- if v:IsA("Script") or v:IsA("LocalScript") then
- v:remove()
- elseif v:IsA("Model") and v.Name == "Body" or v.Name == "effect" then
- v:remove()
- elseif v:IsA("BodyColors") then
- v:remove()
- elseif v:IsA("Motor6D") then
- if v.Name == "Right Shoulder" then
- v.C0 = RSnor
- elseif v.Name == "Left Shoulder" then
- v.C0 = LSnor
- elseif v.Name == "RootJoint" then
- v.C0 = rootjnor
- elseif v.Name == "Neck" then
- v.C0 = necknor
- elseif v.Name == "Right Hip" then
- v.C0 = RHnor
- elseif v.Name == "Left Hip" then
- v.C0 = LHnor
- end
- elseif v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
- v.Material = "Neon"
- v.BrickColor = BrickColor.new("Cyan")
- coroutine.resume(coroutine.create(function()
- local t = 0
- while true do
- Swait()
- if t == 0 then
- t = 1
- v.Transparency = 0.8
- else
- t = 0
- v.Transparency = 0.7
- end
- end
- end))
- if v.Name == "Head" then
- v.Size = Vector3.new(1, 1, 1)
- end
- end
- if v:IsA("Humanoid") then
- local dance = v:LoadAnimation(danim)
- dance.Looped = true
- dance:Play()
- dance.DidLoop:connect(function()
- dance:Play()
- end)
- coroutine.resume(coroutine.create(function()
- while true do
- Swait()
- dance.Looped = true
- v.Health = 600
- v.MaxHealth = 600
- end
- end))
- end
- end
- end
- hee = 25
- effects = Instance.new("Model", char)
- effects.Name = "effect"
- function spark(cf, color, mat, ss, es, up, c)
- if not char:FindFirstChild("cool") then
- local cool = Instance.new("NumberValue", char)
- cool.Name = "cool"
- game:GetService("Debris"):AddItem(cool, c)
- local spark = Instance.new("Part", effects)
- spark.Size = ss
- spark.BrickColor = BrickColor.new(color)
- spark.Material = mat
- spark.CFrame = cf
- spark.Anchored = true
- spark.Locked = true
- spark.CanCollide = false
- local mesh = Instance.new("SpecialMesh", spark)
- mesh.MeshType = "Sphere"
- coroutine.resume(coroutine.create(function()
- for i = 1,35 do
- Swait()
- spark.Anchored = true
- spark.CanCollide = false
- spark.Transparency = spark.Transparency + 0.05
- spark.Size = spark.Size:Lerp(es, 0.05)
- spark.CFrame = spark.CFrame * CFrame.new(0, up, 0)
- end
- spark:remove()
- end))
- end
- end
- function CastProperRay(StartPos, EndPos, Distance, Ignore)
- local DIRECTION = CFrame.new(StartPos,EndPos).lookVector
- return RayCast(StartPos, DIRECTION, Distance, Ignore)
- end
- function robobeam()
- for i = 1,45 do
- Swait()
- local radnom = CFrame.Angles(math.rad(math.random(-180,180)), math.rad(math.random(-180,180)), math.rad(math.random(-180,180)))
- spark(hed.CFrame * CFrame.new(0, 0, -0.75) * radnom, "Cyan", "Neon", Vector3.new(0.25, 0.75, 0.25), Vector3.new(0.4, 1.35, 0.4), 0.05, 0.075)
- end
- local FIREFROM = hed.CFrame * CFrame.new(0, 0, -0.75).p
- local HIT,POS = CastProperRay(FIREFROM,mouse.Hit.p,1000,char)
- if HIT then
- local dud = HIT.Parent
- if dud ~= char then
- for i,v in pairs (dud:children()) do
- if v:IsA("Humanoid") then
- v.Health = v.Health - 6
- end
- end
- end
- end
- local DISTANCE = (POS - FIREFROM).Magnitude
- local beam = Instance.new("Part", effects)
- beam.CanCollide = false
- beam.Locked = true
- beam.BrickColor = BrickColor.new("Cyan")
- beam.Material = "Neon"
- beam.CFrame = CFrame.new(FIREFROM,POS)*CFrame.new(0,0,-DISTANCE/2)
- beam.Size = Vector3.new(1, 1, 1)
- local mesh = Instance.new("SpecialMesh", beam)
- mesh.MeshType = "Sphere"
- mesh.Scale = Vector3.new(8, 8, DISTANCE)
- beam.Anchored = true
- for i = 1,257 do
- Swait()
- local FIREFROM = hed.CFrame * CFrame.new(0, 0, -0.75).p
- local HIT,POS = CastProperRay(FIREFROM,mouse.Hit.p,1000,char)
- if HIT then
- local dud = HIT.Parent
- if dud ~= char then
- for i,v in pairs (dud:children()) do
- if v:IsA("Humanoid") then
- v.Health = v.Health - 0.25
- end
- end
- end
- end
- local DISTANCE = (POS - FIREFROM).Magnitude
- beam.Anchored = true
- local radnom = CFrame.Angles(math.rad(math.random(-180,180)), math.rad(math.random(-180,180)), math.rad(math.random(-180,180)))
- mesh.Scale = mesh.Scale - Vector3.new(0.025, 0.025, 0)
- beam.CFrame = CFrame.new(FIREFROM,POS)*CFrame.new(0,0,-DISTANCE/2)
- mesh.Scale = Vector3.new(mesh.Scale.x, mesh.Scale.y, DISTANCE)
- beam.Transparency = beam.Transparency + 0.0035
- spark(beam.CFrame * CFrame.new(0, 0, -mesh.Scale.z / 2) * radnom, "Cyan", "Neon", Vector3.new(3.25, 4.75, 3.25), Vector3.new(3.4, 7.35, 3.4), 0.45, 0.065)
- end
- beam:remove()
- end
- mouse.KeyDown:connect(function(key)
- if key == "e" then
- robobeam()
- end
- if key == "z" then
- projectorclone()
- end
- end)
- broken = false
- bodyp = {}
- for i,v in pairs (body:GetChildren()) do
- if v:IsA("Part") then
- table.insert(bodyp, v)
- end
- end
- local OWMYHEAD = math.rad(math.random(-180, 180))
- local healer = char:FindFirstChild("Health")
- if healer then
- healer:remove()
- end
- while true do
- Swait()
- if hum.Health > 50 then
- broken = false
- for i = 1, #bodyp do
- if bodyp[i] ~= nil then
- bodyp[i].Parent = body
- end
- end
- else
- broken = true
- rhd.Parent = nil
- lwr.Parent = nil
- rft.Parent = nil
- end
- twitch = math.random(1, 11)
- sparki = math.random(1, 20)
- OWMYHEAD = math.rad(math.random(-180, 180))
- sine = sine + 1
- hum.JumpPower = 45
- hum.WalkSpeed = sped
- hum.HipHeight = 0
- local TiltVelocity = CFrame.new(root.CFrame:vectorToObjectSpace(root.Velocity/1.6))
- local TORSOVELOCITY = (root.Velocity * VT(1, 0, 1)).magnitude
- local WALKSPEEDVALUE = 6 / (hum.WalkSpeed / 16)
- 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
- if broken == false then
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0.05 * Cos(sine / (77 / 2))), 0.3)
- clerp(neck, necknor * CFrame.Angles(Rad(0 + 0 * Cos(sine / (99 / 2))), 0, Rad(0 + 0 * Cos(sine / (99)))), 0.3)
- clerp(RH, RHnor * CFrame.Angles(Rad(0), Rad(-7), 0) * CFrame.new(0, -0.05 * Cos(sine / (77 / 2)), 0), 0.3)
- clerp(LH, LHnor * CFrame.Angles(Rad(0), Rad(7), 0) * CFrame.new(0, -0.05 * Cos(sine / (77 / 2)), 0), 0.3)
- clerp(RS, RSnor * CFrame.new(0, -0.05, 0) * CFrame.Angles(Rad(-7), Rad(-11), 0), 0.3)
- clerp(LS, LSnor * CFrame.new(0, -0.05, 0) * CFrame.Angles(Rad(-7), Rad(11), 0), 0.3)
- else
- clerp(rootj, rootjnor * CFrame.new(0, 0, 0.05 * Cos(sine / (77 / 2))) * CFrame.Angles(Rad(25), 0, 0), 0.3)
- clerp(neck, necknor * CFrame.Angles(Rad(0), 0, Rad(0)) * CFrame.Angles(Rad(25), 0, 0), 0.3)
- clerp(RH, RHnor * CFrame.Angles(Rad(0), Rad(-7), 0) * CFrame.new(0, -0.05 * Cos(sine / (77 / 2)), 0) * CFrame.Angles(Rad(-7), 0, Rad(-25)), 0.3)
- clerp(LH, LHnor * CFrame.Angles(Rad(0), Rad(7), 0) * CFrame.new(0, -0.05 * Cos(sine / (77 / 2)), 0) * CFrame.Angles(Rad(-7), 0, Rad(-25)), 0.3)
- clerp(RS, RSnor * CFrame.new(0, -0.05, 0) * CFrame.Angles(Rad(-7), Rad(-11), Rad(35)), 0.3)
- clerp(LS, LSnor * CFrame.new(0, -0.05, 0) * CFrame.Angles(Rad(-7), Rad(11), Rad(-35)), 0.3)
- if twitch == 1 then
- neck.C0 = necknor * CFrame.Angles(OWMYHEAD, OWMYHEAD, OWMYHEAD)
- end
- if sparki == 1 then
- for i = 1,3 do
- Swait()
- local radnom = CFrame.Angles(math.rad(math.random(-180,180)), math.rad(math.random(-180,180)), math.rad(math.random(-180,180)))
- spark(ll.CFrame * CFrame.new(0.5, 0, 0) * radnom, "Bright yellow", "Neon", Vector3.new(0.25, 0.75, 0.25), Vector3.new(0.4, 1.35, 0.4), 0.05, 0.075)
- end
- end
- end
- 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 / 2) + (TiltVelocity.z / 3) * Sin(sine / (WALKSPEEDVALUE / 2))) * 1, Rad(0) -Rad(TiltVelocity.x) * 0.4 + root.Velocity.y / 35, 0), 0.7)
- clerp(neck, necknor * CFrame.Angles(Rad((TiltVelocity.z / 2) + (TiltVelocity.z / 3) * Sin(sine / (WALKSPEEDVALUE / 2))) * 1, hed.Velocity.y / 35, 0), 0.7)
- 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 - hee * math.sin(sine / WALKSPEEDVALUE)*math.rad(TiltVelocity.x)*5.5), Rad(0), Rad(hee * Sin(sine / WALKSPEEDVALUE)) + 0 + Sin(sine / WALKSPEEDVALUE) / 3.5 * -Rad(TiltVelocity.z) * 10) * CFrame.new(0 + 0.1 * Sin(sine / WALKSPEEDVALUE), -0.025 * Cos(sine / 12), 0) * CFrame.new(0, 0.1 + 0.1 * Sin(sine / WALKSPEEDVALUE), 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 - hee * math.sin(sine / WALKSPEEDVALUE)*math.rad(TiltVelocity.x)*5.5), Rad(0), Rad(hee * Sin(sine / WALKSPEEDVALUE)) + 0 + Sin(sine / WALKSPEEDVALUE) / 3.5 * -Rad(TiltVelocity.z) * 10) * CFrame.new(0 + 0.1 * Sin(sine / WALKSPEEDVALUE), -0.025 * Cos(sine / 12), 0) * CFrame.new(0, 0.1 + 0.1 * Sin(sine / WALKSPEEDVALUE), 0), 0.3)
- clerp(RS, RSnor * CFrame.Angles(Rad(0), 0, Rad(0 - 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(0 - 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
Add Comment
Please, Sign In to add comment