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

My GUI Wont Appear?

Asked by 8 years ago

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
0
Try to insert your script right into "Shop" object, and then use script.Parent Mokiros 135 — 8y

2 answers

Log in to vote
1
Answered by 8 years ago
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)


0
not isnt a boolean value @TopDev but I just copied your script so i'll +1 you User#5978 25 — 8y
Ad
Log in to vote
0
Answered by
TopDev 0
8 years ago
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)

0
It Worked. But I cant select answered. It didnt show up.. cryptomaniacRBLX 0 — 8y

Answer this question