i'm just trying to make a text label come up if a button is clicked while debouce is active to notify the player of cooldown
local cooldowngui = game.StarterGui.ScreenGui.cooldown --referenced the textlabel here if db then db = false --blah blah blah stuff stuff stuff db = true else --im not sure what to do here cooldowngui = cooldowngui:FindFirstChild("Visible").Value == true wait(0.1) cooldowngui = cooldowngui:FindFirstChild("Visible").Value == false end
i may be stupid ¯_(?)_/¯
When you are setting value, you will only need 1 = You will use == when you are checking condition
local cooldowngui = game.StarterGui.ScreenGui.cooldown --referenced the textlabel here if db then db = false -- Change it like how you change it here --blah blah blah stuff stuff stuff db = true else --im not sure what to do here cooldowngui = cooldowngui:FindFirstChild("Visible").Value = true wait(0.1) cooldowngui = cooldowngui:FindFirstChild("Visible").Value = false end