I want a billboard gui to pop up when I get close to a part. Any references I can use? thanks
✓ ANSWER ACCEPTED
How to make gui pop up when close to a part?
2 answers
✓ Accepted answer
You can use the following: http://wiki.roblox.com/index.php?title=Magnitude
You can check the distance between the part and the player's torso, etc...
Once you create a Billboard Gui uncheck the "Visible", so it disappears and place in StarterGui.
Then try something like this-
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.(name of Gui).Visible= true
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
