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.
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..
1 | script.Parent.Touched:connect( function (part) |
2 | if game.Players:GetPlayerFromCharacter(part.Parent) then |
3 | local plr = game.Players:GetPlayerFromCharacter(part.Parent) |
4 | if not plr.PlayerGui:FindFirstChild( "popupgui" ) then |
5 | game.ServerStorage:FindFirstChild( "popupgui" ):Clone().Parent = plr.PlayerGui |
6 | end |
7 | end |
8 | end ) |