How would I go about disabling the users forwards and backwards keys. I needs this for my 2D game script so they can't walk off it. I know I could use invisible blocks but this just seems easier in the long wrong. I don't have it coded yet but I'll show you what I currently have. I have a Script located in the workspace with this code: game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) script.LocalScript:clone().Parent = character end) end)
And I have a localscript inside the script with this code: local target = game.Players.LocalPlayer.Character.Head local camera = workspace.CurrentCamera camera.CameraType = Enum.CameraType.Scriptable camera.CameraSubject = target local angle = 0 local go = 0
game:GetService("RunService").RenderStepped:connect(function() camera.CoordinateFrame = CFrame.new(target.Position) * CFrame.new(0, 0, 25) go = 1 end)
Like I've said before I have not coded the part that stops you from walking forwards and backwards yet, this is just a bit of the script to show you what I have already. Thanks!

7 comments
Try unbinding the keys. I could list the wiki link?
Could you? that would be great!
I tried using the code from here: https://scriptinghelpers.org/questions/6792/unbinding-keysunanswered but it didn't work
I know it does not. But the wiki article can teach better.
Whats the wiki article? I can't seem to find it
I'll post a comment 1 second.
http://wiki.roblox.com/index.php?title=Controlling_a_Player%27s_Character