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 » Scripters
Home Search
 

Re: I want to make fire change color at random.

Previous Thread :: Next Thread 
H3Xz4d4rk is not online. H3Xz4d4rk
Joined: 09 Jul 2017
Total Posts: 10
28 Jul 2017 11:53 PM
this is what i have so far... but it wont work. i do not want to put the partical on from menu i want to script it in. so i can make changes from script. -------------------------------------------------------- while true do f=Instance.new("fire") f.Heat=0 f.Size=4 f.Color=0,0,0 F.SecondaryColor=0,0,0 Cc = math.random(1,5) if ## ## # then f.SecondaryColor=16,217,12 end if ## ## # then f.SecondaryColor=7,197,197 end if ## ## # then f.SecondaryColor=0,79,197 end if ## ## # then f.SecondaryColor=164,0,197 end if ## ## # then f.SecondaryColor=197,14,17 end end -------------------------------------------------------------
Report Abuse
systematicaddict is not online. systematicaddict
Joined: 13 Jul 2012
Total Posts: 4188
29 Jul 2017 12:09 AM
SecondaryColor = Color3.new(0,0,0)
Report Abuse
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
29 Jul 2017 12:09 AM
math.randomseed(tick())
colors = {Color3.fromRGB(16,217,12) ,Color3.fromRGB(7,197,197), Color3.fromRGB(0,79,197), Color3.fromRGB(164,0,197), Color3.fromRGB(197,14,17)}
f = Instance.new("Fire")
f.Heat = 0
f.Size = 4
f.Color = Color3.new()
f.SecondaryColor = Color3.new()
f.Parent = workspace.Part -- Change this

while wait(.5) do
f.Color = colors[math.random(#colors)] -- secondary color is barely noticeable
end
Report Abuse
H3Xz4d4rk is not online. H3Xz4d4rk
Joined: 09 Jul 2017
Total Posts: 10
29 Jul 2017 12:13 AM
omg i feel so slow to have not gotten that the first time XD i put Color.Color3 XD
Report Abuse
H3Xz4d4rk is not online. H3Xz4d4rk
Joined: 09 Jul 2017
Total Posts: 10
29 Jul 2017 12:29 AM
light=script.Parent
f=Instance.new("Fire")
f.Heat=0
f.size=4
f.Color=Color3.new(0,0,147)
f.SecondaryColor=Color3.new(0,147,0)
-------------------------------------------------
this did not work...
what am i doing wrong
Report Abuse
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
29 Jul 2017 12:32 AM
f.Parent = light
Report Abuse
BunnyBoy26 is not online. BunnyBoy26
Joined: 17 Jun 2010
Total Posts: 5674
29 Jul 2017 12:34 AM
Also do Color3.fromRGB instead of Color3.new
Report Abuse
H3Xz4d4rk is not online. H3Xz4d4rk
Joined: 09 Jul 2017
Total Posts: 10
29 Jul 2017 12:35 AM
still don't get any flames.
Report Abuse
H3Xz4d4rk is not online. H3Xz4d4rk
Joined: 09 Jul 2017
Total Posts: 10
29 Jul 2017 12:36 AM
thank you so much
Report Abuse
systematicaddict is not online. systematicaddict
Joined: 13 Jul 2012
Total Posts: 4188
29 Jul 2017 01:36 PM
If you want to use Color3.new() with RGB integer values, it's as easy as doing ###################### ########### ########### but fromRGB already handles that for you, so you can just use that too
Report Abuse
systematicaddict is not online. systematicaddict
Joined: 13 Jul 2012
Total Posts: 4188
29 Jul 2017 01:39 PM
Okay so apparently roblox censors Color3 now, what I'm trying to say is

Color3.new() and just do x/255 for the parameters
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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