Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Button Change, Camera Angle, and Zoom???

Asked by 10 years ago
  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

Log in to vote
0
Answered by 10 years ago

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.

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

Answer this question