#Help on making a keybind to unlock mouse cursor

27 messages · Page 1 of 1 (latest)

grave stirrup
#

How does locking the mouse even work

rocky frost
#

what part is confusing

tame spoke
#

using userinputservice

grave stirrup
tame spoke
#

any thing with user input is client

#

or should be

grave stirrup
#

Then just make starter player script that registers keyboard input, checks if It's V and changes mouse behaviour to desired.

#

@past dawn

tame spoke
#

free model guns?

#

they should a code block that locks the camera like that

#

just delete it

#

it should be a local script

grave stirrup
#

Remember kids, free models are free for a reason.

#

To be able to help I would need to see the scripts myself.

#

But not quite right now.

#

I Shouldve been asleeo for approx 4 hours

#

Oh.

#

Is there something changing the cursors icon?

#

But is it invisible only after youve unlocked it and not b4 u locked?

#

Ive never heard of that game so Idrk what guns you use

hidden idolBOT
#

studio** You are now Level 3! **studio

grave stirrup
#

Although my question stands

#

Is it invisibke all the time or only after you lock and u lock it

rocky frost
#

theres nothing here that modifies the mouse tho?

#

you should use contextactionservice to get user input and also the script could be simplified to

function PressQ(actionName, inputState, inputObject)
if actionName == "PressQ" and inputState == Enum.UserInputState.Begin then
Open = not Open Gui.Visible = Open
end
end
game:GetService("ContextActionService"):BindAction("PressQ", PressQ, false, Enum.KeyCode.Q)