Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Button Change, Camera Angle, and Zoom???

  1. How do I edit or delete what keyboard buttons do?
  2. How do I lock on to a certain camera angle?
  3. How do i lock on to a zoom level?

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.

3 comments

0

Do I put nothing where it says Put code here to delete that button setting???

0

This place is not a scripting request forum, its for scriptwriters who need help. You're not one obviously.

0

I just wanted to know I'm new to scripting

This discussion is preserved as it was. New answers, comments, and votes are closed.