Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why wouldn't this Script work?

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)

3 comments

0

I did use a LocalScript.

0

Is there an error message in your Output pane? Or does it fail silently?

0

No error Message in the Output.

1 answer

I don't see anything wrong. What do you think you did wrong?

1 comment

0

Nothing Functioned. No Error Popped up.

This discussion is preserved as it was. New answers, comments, and votes are closed.