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

My GUI Wont Appear?

Just for this to be answered

a = plr.PlayerGui.ScreenGui:WaitForChild("Shop")

plr:GetMouse().KeyDown:connect(function(Key)
    if Key == "m" then
        a.Visible = not a.Visible
    end

1 comment

0

Try to insert your script right into "Shop" object, and then use script.Parent

2 answers

local plr = game.Players.LocalPlayer
plr.PlayerGui:WaitForChild("ScreenGui")
a = plr.PlayerGui.ScreenGui:WaitForChild("Shop")

plr:GetMouse().KeyDown:connect(function(Key)
    if Key == "m" then
        a.Visible = true a.Visible
    end
end)


1 comment

0

not isnt a boolean value @TopDev but I just copied your script so i'll +1 you

local plr = game.Players.LocalPlayer
plr.PlayerGui:WaitForChild("ScreenGui")
a = plr.PlayerGui.ScreenGui:WaitForChild("Shop")

plr:GetMouse().KeyDown:connect(function(Key)
    if Key == "m" then
        a.Visible = not a.Visible
    end
end)

1 comment

0

It Worked. But I cant select answered. It didnt show up..

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