Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Player = game:GetService("Players").LocalPlayer
- local rm = Instance.new("Motor", torso)
- rm.C0 = CFrame.new(1.5, 0.5, 0)
- rm.C1 = CFrame.new(0, 0.5, 0)
- rm.Part0 = torso
- rm.Part1 = ra
- rm.Name = 'Right Shoulder'
- local lm = Instance.new("Motor", torso)
- lm.C0 = CFrame.new(-1.5, 0.5, 0)
- lm.C1 = CFrame.new(0, 0.5, 0)
- lm.Part0 = torso
- lm.Part1 = la
- lm.Name = 'Left Shoulder'
- local rlegm = Instance.new("Motor", torso)
- rlegm.C0 = CFrame.new(0.5, -1, 0)
- rlegm.C1 = CFrame.new(0, 1, 0)
- rlegm.Part0 = torso
- rlegm.Part1 = rl
- local llegm = Instance.new("Motor", torso)
- llegm.C0 = CFrame.new(-0.5, -1, 0)
- llegm.C1 = CFrame.new(0, 1, 0)
- llegm.Part0 = torso
- llegm.Part1 = ll
- rj.C0 = CFrame.new()
- rj.C1 = CFrame.new()
- neck.C0 = CFrame.new(0, 1, 0)
- neck.C1 = CFrame.new(0, -0.5, 0)
- local speed = 0.3
- local angle = 0
- local anglespeed = 1
- rsc0 = rm.C0
- lsc0 = lm.C0
- llc0 = llegm.C0
- rlc0 = rlegm.C0
- rootc0 = rj.C0
- neckc0 = neck.C0
- ----------------------------------------------
- wait()
- function descend(obj,class,func)
- for i,v in pairs(obj:GetChildren()) do
- if v:IsA(class) then
- func(v)
- end
- descend(v,class,func)
- end
- end
- local pls = game:GetService("Players").LocalPlayer
- function initiateCharacter(char)
- if not char then return end
- wait()
- descend(char,"BasePart",function(obj)
- obj.Anchored = false
- obj.Changed:connect(function()
- if obj.Anchored then
- obj.Anchored = false
- end
- end)
- end)
- descend(char,"Humanoid",function(obj)
- obj.WalkSpeed = 16
- obj.Changed:connect(function()
- if obj.WalkSpeed == 0 then
- obj.WalkSpeed = 16
- end
- end)
- end)
- end
- initiateCharacter(pls.Character)
- pls.CharacterAdded:connect(function(c)
- initiateCharacter(c)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement