I'm attempting to learn Filtering Enabled currently. I am having issues in disabling player controls from the server.
This is in the server:
Player.Backpack.Controls.DisableControls:FireClient()
(All defined correctly)
And this is in the client:
local Player = script.Parent.Parent
DisableControls = script:WaitForChild("DisableControls")
DisableControls.OnClientEvent:connect(function()
Player.PlayerScripts.ControlScript.Disabled = true
end)
The issue seems to be with firing it from the server as I get an output of "Argument 1 missing or nil". How would I got about fixing this?
Thank you!
-Quinn

1 comment
You have to pass in the player as an argument to the FireClient call. Player.Backpack.Controls.DisableControls:FireClient(Player)