Answered by
8 years ago Edited 8 years ago
Not entirely sure what you are trying to accomplish, but I gave it my best shot.
I created two parts in Workspace, and inserted a Script into each (Not a Localscript).
HidingBrick/HidingScript:
02 | local gui = game.Players.LocalPlayer.PlayerGui.Main.GUI |
06 | print ( 'HidingBrick Touched' ) |
07 | local humanoid = part.Parent:FindFirstChild( "Humanoid" ) |
08 | if (humanoid ~ = nil ) then |
10 | gui.HidingLabel.Visible = true |
12 | gui.HidingLabel.Visible = false |
17 | script.Parent.Touched:connect(onTouch) |
VisibleBrick/VisibleScript:
02 | local gui = game.Players.LocalPlayer.PlayerGui.Main.GUI |
06 | print ( 'HidingBrick Touched' ) |
07 | local humanoid = part.Parent:FindFirstChild( "Humanoid" ) |
08 | if (humanoid ~ = nil ) then |
11 | gui.VisibleLabel.Visible = true |
13 | gui.VisibleLabel.Visible = false |
19 | script.Parent.Touched:connect(onTouch) |
I then created a "ScreenGui" object into "StarterGui". I named this "Main"
Under Main I created a "Frame" object, named, "GUI"
Under GUI, I created two TextLabels named, "HidingLabel" and "VisibleLabel". I set the text for HidingLabel to "Hiding". and VisibleLabel to "Visible". I then made both of these TextLabels not visible.
Works pretty well for me, but again.. not really sure if that is what you meant.