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 » Building Helpers
Home Search
 

Re: How do u make like a brick that when u click

Previous Thread :: Next Thread 
bloodking0544 is not online. bloodking0544
Joined: 29 Mar 2012
Total Posts: 2
16 Jul 2012 05:48 AM
A brick that when u click it a model or something comes out.Example:I want to attach parachutes to my car but i want a brick that when u click it the parachutes will pop out.Help please
Report Abuse
ExosXguy is not online. ExosXguy
Joined: 10 Oct 2010
Total Posts: 2239
16 Jul 2012 09:38 AM
This belongs in SH more than BH.
Report Abuse
TerrifyingObject is not online. TerrifyingObject
Joined: 06 May 2011
Total Posts: 2707
16 Jul 2012 02:45 PM
A gui and MouseButtonDown() or something like that. never scripted before, but you can use that and what you get from SH.
Report Abuse
RadioactiveWafflez is not online. RadioactiveWafflez
Joined: 25 Jun 2010
Total Posts: 3453
16 Jul 2012 03:16 PM
I can give it to you for a button, but not clicked:

p = script.Parent.Parent.InsertPartName
function ontouched(hit)
p.transparency = 0
end
script.Parent.touched:connect()

This probably has a few errors, but it should be able to kinda work. Make sure the parachute is 1 brick with a mesh. Hopefully it's better than the last script I tried to provide... :P.
Report Abuse
RadioactiveWafflez is not online. RadioactiveWafflez
Joined: 25 Jun 2010
Total Posts: 3453
16 Jul 2012 03:16 PM
Oh, and make sure that the button and the parachute are inside the same model.
Report Abuse
Veronicafan1 is not online. Veronicafan1
Joined: 19 Oct 2008
Total Posts: 1405
16 Jul 2012 04:25 PM
p = script.Parent.Parent.(The model's name here)
function onClick()
p.transparency = 0
end
script.Parent.Click:connect(onClick)

I think...? Oh and make sure the model would all have a transparency of 1 at first.
Report Abuse
Veronicafan1 is not online. Veronicafan1
Joined: 19 Oct 2008
Total Posts: 1405
16 Jul 2012 04:28 PM
Oh gosh I'm so sorry I made an error. At the line where it says:
script.Parent.Click:connect(onClick)

change that to

script.Parent.ClickDetector.MouseClick:connect(onClick)

Make sure there's a click detector in the brick...
Report Abuse
Veronicafan1 is not online. Veronicafan1
Joined: 19 Oct 2008
Total Posts: 1405
16 Jul 2012 09:48 PM
Shoot, I hope I'm not banned for replying too much. I'm making so much errors... Last correction: it's MouseButton1Down and not MouseClick x_x.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Building Helpers
   
 
   
  • 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