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
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
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)
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)
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.
1 comment
Try to insert your script right into "Shop" object, and then use script.Parent