#script works in play but not team test

1 messages · Page 1 of 1 (latest)

clever birch
#

context: im making a killer vs survivors style game im making the GUI say "Not Enough Victims" if theres 1 player and if theres 2 or more it says
30 for the time the problem is the RemoteEvent dosent work when the player joins game in TeamTest but works in the regular Play??

#



Players.PlayerAdded:Connect(function(player)
    workspace.Values.Players.Value += 1
         game.ReplicatedStorage.Intermissions:FireClient(player)
        print(player, "Has Joined", workspace.Values.Players.Value)
        
end)


Players.PlayerRemoving:Connect(function(player)
    workspace.Values.Players.Value -= 1
    game.ReplicatedStorage.Intermissions:FireClient(player)
    print(player, "Has Left", workspace.Values.Players.Value)
end)