generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

A gui that shows when you touch a specific brick

Previous Thread :: Next Thread 
Chedder923 is not online. Chedder923
Joined: 10 Jul 2012
Total Posts: 103
11 Jan 2017 02:57 AM
can a gui be only visible if he touch a specific brick
Report Abuse
Soybeen is not online. 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
Chedder923 is not online. Chedder923
Joined: 10 Jul 2012
Total Posts: 103
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
Chedder923 is not online. Chedder923
Joined: 10 Jul 2012
Total Posts: 103
11 Jan 2017 03:41 AM
its like a pop up
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image