Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-2

Why wouldn't this Script work?

Asked by
woodengop 1134 Moderation Voter
9 years ago

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)
0
I did use a LocalScript. woodengop 1134 — 9y
0
Is there an error message in your Output pane? Or does it fail silently? iconmaster 301 — 9y
0
No error Message in the Output. woodengop 1134 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

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

0
Nothing Functioned. No Error Popped up. woodengop 1134 — 9y
Ad

Answer this question