So, i want to make a secret button, that activates fires, and was supposed to display a frame that says someone lit up the thing, that will appear for 5 seconds. After the 5 seconds, it will disappear. And the frame doesn't appear at all.
My code: (its in a normal script, not in a localscript)
local ClickDetector = script.Parent.ClickDetector
local ogien1 = script.Parent.Parent.ogienjeden.Fire
local ogien2 = script.Parent.Parent.ogiendwa.Fire
local ogien3 = script.Parent.Parent.ogientrzy.Fire
local ogien4 = script.Parent.Parent.ogiencztery.Fire
local tekst = game.StarterGui.ScreenGui.Frame.TextLabel
local ramka = game.StarterGui.ScreenGui.Frame
ClickDetector.MouseClick:connect(function()
ogien1.Enabled = true
ogien2.Enabled = true
ogien3.Enabled = true
ogien4.Enabled = true
ramka.Visible = true
tekst.Text = "Ktos podpalil automat biletowy przy zajezdni Lodygowa. *klap klask*"
wait(5)
ramka.Visible = false
tekst.Text = ""
end)

2 comments
is there any error on the console? type /console in roblox studio when testing game and tell me the error
no, the script isn't throwing any errors