Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lp = game.Players.LocalPlayer
- local aw = false;
- local sw = false;
- local rg = false;
- lp.Chatted:Connect(function(c)
- if c == ".airwalk" then
- aw = true;
- sw = false;
- rg = false;
- elseif c == ".unairwalk" then
- aw = false;
- elseif c == ".swim" then
- sw = true;
- aw = false;
- rg = false;
- elseif c == ".unswim" then
- sw = false;
- elseif c == ".ragdoll" then
- rg = true;
- sw = false;
- aw = false;
- elseif c == ".unragdoll" then
- rg = false;
- end
- end)
- game:GetService("RunService").Stepped:Connect(function()
- if sw then
- lp.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Swimming)
- elseif aw then
- lp.Character.Humanoid:ChangeState(Enum.HumanoidStateType.StrafingNoPhysics)
- elseif rg then
- lp.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Ragdoll)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement