RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"create a script that makes the player roll forward"
-- local script local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") local function rollForward() local rollSpeed = 50 local rollDuration = 1 local originalSpeed = humanoid.WalkSpeed humanoid.WalkSpeed = 0 humanoid.PlatformStand = true local rollDirection = character.HumanoidRootPart.CFrame.lookVector * rollSpeed local rollEndTime = tick() + rollDuration while tick() < rollEndTime do character.HumanoidRootPart.Velocity = rollDirection wait() end humanoid.WalkSpeed = originalSpeed humanoid.PlatformStand = false end rollForward()