game.ReplicatedStorage.Commenced.OnServerEvent:connect(function(voted ,selection) print("recived") if selection == "Dragon" then print("line1 works") game.ReplicatedStorage.DragonVote.Value = game.ReplicatedStorage.DragonVote.Value + 1 if voted == true then game.ReplicatedStorage.Value = game.ReplicatedStorage.DinosaurVote.Value - 1 end print("works") end)
Fixed it by the first event on fired i need to put "player" because it thought player was voted "player, voted ,selection)