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

Particle cloning issues with multiple players?

Asked by 5 years ago

Sooooo Basically I have a script that clones fire particles into a players hands after a remote event is launched, I have an issue where once activated if another player uses the fire hands then the particles will shift from the original player to the other?? Ideas on how to fix this... Here is an example code:

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Fist1 = game:GetService("ReplicatedStorage").HellFlame:WaitForChild("FireFists"):Clone()
local Fist2 = game:GetService("ReplicatedStorage").HellFlame:WaitForChild("FireFists"):Clone()
local Remote = ReplicatedStorage.HellFlame.FistEvent

Remote.OnServerEvent:Connect(function(plr)
    local char = plr.Character
    Fist1.Parent = char.LeftHand
    Fist2.Parent = char.RightHand

end)

1
It's because you're currently only cloning once. You need to clone and parent the fist inside the function called within OnServerEvent. Do not clone the fist in lines 2 and 3,  just index it. Rheines 661 — 5y
0
Thank you this worked! It's always a small thing that can mess up a code. 10/10 NFStudios 0 — 5y

Answer this question