Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Rainbow Trail Pass Not Working?

Asked by 4 years ago

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.

0
Is the game R15 or R6? TheOnlineItalian213 99 — 4y
1
please use a goddamn code block Dan_PanMan 227 — 4y
0
Thank you, but please do not harass me for no whatever reason, the game is R15, yes. Thanks! bulder251 26 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

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 
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? bulder251 26 — 4y
0
It's because you need to replace ALL "Torso" with UpperTorso TheOnlineItalian213 99 — 4y
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? bulder251 26 — 4y
Ad

Answer this question