- How do I edit or delete what keyboard buttons do?
- How do I lock on to a certain camera angle?
- How do i lock on to a zoom level?
COMMUNITY QUESTION
Button Change, Camera Angle, and Zoom???
1 answer
I know how to edit what keyboard buttons do and here is an example:
mouse = game.Players.LocalPlayer:GetMouse()
keyneeded = "" --Put key that you want pressed in the quotes
local function onKeyDown(key)
if key == keyneeded then
--Put code here
end
else
print("Wrong key was pressed")
end
end
mouse.KeyDown:connect(onKeyDown)
Put that code in a localscript and put the localscript inside of your starterpack.
Hope this helped! If you have any problems please comment.
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
Do I put nothing where it says Put code here to delete that button setting???
This place is not a scripting request forum, its for scriptwriters who need help. You're not one obviously.
I just wanted to know I'm new to scripting