Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

ToggleMapVoting is not a valid member of ReplicatedStorage...?

I ve encountered this error many times and i always had to give up because i didnt find the solution. Im doing a map voting system where players choose which map they will play on. When i test my game, i wait for the countdown to go to zero and show the maps to vote, but it doesnt show them. When i went in Output, it showed me this error. Here s the code with the bug:

game.ReplicatedStorage.ToggleMapVoting:FireAllClients(true)

I dont know if theres a spelling error in there. Nor if its another thing. But if you want to see the full code to understand more tell me and ill put it here

1 comment

0

Can you show the full code please?

1 answer

Make sure it exists and you made no typos, if all is true and it still doesn't work, use WaitForChild(), just in case it hasn't loaded yet.

game.ReplicatedStorage:WaitForChild("ToggleMapVoting"):FireAllClients(true)

This discussion is preserved as it was. New answers, comments, and votes are closed.