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)
✓ ANSWER ACCEPTED
Roblox function has no errors but isnt working?
1 answer
✓ Accepted answer
Fixed it by the first event on fired i need to put "player" because it thought player was voted "player, voted ,selection)
This discussion is preserved as it was. New answers, comments, and votes are closed.

5 comments
can you explain what is printing?
or use output under the view tab?
or script analysis?
You are not explaining what the script is intended to do, meaning I cannot help.
I fixed it sorry