So I made these particle launchers to go onto opposite sides of my lobby. Red works fine, but blue just turns to white. How is this?
local p = script.Parent
local bc = Color3.new(85, 170, 255)
local rc = Color3.new(255, 0, 0)
p.Enabled = false
local w = game.Workspace.WinningTeam
-- Functions --
function red()
p.Color = ColorSequence.new(rc, rc)
p.Enabled = true
wait(8)
p.Enabled = false
p.Color = ColorSequence.new(Color3.new(255, 255, 255),Color3.new(255, 255, 255))
end
function blue()
p.Color = ColorSequence.new(bc, bc)
p.Enabled = true
wait(8)
p.Enabled = false
p.Color = ColorSequence.new(Color3.new(255, 255, 255),Color3.new(255, 255, 255))
end
-- Real Function --
w.Changed:connect(function()
if w.Value == "Red" then
red()
end
if w.Value == "Blue" then
blue()
end
end)
Help would be appreciated, thanks.
