RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"create a script that if you press wasd on your keybored you reset"
-- local script local player = game.Players.LocalPlayer local humanoid = player.Character.Humanoid local function resetPosition() humanoid:MoveTo(Vector3.new(0,0,0)) end game:GetService("UserInputService").InputBegan:Connect(function(inputObject) if inputObject.KeyCode == Enum.KeyCode.W or inputObject.KeyCode == Enum.KeyCode.A or inputObject.KeyCode == Enum.KeyCode.S or inputObject.KeyCode == Enum.KeyCode.D then resetPosition() end end)