What do you want to achieve? I want to make it so whenever you press the TextButton it changes the text of the TextButton.
What is the issue? When I click the button it does nothing, doesn’t change.
What solutions have you tried so far? I tried everything and looked everywhere nothing works.
s.MouseButton1Click:Connect(function(click)
if click then
s.Text = "-"
end
end)
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.
local db = true
— This should work
s.MouseButton1Click:Connect(function()
if db == true then
s.Text = tostring("-")
db = false
else
s.Text = tostring("/")
end
end)
Also another thing, I don’t know if I’m supposed to make a new topic for this but, whenever I’m scripting and I try to make more than one else/elseif it doesn’t work, nothing in output either.