As the title says, I have attempted to add a singular trail onto multiple rigs, but for some reason it only works for one rig and that's the first one stated in the script. It completely ignores the second stated one. The script example will be below. Thanks to anyone in advance who can help me out with this. In my example, 'check' is the character/player that touches the block.
local mainTrail = game.ServerStorage.Trail
function onTouch(Part)
local check = Part.Parent
if check.Parent ~= nil then
local Trail = mainTrail:Clone()
Trail.Parent = check.LeftUpperLeg
Trail.Attachment0 = check.LeftUpperLeg.LeftHipRigAttachment
Trail.Attachment1 = check.LeftUpperLeg.LeftKneeRigAttachment
local Trail2 = mainTrail:Clone()
Trail2.Parent = check.RightUpperLeg
Trail2.Attachment2 = check.RightUpperLeg.RightHipRigAttachment
Trail2.Attachment3 = check.RightUpperLeg.RightKneeRigAttachment
end
script.Parent.Touched:connect(onTouch)

1 comment
O yes I did, even with that though it still doesn't work ,so I don't think that's the problem.