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 i touch a block?

how do I make a gui appear when i touch a block? - I have tried and looked everywhere and the gui is fully ready.

2 answers

✓ Accepted answer
local part = script.Parent
local gui = game.StarterGui.GUI

part.Touched:Connect(function(hit)
    if hit.Parent:FindFirstChild("Humanoid") then 
	gui.Visible = true
end)

Try This

1 comment

0

thanks they both worked

Put a Local Script in the Part.

local part = script.Parent
local gui = game.StarterGui.GUI --Make this the name of your GUI and where it is located.

part.Touched:Connect(function()
	gui.Visible = true --Make sure the GUI.Visible is set to false.

end)

My sincere apologies if this does now work. :)

3 comments

0

not*

0

thanks they both worked

0

np

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