Hello fellow devs! I am making a Rainbow Trail and when a player joins and owns that certain game pass the rainbow trail will clone and follow them. So, I inserted a Script into ServerScriptService and created my trail in ServerStorage. Here is the Script: local MS = game:GetService("MarketplaceService") local ID = 10136143 local Trail = game.ServerStorage.RainbowTrail
game.Players.PlayerAdded:Connect(function(plr) plr.CharacterAdded:Connect(function(char) if MS:UserOwnsGamePassAsync(plr.UserId, ID) then local plrTrail = Trail:Clone() plrTrail.Parent = char.Torso plrTrail.Attachment0 = char.Head.FaceFrontAttachment plrTrail.Attachment1 = char.Torso.WaistBackAttachment end end) end)
The script does not work and the output says: 17:33:12.326 - Torso is not a valid member of Model
I would also like to inform you that the players begin with a StarterCharacter. If anyone could help it would mean a life saver to me! Thanks.
If the game is not R6 but R15 i suggest instead of putting it in "Torso" wich doesn't exist, put it in UpperBody like this
plrTrail.Parent = char.UpperTorso plrTrail.Attachment0 = char.Head.FaceFrontAttachment