how can i make a gui that pops up showing my current location im in when i go to a certain area?,
one way i would think about going about doing this would be to make a gui,
and make a transparent, locked, cancollide false part and when you walk into it have it trigger a script that makes a gui popup using script.Parent.Touched:connect but i don't exactly know how to script it, if anyone can help me with scripting this it would be greatly appreciated.
COMMUNITY QUESTION
How Can I Make A Gui Popup When I Enter An Area Of The Map?
1 answer
A magnitude check isn't the best option, so I suggest you just have a hitbox at an entrance that triggers a GUI to be given to a player.
The simple code to it would be something like..
script.Parent.Touched:connect(function(part)
if game.Players:GetPlayerFromCharacter(part.Parent) then
local plr = game.Players:GetPlayerFromCharacter(part.Parent)
if not plr.PlayerGui:FindFirstChild("popupgui") then
game.ServerStorage:FindFirstChild("popupgui"):Clone().Parent = plr.PlayerGui
end
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
You need to use region3 to make it work. Search it up on youtube, it is very simple. It is too much to explain here.
Depending on the map you could also use a distance check. But as you said a local part that will display the gui on touched will be simple. Just place the GUI in rep storage and clone them when needed.