how do I make a gui appear when i touch a block? - I have tried and looked everywhere and the gui is fully ready.
✓ ANSWER ACCEPTED
how do I make a gui appear when i touch a block?
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
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.

1 comment
thanks they both worked