I am trying to get all the trails from my StarterCharacter which has trails in most parts of it's body. Is there a faster way to do this or will I have to go 1 by 1 saying game.Players.LocalPlayer.Character.LeftHand.Trail game.Players.LocalPlayer.Character.RightHand.Trail and so on...
(Sorry if I didn't explain this correctly)
Like Jesse said, you can use a for loop.
for index, value in ipairs(game.Players.LocalPlayer.Character:GetChildren()) -- loops thorugh all the children of the character. value are all the different childrens of the character if value:FindFirstChildWhichIsA("Trail) then -- checks if value has a trail. -- your code here. For example if you want to change the name of all the trails -- value.Trail.Name == "Trail" end end