You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
i want to make mouse lock in the center when player join the game -
What is the issue? Include screenshots / videos if possible!
i tried to use the simple script and it doesnt work:
game:GetService("UserInputService").MouseBehavior = Enum.MouseBehavior.LockCenter
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
i tried while do and its work but i cant change it to default
while wait() do
game:GetService("UserInputService").MouseBehavior = Enum.MouseBehavior.LockCenter
end
this is the script i tried.
any solutions would be helpful to me
Thank You.