Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- |--------------------------------------------------|
- -- | 7Made By @4adrian7 |
- -- |--------------------------------------------------|
- -- Walkspeed Manipulator
- local Players = game:GetService("Players")
- local LocalPlayer = Players.LocalPlayer
- local RunService = game:GetService("RunService")
- getgenv().MovementSettings = {
- Enabled = true,
- Speed = 90
- }
- local function manipulateMovement()
- if not LocalPlayer.Character or not LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then return end
- local RootPart = LocalPlayer.Character.HumanoidRootPart
- local Humanoid = LocalPlayer.Character:FindFirstChildOfClass("Humanoid")
- if not Humanoid then return end
- RunService.Stepped:Connect(function()
- if getgenv().MovementSettings.Enabled then
- local moveDirection = Humanoid.MoveDirection
- RootPart.Velocity = Vector3.new(
- moveDirection.X * getgenv().MovementSettings.Speed,
- RootPart.Velocity.Y,
- moveDirection.Z * getgenv().MovementSettings.Speed
- )
- end
- end)
- end
- manipulateMovement()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement