Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Shows up on client but not to other players?

Asked by 2 years ago

So I made a particle effect that should show up to all players but expect, it shows to the client

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Player = game.Players
local Particles = ReplicatedStorage.Assets.Particles:WaitForChild("KillEffect")
local Humanoid = script.Parent:FindFirstChildOfClass("Humanoid")

local Parts = script.Parent:GetChildren()

Humanoid.Died:Connect(function()
    for _, Part in pairs(Parts) do

        if  Part.Name == "Head" then
            local ParticlesInChar = Particles:Clone()
            ParticlesInChar.Parent = Part
        end
    end
end)
0
is the script local or regular ScentedTrashCan 16 — 2y
0
local script Experol 5 — 2y

1 answer

Log in to vote
0
Answered by
epoke466 100
2 years ago

A local script will (in most cases) change things only for the client. To get around this, use remote events that trigger functions within server scripts.

https://developer.roblox.com/en-us/articles/Remote-Functions-and-Events

Ad

Answer this question