what would be the best way so when my loading screen is still loading all assets in game it will disable all player controls?
like disable mouse, player moving controls, etc…
what would be the best way so when my loading screen is still loading all assets in game it will disable all player controls?
like disable mouse, player moving controls, etc…
Maybe try using ContextActionService? Gonna link you to a similar post so you can see if that helps you.
You could also use the PlayerModule
to do this. Note this can only be done in a LocalScript
.
local player = game:GetService("Players").LocalPlayer
--get controls
local controls = require(player:WaitForChild("PlayerScripts"):WaitForChild("PlayerModule")):GetControls()
--disable
controls:Disable()
--or
controls:Enable(false)
--------------------------------------
--enable
controls:Enable()
--or
controls:Enable(true)
Not sure if this covers camera and UserInputService
/ContextActionService
input.
For user input:
For camera:
CameraType
to Enum.CameraType.Scriptable
Absolute goatttttttttttttttttttttttt
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.