so i have this beam vfx and i am trying to figure out how to enable the beam the vfx does emit but parenting the beam workspace doesnt seem to make it enabled anybody knows the fix
local ceroEvent = game.ReplicatedStorage.ceroEvent
local beam1 = game.ReplicatedStorage.beam1
local beam2 = game.ReplicatedStorage:WaitForChild("beam2")
ceroEvent.OnClientEvent:Connect(function(plr)
task.wait(2)
local beam1Clone = beam1:Clone()
local beam2Clone = beam2:Clone()
beam1Clone.Parent = workspace
beam2Clone.Parent = workspace
beam1Clone.CFrame = plr.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-30)
beam2Clone.CFrame =
plr.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-5)
for _, particle in beam1Clone:GetDescendants() do
if particle:IsA("ParticleEmitter") then
local emitCount = particle:GetAttribute("EmitCount")
particle:Emit(emitCount)
end
end
for _, particle in beam2Clone:GetDescendants() do
if particle:IsA("ParticleEmitter") then
local emitCount = particle:GetAttribute("EmitCount")
particle:Emit(emitCount)
end
end
end)