#Help on making a keybind to unlock mouse cursor
27 messages · Page 1 of 1 (latest)
what part is confusing
setting mouse behavior to centerlocked
using userinputservice
Is it done localy ir server side
locally
any thing with user input is client
or should be
Then just make starter player script that registers keyboard input, checks if It's V and changes mouse behaviour to desired.
@past dawn
free model guns?
they should a code block that locks the camera like that
just delete it
it should be a local script
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
** You are now Level 3! **
Although my question stands
Is it invisibke all the time or only after you lock and u lock it
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)