how do I make a gui appear when i touch a block? - I have tried and looked everywhere and the gui is fully ready.
1 | local part = script.Parent |
2 | local gui = game.StarterGui.GUI |
3 |
4 | part.Touched:Connect( function (hit) |
5 | if hit.Parent:FindFirstChild( "Humanoid" ) then |
6 | gui.Visible = true |
7 | end ) |
Try This
Put a Local Script in the Part.
1 | local part = script.Parent |
2 | local gui = game.StarterGui.GUI --Make this the name of your GUI and where it is located. |
3 |
4 | part.Touched:Connect( function () |
5 | gui.Visible = true --Make sure the GUI.Visible is set to false. |
6 |
7 | end ) |
My sincere apologies if this does now work. :)