Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How come a players movement controls won't be enabled or disabled?

Asked by 2 years ago

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)
0
can you tell us a little bit more FantasticFrontierGuy 33 — 2y
0
can you tell us a little bit more FantasticFrontierGuy 33 — 2y

Answer this question