ToboboT
|
  |
| Joined: 25 Jun 2011 |
| Total Posts: 2385 |
|
|
| 10 Aug 2015 05:06 PM |
| create a script that changes a bricks color to something random every 5 seconds, also create a 3d rendering engine with the roblox gui system |
|
|
| Report Abuse |
|
|
GianniKun
|
  |
| Joined: 19 Aug 2009 |
| Total Posts: 8101 |
|
| |
|
Seviro
|
  |
| Joined: 08 Dec 2009 |
| Total Posts: 46758 |
|
|
| 10 Aug 2015 05:08 PM |
I made this and if you ask me that's better than changing color every 5 seconds.
local Light = game.workspace.Lights:GetChildren() local random = Light[math.random(1, #Light)] local randomTime = math.random(1,3) local randomTime2 = math.random(2,4) Flame = random.PointLight on = Flame.Enabled == true off = Flame.Enabled == false
function timer(t,func) wait(t) func() end
if Light then spawn(function() timer(randomTime,function() Flame.Enabled = false end) end)
wait(randomTime)
spawn(function() timer(randomTime2,function() Flame.Enabled = true end) end) end
repeat if Light then spawn(function() timer(randomTime,function() Flame.Enabled = false end) end)
wait(randomTime)
spawn(function() timer(randomTime2,function() Flame.Enabled = true end) end) end until nil |
|
|
| Report Abuse |
|
|
ToboboT
|
  |
| Joined: 25 Jun 2011 |
| Total Posts: 2385 |
|
|
| 10 Aug 2015 05:09 PM |
or you could just do this
while wait(5) do script.Parent.BrickColor = BrickColor.Random() end |
|
|
| Report Abuse |
|
|
Seviro
|
  |
| Joined: 08 Dec 2009 |
| Total Posts: 46758 |
|
|
| 10 Aug 2015 05:09 PM |
| If you actually read the script you'd realize that doesn't change the brick color. |
|
|
| Report Abuse |
|
|
Frigard
|
  |
| Joined: 02 Oct 2011 |
| Total Posts: 804 |
|
| |
|
ToboboT
|
  |
| Joined: 25 Jun 2011 |
| Total Posts: 2385 |
|
|
| 10 Aug 2015 05:12 PM |
| reading scripts on the forums is hard |
|
|
| Report Abuse |
|
|
Razerium
|
  |
| Joined: 02 Aug 2013 |
| Total Posts: 6578 |
|
| |
|
ToboboT
|
  |
| Joined: 25 Jun 2011 |
| Total Posts: 2385 |
|
| |
|
|
| 10 Aug 2015 05:18 PM |
"while wait(5) do script.Parent.BrickColor = BrickColor.Random() end"
come on tobo even i know what this means |
|
|
| Report Abuse |
|
|
ToboboT
|
  |
| Joined: 25 Jun 2011 |
| Total Posts: 2385 |
|
|
| 10 Aug 2015 05:21 PM |
why is everyone forgetting to do the second part:
"create a 3d rendering engine with the roblox gui system"
cmon its easy
-- benbonez -- 2011
Instance.new("Frame").Position = UDim2.new(rednerythingywow.x.offset,0,0,0) |
|
|
| Report Abuse |
|
|