Advertisement
Laiser

Rainbow Trail

Sep 23rd, 2017
471
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. local Trail = game.ServerStorage["Rainbow Trail"]
  2. game.Players.PlayerAdded:Connect(function(plr)
  3. plr.CharacterAdded:Connect(function(char)
  4. local plrTrail = Trail:Clone()
  5. plrTrail.Parent = char.HumanoidRootPart
  6. if char:FindFirstChild("UpperTorso") then
  7. plrTrail.Attachment0 = char.Head.FaceFrontAttachment
  8. plrTrail.Attachment1 = char.Torso.RootRigAttachment
  9. else
  10. plrTrail.Attachment0 = char.Head.FaceFrontAttachment
  11. plrTrail.Attachment1 = char.Torso.WaistBackAttachment
  12. end
  13. end)
  14. local character = script.Parent.Parent.Parent
  15. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement