I am making a top down game similar to snake and I want the player to keep walking even if they aren’t holding w or dragging their cursor on mobile. The player would be able to turn 90 degrees by pressing a or d. I have made the player move without holding w or dragging their cursor on mobile but they can not turn by 90 degrees by pressing a or d. The camera is also a part that is in the sky rotated towards the baseplate.
I put this in StarterPlayerScripts
local LocalPlayer = game:GetService("Players").LocalPlayer
local Controls = require(LocalPlayer.PlayerScripts.PlayerModule):GetControls()
Controls:Disable()
I put this in StarterPlayerScripts
game.Players.LocalPlayer:Move(Vector3.new(0, 0, 1), true)
hi, i think i may have kind of a solution. copy the playermodule from starterplayerscripts (while ingame) and leave the game. then paste it in starterplayerscripts, and remove the module that moves the player. then add this script in startergui: local keybindserv = game:GetService("UserInputService") local tweenserv = game:GetService("TweenService") local debate = 0 keybindserv.InputBegan:Connect(function(e) if e.KeyCode == Enum.KeyCode.A and debate == 0 then debate = 1 for i = 1, 9 do game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame *= CFrame.Angles(0, math.rad(10), 0) wait(0.025) end debate = 0 end end) keybindserv.InputBegan:Connect(function(e) if e.KeyCode == Enum.KeyCode.D and debate == 0 then debate = 1 for i = 1, 9 do game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame *= CFrame.Angles(0, math.rad(-10), 0) wait(0) end debate = 0 end end) keybindserv.InputBegan:Connect(function(e) if e.KeyCode == Enum.KeyCode.W and debate == 0 then debate = 1 for i = 1, 8 do game.Players.LocalPlayer.Character:PivotTo(game.Players.LocalPlayer.Character:GetPivot() * CFrame.new(0, 0, -1)) wait(0) end debate = 0 end end)
you can configure the camera all you want!