I'm kinda abusing the idea of filteringenabled right now, basically, I want to disable this script for only the client and not the whole server.
Here's my script;
script.Parent.Touched:connect(function(hit)
player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player and player:IsA("Player") then
player.leaderstats.Stage.Value = player.leaderstats.Stage.Value + 1
script.Disabled = true
end
end)
I also tried;
player = game.Players.LocalPlayer
script.Parent.Touched:connect(function(hit)
if player and player:IsA("Player") then
player.leaderstats.Stage.Value = player.leaderstats.Stage.Value + 1
script.Disabled = true
end
end)
Neither of them works.
(keep in mind that this is a localscript, i tried using normalscript for this script and it worked fine. I just want to replicate the changes to only the client, not the whole server.)

1 comment
Thanks a ton! ~