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?
Katrist
(Katrist)
April 12, 2023, 10:24pm
#4
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?
Katrist
(Katrist)
April 12, 2023, 10:28pm
#6
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
Katrist
(Katrist)
April 12, 2023, 10:33pm
#8
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
Katrist
(Katrist)
April 12, 2023, 10:37pm
#11
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
system
(system)
Closed
April 26, 2023, 10:54pm
#13
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.