Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

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)

This discussion is preserved as it was. New answers, comments, and votes are closed.