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

Re: I need help with two scripts, to cut it short

Previous Thread :: Next Thread 
DownWithTheBronies is not online. DownWithTheBronies
Joined: 10 Aug 2011
Total Posts: 8
10 Jul 2012 08:53 PM
The first one I slightly understand is a door opened by clicking on an object, I understand it has to do with velocity, but the one I needed help with goes downwards

The other one I needed help with that I didn't understand was an object flashes different colors after clicking an object.

If you could help, that would be nice, since I'm an idiot at scripting, cause I know this stuff is simple..
Report Abuse
mrpricetoyou is not online. mrpricetoyou
Joined: 25 Nov 2011
Total Posts: 5160
10 Jul 2012 08:59 PM
The first one has nothing to do with velocity... Use a click detector and the OnClick() event.

The other one should use BrickColor.new(whatevar) and a click detector and the OnClick() event.


Here is the first one:

function OnClick()
script.Parent.CanCollide = false
script.Parent.Transparency = 0.5
wait(5)
script.Parent.CanCollide = false
script.Parent.Transparency = 0.5
end)
Report Abuse
DownWithTheBronies is not online. DownWithTheBronies
Joined: 10 Aug 2011
Total Posts: 8
10 Jul 2012 09:03 PM
nono, not that. I mean you click on another brick and the other brick (the door or whatever) moves downwards, through the other bricks. I've seen it before, sorry for the confusion.
Report Abuse
mrpricetoyou is not online. mrpricetoyou
Joined: 25 Nov 2011
Total Posts: 5160
10 Jul 2012 09:08 PM
Oh, use for loop and Cframe to make that happen.
Report Abuse
DownWithTheBronies is not online. DownWithTheBronies
Joined: 10 Aug 2011
Total Posts: 8
10 Jul 2012 09:09 PM
Alright, is that how I use one block to activate another block?
Report Abuse
DownWithTheBronies is not online. DownWithTheBronies
Joined: 10 Aug 2011
Total Posts: 8
10 Jul 2012 09:18 PM
I feel dumb if it's not.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting 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