How would I fix this script?
local gui = game.Players.LocalPlayer:WaitForChild("PlayerGui"):WaitForChild("uiholder") local gui2 = game.Players.LocalPlayer:GetMouse() local logs = gui:WaitForChild("logs") local open = gui:WaitForChild("uiopen") local frame = gui:WaitForChild("uiframe") local close = frame:WaitForChild("uiclose") local timer = logs:WaitForChild("timer") while true do local c = 120 timer.Text = "Time Left to live : " ..c if c == 10 then timer.FontSize = "Size36" timer.Text = ""..c end c = c-1 wait(1) end function closefunc() frame.Visible = false open.Visible = true end function openfunc() frame.Visible = true open.Visible = false end while true do logs.Text = "open" wait(12) logs.Text = "idk" end function KeyDown(key) local key = key:lower() if key == "e" then gui.uiframe.Visible = true gui.uiopen.Visible = false end end close.MouseButton1Down:connect(closefunc) open.MouseButton1Down:connect(openfunc) gui2.KeyDown:connect(KeyDown)
I don't see anything wrong. What do you think you did wrong?