Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Rainbow Trail Pass Not Working?

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.

3 comments

0

Is the game R15 or R6?

1

please use a goddamn code block

0

Thank you, but please do not harass me for no whatever reason, the game is R15, yes. Thanks!

1 answer

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 

3 comments

0

After doing what you have instructed it fixed the output because the output does not output any information now. But, the players do not spawn in with the Rainbow Trail?

0

It's because you need to replace ALL "Torso" with UpperTorso

0

I have already figured to do that and it has not worked... The players who own the game pass still do not spawn in with the Rainbow Trail?

This discussion is preserved as it was. New answers, comments, and votes are closed.