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

How do I make a Gui appear when a brick is Right Clicked?

Asked by 5 years ago

So I want to make a script that makes a billboard gui appear above a brick when it is right clicked like in TC3. Does anyone know how this would be done?

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

You could put a ClickDetector in the part that you want to make clickable and then use the ClickDetector.RightMouseClick event to run a function when it's clicked by a player.

ClickDetector.RightMouseClick:Connect(function(player)
    local BillboardGui = Instance.new("BillboardGui");
    BillboardGui.Parent = ClickDetector.Parent;
    -- Do something else with this BillboardGui
end)
Ad

Answer this question