Particle help. Red particle not coming from newly spawned part

local DropperPartsFolder = script.Parent.Parent.Parent.DropperParts

while wait(2) do
local NewPart = Instance.new(“Part”, DropperPartsFolder)
NewPart.Position = script.Parent.SpawnPart.Position
NewPart.Size = Vector3.new(1,1,1)
NewPart.BrickColor = BrickColor.new(“Dusty Rose”)
NewPart.ParticleEmitterColor = (“Dusty Rose”)

local CashValue = Instance.new("NumberValue", NewPart)
CashValue.Value = 1
CashValue.Name = "CashValue"

end

I want it so when the part spawns the part has a red particle but this doesn’t work. Any idea why? Please help.

dropperpartsfolder is in workspace and the emitter is enabled, right?

This doesn’t work because parts that are created do not automatically come with a particle emitter, you will have to add one yourself.

Fixed code:

--//Variables
local DropperPartsFolder = script.Parent.Parent.Parent.DropperParts

--//Loops
while task.wait(2) do
	local newPart = Instance.new("Part")
	newPart.Position = script.Parent.SpawnPart.Position
	newPart.Size = Vector3.one
	newPart.BrickColor = BrickColor.new("Dusty Rose")
	
	local newEmitter = Instance.new("ParticleEmitter")
	newEmitter.Color = ColorSequence.new(BrickColor.new("Dusty Rose").Color)
	newEmitter.Parent = newPart
	
	local CashValue = Instance.new("NumberValue")
	CashValue.Value = 1
	CashValue.Name = "CashValue"
	CashValue.Parent = newPart
	
	newPart.Parent = DropperPartsFolder
end

How do I change the size of the affect?

Change the size property of the emitter.

New code:

--//Variables
local DropperPartsFolder = script.Parent.Parent.Parent.DropperParts

--//Loops
while task.wait(2) do
	local newPart = Instance.new("Part")
	newPart.Position = script.Parent.SpawnPart.Position
	newPart.Size = Vector3.one
	newPart.BrickColor = BrickColor.new("Dusty Rose")

	local newEmitter = Instance.new("ParticleEmitter")
	newEmitter.Color = ColorSequence.new(BrickColor.new("Dusty Rose").Color)
	newEmitter.Size = 10 --//Pick whatever size you want
	newEmitter.Parent = newPart

	local CashValue = Instance.new("NumberValue")
	CashValue.Value = 1
	CashValue.Name = "CashValue"
	CashValue.Parent = newPart

	newPart.Parent = DropperPartsFolder
end

Shows an error. It says Rendering is paused for debugging

Can you tell me the error? The popup says Rendering is paused for debugging but can you tell me the actual error? Also, this script is probably not the one triggering the error because on my side it works fine.

newEmitter.Size = 4 --//Pick whatever size you want

it shows a error on this and disconnects me

turn off debugging.

Sorry, you need to use a number sequence instead of just a number.

Fixed code:

--//Variables
local DropperPartsFolder = script.Parent.Parent.Parent.DropperParts

--//Loops
while task.wait(2) do
	local newPart = Instance.new("Part")
	newPart.Position = script.Parent.SpawnPart.Position
	newPart.Size = Vector3.one
	newPart.BrickColor = BrickColor.new("Dusty Rose")

	local newEmitter = Instance.new("ParticleEmitter")
	newEmitter.Color = ColorSequence.new(BrickColor.new("Dusty Rose").Color)
	newEmitter.Size = NumberSequence.new(4) --//Put whatever number you want
	newEmitter.Parent = newPart

	local CashValue = Instance.new("NumberValue")
	CashValue.Value = 1
	CashValue.Name = "CashValue"
	CashValue.Parent = newPart

	newPart.Parent = DropperPartsFolder
end

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.