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

Roblox function has no errors but isnt working?

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)

5 comments

0

can you explain what is printing?

0

or use output under the view tab?

0

or script analysis?

0

You are not explaining what the script is intended to do, meaning I cannot help.

0

I fixed it sorry

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.