#Script İs Working But Have Problem

19 messages · Page 1 of 1 (latest)

open barn
#

why This script give everyone +1 win

#

need give touched person

#

Someone touched Give Everyone in the server +1 win

wet lance
#

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 :

open barn
#

this is local script

wet lance
#
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

open barn
#

oh thanks

#

its work

wet lance
#

np