Trying to make it so if the player has already voted he cant vote again. no error why no work?
When removing the part that checks if they already voted they can still add a value to the gui ot click it but when i added the top part that checks when i try to vote it doesnt work.
VOte option 1:
01 | if game.Players.Localplayer.PlayerGui.Modes.Classic.ImageButton.Script.Disabled = = true then |
02 | script.Disabled = true |
04 | if workspace.Timer.Value > = 0 then |
06 | workspace.CatMaidMania.Value = workspace.Classic.Value + 1 |
07 | script.Disabled = true |
12 | script.Parent.MouseButton 1 Click:Connect(leftClick) |
Vote option 2:
01 | if game.Players.Localplayer.PlayerGui.Modes.CatMaidMania.ImageButton.Script.Disabled = = true then |
02 | script.Disabled = true |
04 | if workspace.Timer.Value > = 0 then |
06 | workspace.Classic.Value = workspace.Classic.Value + 1 |
07 | script.Disabled = true |
12 | script.Parent.MouseButton 1 Click:Connect(leftClick) |
Im fairly new to scripting; messy code :p