Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

Roblox function has no errors but isnt working?

Asked by 5 months ago
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)
0
can you explain what is printing? SoftlockedUnderZero 586 — 5mo
0
or use output under the view tab? SoftlockedUnderZero 586 — 5mo
0
or script analysis? SoftlockedUnderZero 586 — 5mo
0
You are not explaining what the script is intended to do, meaning I cannot help. raid6n 765 — 5mo
0
I fixed it sorry PigioGigio 28 — 5mo

1 answer

Log in to vote
0
Answered by 5 months ago
Edited 5 months ago

Fixed it by the first event on fired i need to put "player" because it thought player was voted "player, voted ,selection)

Ad

Answer this question