sorry if i posted the same post twice but making this in code block might help its not showing errors in the output and its not showing on my gui button
CanVote = Workspace.canVote
CanVote.Value=true
Map1=Workspace.Deathrun
Map2=Workspace.FFA
function Clicked()
if CanVote.Value==true then
for i=1,1 do
Map1.Value=Map1.Value+1
end
if Map2.Value>0 then
for i=1,1 do
Map2.Value=Map2.Value-1
end
end
votes=script.Parent
votes.Text=("Deathrun Vote:"..Map1.Value)
wait(10)
CanVote.Value=false
end
if CanVote.Value == false then return end
print("2")
end
script.Parent.MouseButton1Click:connect(Clicked)

5 comments
You know you can edit a post, right?
sorry i am such a noob
Anyways, your problem is on lines 18 and 20. You set CanVote.Value to false, then if CanVote.Value equals false (it does) then exit and don't execute anything else in the function. Therefore the print statement is not executed.
it prints 2 though
please help