Why wouldn't this Script work?
How would I fix this script?
01 | local gui = game.Players.LocalPlayer:WaitForChild( "PlayerGui" ):WaitForChild( "uiholder" ) |
02 | local gui 2 = game.Players.LocalPlayer:GetMouse() |
03 | local logs = gui:WaitForChild( "logs" ) |
04 | local open = gui:WaitForChild( "uiopen" ) |
05 | local frame = gui:WaitForChild( "uiframe" ) |
06 | local close = frame:WaitForChild( "uiclose" ) |
07 | local timer = logs:WaitForChild( "timer" ) |
11 | timer.Text = "Time Left to live : " ..c |
13 | timer.FontSize = "Size36" |
40 | local key = key:lower() |
42 | gui.uiframe.Visible = true |
43 | gui.uiopen.Visible = false |
47 | close.MouseButton 1 Down:connect(closefunc) |
48 | open.MouseButton 1 Down:connect(openfunc) |
49 | gui 2. KeyDown:connect(KeyDown) |