Skydric
|
  |
| Joined: 20 May 2008 |
| Total Posts: 8026 |
|
|
| 14 Jun 2015 10:37 PM |
Question! I'm trying to get a brick to turn to a different transparency every half second, is there any advice on what I should do? I was a novice at scripting and I haven't touched scripts in over 5 months, what I have currently is not working:
spinning = script.Parent
while true do spinning.Transparency = .6 wait(.5) if spinning.Transparency == .6 then spinning.Transparency = .4 end end
|
|
|
| Report Abuse |
|
|
|
| 14 Jun 2015 10:38 PM |
while wait(0.5) do spinning.Transparency = math.random() -- does it floor to nearest 1/10th idk??? end |
|
|
| Report Abuse |
|
|
|
| 14 Jun 2015 10:39 PM |
spinning = script.Parent
spinning.Transparency = .6
while true do wait(.5) if spinning.Transparency == .6 then spinning.Transparency = .4 else spinning.Transparency = .6 end end |
|
|
| Report Abuse |
|
|
Skydric
|
  |
| Joined: 20 May 2008 |
| Total Posts: 8026 |
|
|
| 14 Jun 2015 10:42 PM |
| i'm afraid neither of those are working^ dunno if i'm doing something wrong, but it's just not working. thanks for your assistance anyways though! |
|
|
| Report Abuse |
|
|
Skydric
|
  |
| Joined: 20 May 2008 |
| Total Posts: 8026 |
|
|
| 14 Jun 2015 10:45 PM |
| I take that back, the first reply is working. Thank you, really helped! |
|
|
| Report Abuse |
|
|
|
| 14 Jun 2015 10:52 PM |
local spinning = script.Parent spinning.Transparency= .6
while true do wait(.5) spinning.Transparency = spinning.Transparency == .6 and .4 or .6 end |
|
|
| Report Abuse |
|
|