RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make the player walk right left front"
local player = game.Players.LocalPlayer local character = player.Character local humanoid = character.Humanoid function moveRight() humanoid:Move(Vector3.new(1,0,0)) end function moveLeft() humanoid:Move(Vector3.new(-1,0,0)) end function moveForward() humanoid:Move(Vector3.new(0,0,1)) end player.InputBegan:Connect(function(inputObject, gameProcessedEvent) if inputObject.KeyCode == Enum.KeyCode.D then moveRight() elseif inputObject.KeyCode == Enum.KeyCode.A then moveLeft() elseif inputObject.KeyCode == Enum.KeyCode.W then moveForward() end end)