|
| 11 Jan 2017 02:57 AM |
| can a gui be only visible if he touch a specific brick |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 11 Jan 2017 03:25 AM |
local player = game.Players.LocaPlayer local gui = player.PlayerGui:WaitForChild("YourGuiHere") -- set its "Enabled" to false local brick = workspace:WaitForChild("CertainBrickHere")
brick.Touched:Connect(function(hit) if game.Players:GetPlayerFromCharacter(hit.Parent) == player then gui.Enabled = true end end)
|
|
|
| Report Abuse |
|
|
|
| 11 Jan 2017 03:37 AM |
i mean when you step on a button or a brick it makes a gui visible and when you step out it disappears |
|
|
| Report Abuse |
|
|
| |
|