Advertisement
TheClassicMeme

Trail test 2

May 22nd, 2017
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. plr=game:GetService("Players").LocalPlayer
  2. mouse=plr:GetMouse()
  3. char=plr.Character
  4. trail=false
  5. mouse.KeyDown:connect(function(key)
  6. if key == "q" then
  7. trail=not trail
  8. end
  9. end)
  10. game:GetService('RunService').RenderStepped:connect(function()
  11. if trail then
  12. for _,v in pairs(char:GetChildren()) do
  13. if v:IsA('Part') and v.Name~="HumanoidRootPart" then
  14. local c=v:Clone()
  15. c.Parent = workspace
  16. c.Anchored=false
  17. c.CanCollide=false
  18. c.Transparency=0.5
  19. game:GetService('Debris'):AddItem(c,0.1)
  20. end
  21. end
  22. end
  23. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement