Yes, a RemoteEvent. Sure.
local detector = script.Parent.Detector -- The click detector.
detector.MouseClick:connect(function(plr)
plr.PlayerScripts.IntValue.Value = plr.PlayerScripts.IntValue.Value -1 -- Basically I need to change values.
end)
Okay so look this is hard to explain.
But I can't use a RemoteEvent with the click detector local, and then telling the server who clicked it. Why? I need to clone the script and put it in bricks. If the same script that is waiting for this code
Event.OnServerEvent:connect(function()
then let's say there's 25 parts with the same script in it, the scripts would all then get fired, right?
So I need a way around the server calling all 25 scripts to do the action. I have tried this, and it is what happened.
So
I am wondering, what would I do? I have tried custom coding the whole click detector using Mouse.Target and such. I am extremely lost, if you need more examples message me.

1 comment
https://scriptinghelpers.org/questions/7387/how-to-call-a-remotefunction-to-the-client-with-a-clickdetector