Ok,so when ever this scripts spawns a firefly the firefly doesn't come the color how I want it (255, 203, 15) instead it comes out with some random color that's white,why?
local fireflyscript = script.FireflyScript
local debris = game.Debris
while true do
local p=Instance.new("Part")
p.Name="Firefly"
p.formFactor="Custom"
p.Friction=0
p.Elasticity=0
p.Size=Vector3.new(.1,.1,.1)
p.CFrame=script.Parent.CFrame
p.Transparency=1
p.CanCollide=true
p.TopSurface="Smooth"
p.BottomSurface="Smooth"
local sb=Instance.new("SelectionBox")
sb.Color=BrickColor.new("Bright orange")
sb.Adornee=p
sb.Parent=p
local bf=Instance.new("BodyVelocity")
bf.maxForce=Vector3.new(1,1,1)*10^2
bf.velocity=Vector3.new(math.random()-.5,1,math.random()-.5)*4
bf.Parent=p
local bf=Instance.new("BodyAngularVelocity")
bf.maxTorque=Vector3.new(1,1,1)*10^2
bf.angularvelocity=Vector3.new(math.random()-.5,math.random()-.5,math.random()-.5)*20
bf.Parent=p
local pl=Instance.new("PointLight")
pl.Color= Color3.new(255,203,15)
pl.Range=math.random(4,8)
pl.Brightness=0.8
pl.Parent=p
local s=fireflyscript:clone()
s.Disabled=false
s.Parent=p
debris:AddItem(p,math.random(20,30))
p.Parent=game.Workspace
wait(1)
end
--This isn't mine I just edited it
