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: Colored Bricks / Side Motion

Previous Thread :: Next Thread 
mike460 is not online. mike460
Joined: 14 Sep 2008
Total Posts: 46
17 Jun 2013 01:11 PM
I'm creating an obby course but i'm trying to add motion to it.
So I tried doing this to create motion

while true do
if i = -10, 10, 1 do
game.Workspace.RainbowBrick.CFrame(-10, 1, -10)
end
end


That's what I tried for movement but I don't think it work's so here's the colors one.

Colors = game.Workspace.RainbowBrick
while true do
Colors.BrickColor = BrickColor.random
wait(0.5)
Colors.BrickColor = BrickColor.random
wait(0.5)
end

That didn't work also, please help me with this problem ( Don't give me script's teach me )
Report Abuse
Aurarus is not online. Aurarus
Joined: 22 Dec 2008
Total Posts: 4761
17 Jun 2013 01:17 PM
Your first script used "if" instead of "for" :p
It also didn't have a wait()

while true do
for i = -10, 10, 1 do
game.Workspace.RainbowBrick.CFrame(-10, 1, -10)
wait(0.05)
end
end

For your second script, you needed to add little parenthesis to the end of your "random" function:

Colors = game.Workspace.RainbowBrick
while true do
Colors.BrickColor = BrickColor.random()
wait(0.5)
Colors.BrickColor = BrickColor.random()
wait(0.5)
end


:D
Report Abuse
mike460 is not online. mike460
Joined: 14 Sep 2008
Total Posts: 46
17 Jun 2013 01:18 PM
Thank's alot lol I totally forgot about those, hey do you have skype? Maybe you could tutor me, ill pay ;)
Report Abuse
funnymouse7 is not online. funnymouse7
Joined: 17 Mar 2011
Total Posts: 1741
17 Jun 2013 01:18 PM
Whats motion? sorry if this is a stupid question I just dont know what it is, I might be able to help you if you tell me what 'Motion' is.
Report Abuse
Aurarus is not online. Aurarus
Joined: 22 Dec 2008
Total Posts: 4761
17 Jun 2013 01:20 PM
Sure!

My name is Aurarus on Skype as well.
Go ahead and add me. :)
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