local descendants = game.ServerStorage.Assets:WaitForChild("LightningTrail2"):GetDescendants()
for index, descendant in pairs(descendants) do
local decendantClone = descendant:Clone()
if decendantClone:IsA("Trail") then
decendantClone.Enabled = false
decendantClone.Parent = hrp
end
if decendantClone.Name == "BottomAttachment" then
decendantClone.Parent = hrp
print(decendantClone.Name)
end
if decendantClone.Name == "TopAttachment" then
decendantClone.Parent = hrp
print(decendantClone.Name)
end
end
For some odd reason, my trail being cloned to the player’s hrp is not visible. It only becomes visible if I move it directly (without cloning it). Any solutions?
are you sure the server copies the trail and not the local script? i assume you use a local script which you should but to clone it you would need to use a remote event or function with a server script. to see if its being cloned test the game then click the screen icon with the blue box thingy to go to server view mode.
Yes, I checked if Attachment 1 & 0 is parented to the specified part I need.
I will try to change it to elseif, but I doubt it will make a difference considering I know that is not the issue since I know it works if I simply parent the trails and attachments rather than clone them, but I’m trying to clone them.