Loading Screen Disable all Player controls

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…

1 Like

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:

  • have a Boolean or some other way of checking controls are disabled

For camera:

  • Just set the CameraType to Enum.CameraType.Scriptable
1 Like

Absolute goatttttttttttttttttttttttt

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.