RanTos32
(RanTos32)
April 1, 2020, 3:52am
#1
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)
zJackkz
(zJackkz)
April 1, 2020, 4:12am
#2
Correct me if im wrong, but i think Lifetime, Rotation, RotSpeed, and speed are also supposed to be numbersequences?
1 Like
Qxest
(Suufi)
April 1, 2020, 4:14am
#3
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
RanTos32
(RanTos32)
April 1, 2020, 4:18am
#4
I literally can’t say, first time I do this type of script
zJackkz
(zJackkz)
April 1, 2020, 4:19am
#5
are you getting any errors?
30 chars
1 Like
RanTos32
(RanTos32)
April 1, 2020, 4:20am
#6
i got a lot of erros, but I think I can solve them, 1 second
RanTos32
(RanTos32)
April 1, 2020, 4:25am
#7
L_67_.Lifetime=NumberRange.new{NumberRange.new(0,1.75),NumberRange.new(1,1.75)}
–got error on this
zJackkz
(zJackkz)
April 1, 2020, 4:28am
#8
what did the error say?
30 chars
1 Like
zJackkz
(zJackkz)
April 1, 2020, 4:30am
#10
maybe change its rotation to a number range of 360,360
if that doesn’t work, ide just clone it lol
RanTos32
(RanTos32)
April 1, 2020, 4:30am
#11
I got it, I think I fixed it
maybe
Qxest
(Suufi)
April 1, 2020, 4:31am
#12
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
RanTos32
(RanTos32)
April 1, 2020, 4:32am
#13
Guys I solved it, thanks everyone anyways!! love u
RanTos32
(RanTos32)
April 1, 2020, 4:32am
#14
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)