for i, v in pairs(game.ReplicatedStorage.ChargeParts.Fire.FireHand:GetChildren()) do
local clone = v:Clone()
clone.Parent = char["Right Arm"].RightGripAttachment
end
for i, v in pairs(game.ReplicatedStorage.ChargeParts.Fire.FireHand:GetChildren()) do
local clone = v:Clone()
clone.Parent = char["Left Arm"].LeftGripAttachment
end
When I try this code on either the server or the client, the attachments clone, but the beams stop working.
The problem is probably that you need to re-identify the beams attachments after cloning them, If this isn’t the problem maybe try increasing your graphics or something.
an ex:
for i, v in pairs(game.ReplicatedStorage.ChargeParts.Fire.FireHand:GetChildren()) do
local clone = v:Clone()
clone.Attachment0 = char["Right Arm"].RightGripAttachment
clone.Parent = char["Right Arm"].RightGripAttachment
end
for i, v in pairs(game.ReplicatedStorage.ChargeParts.Fire.FireHand:GetChildren()) do
local clone = v:Clone()
clone.Attachment0 = char["Left Arm"].LeftGripAttachment
clone.Parent = char["Left Arm"].LeftGripAttachment
end
If your beam uses 2 attachments, simply make another line that does that.
Oh no its just that my attachments all have the same name, so re setting the attachments would require me to rename all of them. But i just figured out that instead of cloning all of them i can just parent them to one singular attachment and clone that, so I’m good now.