#Script İs Working But Have Problem
19 messages · Page 1 of 1 (latest)
why This script give everyone +1 win
need give touched person
Someone touched Give Everyone in the server +1 win

you have to modify your localscript
i think that here, when the part is touched
every single player see his script working
to solve that you have to check if the player who is touching the part, is actually the localplayer
after your variable plr you should add :
this is local script
if game:GetService("Players"):GetPlayerFromCharacter(part.Parent) == plr then
your final local script should be like that :
game.Workspace.Green.GreenWin.Touched:Connect(function(part)
local plr = game.Players.LocalPlayer
if game:GetService("Players"):GetPlayerFromCharacter(part.Parent) == plr then
game.ReplicatedStorage.GreenWin:FireServer()
script.Disabled = true
wait(5)
script.Disabled = false
end
end)
this should solve your problem
np