Instance.new("ParticleEmitter") help

it keeps saying “color out of range”
what is happening to it??

local L_67_=Instance.new(‘ParticleEmitter’)
L_67_.Parent=L_61_
L_67_.Color=ColorSequence.new{ColorSequenceKeypoint.new(0,Color3.new(255,175,45)),ColorSequenceKeypoint.new(1,Color3.new(255,0,0))}
L_67_.Texture=“http://www.roblox.com/asset/?id=554784715
L_67_.Transparency=NumberSequence.new{NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,0.1)}
L_67_.Size=NumberSequence.new{NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(1,0.75)}
L_67_.Acceleration=Vector3.new(0,-35,0)
L_67_.Drag=2
L_67_.EmissionDirection=“Top”
L_67_.Lifetime=1.75
L_67_.Rate=50
L_67_.Rotation=360
L_67_.RotSpeed=100
L_67_.Speed=40
L_67_.SpreadAngle=Vector2.new(90,70)

Correct me if im wrong, but i think Lifetime, Rotation, RotSpeed, and speed are also supposed to be numbersequences?

1 Like

Please format your code in the future. I wrote a guide that should help you with that here. The issue with your code is Color3.new(). Color3.new takes in 3 values which should all be between 0 and 1. You can either divide your existing values by 255 or use Color3.fromRGB to fix your issue.

2 Likes

I literally can’t say, first time I do this type of script

are you getting any errors?
30 chars

1 Like

i got a lot of erros, but I think I can solve them, 1 second

L_67_.Lifetime=NumberRange.new{NumberRange.new(0,1.75),NumberRange.new(1,1.75)}

–got error on this

what did the error say?
30 chars

1 Like

maybe change its rotation to a number range of 360,360
if that doesn’t work, ide just clone it lol

I got it, I think I fixed it

maybe

These errors are not from the line you gave us. Those errors come from the Rotation line. Use a NumberRange as the error tells you.

1 Like

Guys I solved it, thanks everyone anyways!! love u

correct line as an example!!

local L_67_=Instance.new(‘ParticleEmitter’)
L_67_.Parent=L_61_
L_67_.Color=ColorSequence.new{ColorSequenceKeypoint.new(0,Color3.fromRGB(255,175,45)),ColorSequenceKeypoint.new(1,Color3.fromRGB(255,0,0))}
L_67_.Texture=“http://www.roblox.com/asset/?id=554784715
L_67_.Transparency=NumberSequence.new{NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,0)}
L_67_.Size=NumberSequence.new{NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(1,0.75)}
L_67_.Acceleration=Vector3.new(0,-35,0)
L_67_.Drag=2
L_67_.EmissionDirection=“Top”
L_67_.Lifetime=NumberRange.new(0,1.75)
L_67_.Rate=50
L_67_.Rotation=NumberRange.new(0,360)
L_67_.RotSpeed=NumberRange.new(0,100)
L_67_.Speed=NumberRange.new(0,40)
L_67_.SpreadAngle=Vector2.new(90,70)