drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 26 Mar 2013 01:01 PM |
--Drahsid5-- print 'Color Animation Script loaded' Wait() repeat Script.Parent.BotCoil.BrickColor = "Mid gray" Wait(0.03) Script.Parent.BotCoil.BrickColor = "Light stone grey" Wait(0.03) Script.Parent.BotCoil.BrickColor = "Cool yellow" Wait(0.03) Script.Parent.BotCoil.BrickColor = "Olive" Wait(0.03) Script.Parent.BotCoil.BrickColor = "New Yeller" Wait(0.03) Script.Parent.BotCoil.BrickColor = "Deep orange" Wait(0.03) Script.Parent.MidCoil.BrickColor = "Mid gray" Wait(0.03) Script.Parent.BotCoil.BrickColor = "Medium stone grey" Wait(0.03) Script.Parent.MidCoil.BrickColor = "Light stone grey" Wait(0.03) Script.Parent.MidCoil.BrickColor = "Cool yellow" Wait(0.03) Script.Parent.MidCoil.BrickColor = "Olive" Wait(0.03) Script.Parent.MidCoil.BrickColor = "New Yeller" Wait(0.03) Script.Parent.MidCoil.BrickColor = "Deep orange" Wait(0.03) Script.Parent.TopCoil.BrickColor = "Mid gray" Wait(0.03) Script.Parent.MidCoil.BrickColor = "Medium stone grey" Wait(0.03) Script.Parent.TopCoil.BrickColor = "Light stone grey" Wait(0.03) Script.Parent.TopCoil.BrickColor = "Cool yellow" Wait(0.03) Script.Parent.TopCoil.BrickColor = "Olive" Wait(0.03) Script.Parent.TopCoil.BrickColor = "New Yeller" Wait(0.03) Script.Parent.TopCoil.BrickColor = "Deep orange" Wait(0.03) Script.Parent.TOP.BrickColor = "Mid gray" Wait(0.03) Script.Parent.TopCoil.BrickColor = "Medium stone grey" Wait(0.03) Script.Parent.TOP.BrickColor = "Light stone grey" Wait(0.03) Script.Parent.TOP.BrickColor = "Cool yellow" Wait(0.03) Script.Parent.TOP.BrickColor = "Olive" Wait(0.03) Script.Parent.TOP.BrickColor = "New Yeller" Wait(0.03) Script.Parent.TOP.BrickColor = "Deep orange" Wait(0.03) Wait() |
|
|
| Report Abuse |
|
|
|
| 26 Mar 2013 01:04 PM |
| Dear Jesus, no offense, but this is massive and very ugly. Please try to not be offended. Also is there a output? |
|
|
| Report Abuse |
|
|
blanman
|
  |
| Joined: 15 Mar 2008 |
| Total Posts: 1750 |
|
|
| 26 Mar 2013 01:04 PM |
A little bit of context about what's wrong is more helpful than just a bunch of lines of code. -- is there any output?
I usually use 'while true do' for a loop, I'm not familiar with the 'repeat' operator. Make sure you're using that correctly.
The only other thing I see that is strange, is that you never gave any value for the "Wait()" commands at the start and the end. I thought you always had to specify a time to wait, and that leaving it empty would count as an error. (I could be wrong.) |
|
|
| Report Abuse |
|
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 26 Mar 2013 01:05 PM |
Thats the whole script -.-
I thought this wa sscripting helpers, not insult others bad scripting skills. |
|
|
| Report Abuse |
|
|
|
| 26 Mar 2013 01:08 PM |
| I said give me output, and I will help you sir. Also I said try not to take offense to it, it could be better. After I figured the problem out from output I was gonna re-write it and make it more efficient for you. |
|
|
| Report Abuse |
|
|
blanman
|
  |
| Joined: 15 Mar 2008 |
| Total Posts: 1750 |
|
|
| 26 Mar 2013 01:08 PM |
Again, you just posted a large block of code and just wrote "Fix this."
It's really hard to fix it if we don't know how it's broken.
Does the game tell you there are scripting errors in your output window when it runs? Does it just never change color? Does it spontaneously catch fire? |
|
|
| Report Abuse |
|
|
Desperian
|
  |
| Joined: 07 Feb 2012 |
| Total Posts: 3371 |
|
|
| 26 Mar 2013 01:10 PM |
[Issues] 1) It's 'script.Parent' not 'Script.Parent' 2) You'd use 'while true do' and not 'repeat' in this instance.
That's all I can find wrong.
[Ambig Notes] - 'wait()' will wait between 0.03 and 0.04 seconds, so if you just did "wait()" it'd work fine. - You don't need the 'wait()' at the very end. It just doesn't make sense. If you want the wait to be longer, remember you can put it inside the brackets.
|
|
|
| Report Abuse |
|
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 26 Mar 2013 01:15 PM |
"A little bit of context about what's wrong is more helpful than just a bunch of lines of code. -- is there any output?
I usually use 'while true do' for a loop, I'm not familiar with the 'repeat' operator. Make sure you're using that correctly.
The only other thing I see that is strange, is that you never gave any value for the "Wait()" commands at the start and the end. I thought you always had to specify a time to wait, and that leaving it empty would count as an error. (I could be wrong.)"
Wait() doesen't create an error, it allows the computer to take its time, its practicly anti-lag, and time to debug itself. |
|
|
| Report Abuse |
|
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 26 Mar 2013 01:17 PM |
"Does the game tell you there are scripting errors in your output window when it runs? Does it just never change color? Does it spontaneously catch fire?"
1) I don't ever have that Open... I think... :p
2) No, it doesen't change color ever.
3) Wat? .-. |
|
|
| Report Abuse |
|
|
Desperian
|
  |
| Joined: 07 Feb 2012 |
| Total Posts: 3371 |
|
|
| 26 Mar 2013 01:20 PM |
| No, it doesn't allow the computer to take it's time. If you do not put a value within the parenthesis then it'll simply default to around 1/30th of a second (Between 0.03 and 0.04). |
|
|
| Report Abuse |
|
|
|
| 26 Mar 2013 01:21 PM |
| ^^ :o Not in all cases my good sir. |
|
|
| Report Abuse |
|
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 26 Mar 2013 02:40 PM |
| I'm eating cornbread while reading this :p |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2014 01:55 PM |
Ya could always just put in p.BrickColor = BrickColor.new(math.random()) And assign a part the variable "p." |
|
|
| Report Abuse |
|
|