So I've got a part in my game, that when touched will trigger a script, that triggers a remote event, which in turn triggers a second localscript that disables the players controls.
'Touched Part?' script:
local disableControlsRE = game:GetService("ReplicatedStorage"):FindFirstChild("DisableControls")
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
disableControlsRE:FireAllClients()
end
end)
^^^ This script triggers a RemoteEvent which triggers the following localscript:
local disableControlsRE = game:GetService("ReplicatedStorage"):FindFirstChild("DisableControls")
disableControlsRE.OnClientEvent:Connect(function(hit)
local PlayerModule = require(game:GetService("Players").LocalPlayer:WaitForChild("PlayerScripts"):WaitForChild("PlayerModule"))
local controls = PlayerModule:GetControls()
end)
It works perfectly well, and does it's job, however it appears to be happening to everyone and not just the triggering Player, does anyone have any tips, solutions or help please?

2 comments
thank you, sorry I didn't see that, I'm fairly new so I didn't realise "FireAllClients()" fired everyone :thumbsup:
You're Welcome. Glad I could help :)