Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make gui pop up when close to a part? [closed]

Asked by 6 years ago

I want a billboard gui to pop up when I get close to a part. Any references I can use? thanks

Closed as Not Constructive by hiimgoodpack, lukeb50, and abnotaddable

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

2 answers

Log in to vote
0
Answered by 6 years ago

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...

Ad
Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

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)