#Particles on SERVER not loading on CLIENT

1 messages · Page 1 of 1 (latest)

drowsy nacelle
#
local part = script.Parent
local event = part:WaitForChild("Boom")
local fx = part

local Debris = game:GetService("Debris")

local function Emit(list)
    for _, v in ipairs(list) do
        if v:IsA("Sound") then
            v:Stop()
            v.TimePosition = 0
            v:Play()

        elseif v:IsA("ParticleEmitter") then
            local amount = v:GetAttribute("EmitAmount")
            if amount then
                v:Emit(amount)
            end
        end
    end
end

local function CloneAt(pos)
    if typeof(pos) ~= "Vector3" then return end

    local clone = part:Clone()
    clone.Parent = workspace
    clone.Position = pos

    Debris:AddItem(clone, 10)
    return clone
end

event.Event:Connect(function(pos)
    local boom = CloneAt(pos)
    if not boom then return end

    Emit(boom:GetChildren())
end)

inland marlin
#

erm what the flop?

icy carbon
#

you don't want to emit particles on the server tho