hi, i wonder why my script is not working how i want, well when i put this script(normal script) in SSS:
local Controls = require(game.Players.LocalPlayer.PlayerScripts:WaitForChild("PlayerModule")):GetControls()---GetControls Controls:Disable() -----Disable Controls
it dosent work. also i dont know if the enabling script works too (its in the gui button)
local Controls = require(game.Players.LocalPlayer.PlayerScripts:WaitForChild("PlayerModule")):GetControls()---GetControls Controls:Enable()
so, anybody can help?
instance a Any object named "ControlScript"
IT HAS TO BE NAMED "ControlScript" OR ELSE IT WILL NOT WORK
THEN IT HAS TO BE PUT IN "game.StartPlayer.StarterPlayerScripts"
your object could be a script that you could use or a folder or a part but the point is it will disable all your controls
You Added "LocalPlayer" LocalPlayer Only Works In Local Script Bruh For That Make A function Like
local plr = game.Players plr.PlayerAdded:Connect(function(player) local Controls = require(player:WaitForChild("PlayerModule")):GetControls()---GetControls end) Controls:Enable()
i think this is right as i didnt tested it