Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

"ColorSequence.new(): table expected" what's this mean?

Asked by 6 years ago
local Vom = Instance.new ("ParticleEmitter")
                Vom.Parent = human.Parent.Head
                Vom.EmissionDirection = "Front"
                Vom.Enabled = true
                Vom.Rate = 500
                Vom.Rotation = NumberRange.new (0,360)
                Vom.Speed = NumberRange.new (5,5)
                Vom.SpreadAngle = Vector2.new(5,5)
                Vom.Lifetime = NumberRange.new (1.5)
                Vom.LockedToPart = true
                Vom.Acceleration = Vector3.new (0,-10,3)
                Vom.Texture = "rbxassetid://453789629"
                Vom.Size = NumberSequence.new (0.3)
                Vom.Transparency = NumberSequence.new (0.3)
                Vom.ZOffset = .1
                Vom.LightInfluence = 0
                Vom.LightEmission = 0.6
                Vom.Color = ColorSequence.new(255, 39, 39)

this is the line of code that I'm trying to get to work but its not working, any help?

0
It's expecting a table. See https://wiki.roblox.com/index.php?title=API:ColorSequence for all definitions. I think you want to do ColorSequence.new(Color3.new(r,g,b)) ScrewDeath 153 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

Here's some stuff that can help you: https://wiki.roblox.com/index.php?title=API:ColorSequence

Ad

Answer this question