New: Nitro Boost our Discord server and receive full donation perks here on the website! Join the Scripting Helpers Discord Server to learn more! You can also Support on Patreon as always.
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 days 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? chloe_price65 164 — 5d
0
or use output under the view tab? chloe_price65 164 — 5d
0
or script analysis? chloe_price65 164 — 5d
0
You are not explaining what the script is intended to do, meaning I cannot help. raid6n 188 — 5d
0
I fixed it sorry PigioGigio 28 — 5d

1 answer

Log in to vote
0
Answered by 5 days ago
Edited 5 days 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