I cannot figure out why a single particle doesn’t appear
The image exists and is public, its not transparent, its texture is rendered onto the particle, and yet it wont appear, and I cannot fathom why.
Here’s the code:
local emitter = script.Parent
local fire = emitter.Fire
local smoke = emitter.Smoke
local letter = emitter.Letter -- original template emitter
local letters = {
A = "rbxassetid://160416816",
B = "rbxassetid://160416981",
K = "rbxassetid://160551789",
L = "rbxassetid://160551931",
O = "rbxassetid://160552368",
M = "rbxassetid://160552160",
exclamationMark = "rbxassetid://16933997761"
}
-- utility function to spawn a letter particle
local function spawnLetter(texture, rotation)
emitter.Rotation = Vector3.new(emitter.Rotation.X, emitter.Rotation.Y, rotation)
local clone = letter:Clone()
clone.Parent = emitter.Attachment
clone.Texture = texture
clone.Rotation = NumberRange.new(rotation, rotation)
clone:Emit(1)
-- optional: clean up after lifetime ends
game:GetService("Debris"):AddItem(clone, clone.Lifetime.Max + 1)
end
local function explosions(num)
for i = 1, num do
fire:Emit(1)
task.wait(0.1)
end
end
while task.wait(3) do
local cor = coroutine.create(explosions)
coroutine.resume(cor, 3)
smoke:Emit()
spawnLetter(letters["B"], 30)
task.wait(0.05)
spawnLetter(letters["O"], 15)
task.wait(0.05)
spawnLetter(letters["O"], 0)
task.wait(0.05)
spawnLetter(letters["M"], -15)
task.wait(0.05)
spawnLetter(letters["exclamationMark"], -30)
end
Does anyone know how to fix this?