I'm trying to make a GUI pop up when you step on this brick, holding a gun. I already have the GUI, and the script (Thanks MrNicNac), but I don't know how to access the GUI. Here's the script:
local toolname = "Luger, Colt 45"
script.Parent.Touched:connect( function(hit)
if hit.Parent then
local player = Game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
if player.Character:FindFirstChild(toolname) then
-- Where GUI goes
end
end
end
end)
And plus, is there a way to make it only once, or once in a certain amount of time?
