I've been trying several methods to for a pop up gui but for some reason I cant seem to get anything to work. I would be really thankful if anyone can tell me how to do this properly. Thanks! (Btw I do have a text button that currently opens the gui idk if that would make a difference or not and the brick is in workspace)
http://imgur.com/a/A1kOew3 This is what the Gui looks like. The "TextButton" is the button that currently opens MainFrame
What I've tried doing
game.Players.PlayerAdded:Connect(function(plr)
script.Parent.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
plr.PlayerGui.GunShop.MainFrame.Visible = true
end
end)
end)
..
local Part = script.Parent
Part.Touched:connect(function(HIT)
local H = HIT.Parent:FindFirstChild("Humanoid")
if H then
local Player = game.Players:GetPlayerFromCharacter(HIT.Parent)
Player.PlayerGui.GunShop.MainFrame.Visible = true
end
end)
I tried some variants of these two and also some random guesses that I didn't really expect to work :/

5 comments
if you tried 'several methods' you should post them. We aren't mind readers you know
I'm not completely sure what you're asking, but there is an object called billboard GUI which floats above a brick in a certain position.
Through clicking it or touching it?
Are you thinking like, keybind affects or something?
Sorry for the confusion I updated it now hopefully it makes more sense