I'm trying to have a players movement controls disabled, but I can't whats the problem?
local ReplicatedStorage = game:GetService("ReplicatedStorage")
ReplicatedStorage:WaitForChild("Events").PlayerControlsOn.OnServerEvent:Connect(function(Player)
local Controls = require(Player.PlayerScripts.PlayerModule):GetControls()
Controls:Enable()
end)
ReplicatedStorage:WaitForChild("Events").PlayerControlsOff.OnServerEvent:Connect(function(Player)
local Controls = require(Player.PlayerScripts.PlayerModule):GetControls()
Controls:Disable()
end)

2 comments
can you tell us a little bit more
can you tell us a little bit more