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:
if game.Players.Localplayer.PlayerGui.Modes.Classic.ImageButton.Script.Disabled == true then
script.Disabled = true
else
if workspace.Timer.Value >= 0 then
function leftClick()
workspace.CatMaidMania.Value = workspace.Classic.Value + 1
script.Disabled = true
end
end
end
script.Parent.MouseButton1Click:Connect(leftClick)
Vote option 2:
if game.Players.Localplayer.PlayerGui.Modes.CatMaidMania.ImageButton.Script.Disabled == true then
script.Disabled = true
else
if workspace.Timer.Value >= 0 then
function leftClick()
workspace.Classic.Value = workspace.Classic.Value + 1
script.Disabled = true
end
end
end
script.Parent.MouseButton1Click:Connect(leftClick)
Im fairly new to scripting; messy code :p

2 comments
why would a part check if someone already voted? just use a bool value and set the name of the value to the player name that voted, then check the value and if its already true, then they already voted
heh thanks i dont know what a bool value is but ill look it up on youtube and on the dev forum