i need SERIOUS help guys, basically my script wont enable particle emitters no matter what i do, if i manually enable it does, but this doesnt seem to work. i can't see whats wrong
function Ability:OnPress(player)
SFX.FireballSound:Play()
local char = player.Character
if not char then return end
local arm = char:FindFirstChild("Right Arm")
if not arm then return end
local fireball = VFX.FireballProjectile:Clone()
fireball.CFrame = arm.CFrame
fireball.Anchored = false
fireball.CanCollide = false
fireball.Parent = char
local weld = Instance.new("Motor6D")
weld.Part0 = arm
weld.Part1 = fireball
weld.Parent = fireball
ACTIVE[player] = {
Fireball = fireball,
Weld = weld,
StartTime = os.clock(),
LastCharge = 0
}
EmitCharge(player)
ACTIVE[player].LastCharge = 1
local projectileAttachment = fireball:FindFirstChild("Projectile")
if projectileAttachment then
for _, v in ipairs(projectileAttachment:GetDescendants()) do
if v:IsA("ParticleEmitter") then
v.Enabled = true
end
end
end
end