TheXcodeerror

Untitled

Nov 12th, 2019
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. plrs = game:service'Players'
  2. lp = plrs.LocalPlayer
  3. char = lp.Character
  4. function tracers()
  5. for i,v in pairs(plrs:GetPlayers()) do
  6. if v.Character and v.Character:FindFirstChild'HumanoidRootPart' and not v.Character.HumanoidRootPart:FindFirstChild'Attachment' then
  7. beam = Instance.new('Beam', plrs.LocalPlayer.Character.HumanoidRootPart)
  8. beam.Width0 = .15
  9. beam.Width1 = .15
  10. beam.Name = 'Beam'
  11. beam.FaceCamera = true
  12. beam.Color = ColorSequence.new(v.TeamColor.Color, v.TeamColor.Color)
  13. one = Instance.new('Attachment', plrs.LocalPlayer.Character.HumanoidRootPart)
  14. two = Instance.new('Attachment', v.Character.HumanoidRootPart)
  15. beam.Attachment0 = one
  16. beam.Attachment1 = two
  17. end
  18. end
  19. end
  20. tracers()
  21. _G.tracers2 = workspace.ChildAdded:Connect(function(mdl)
  22. if game:service'Players':FindFirstChild(mdl.Name) then
  23. wait(.3);repeat wait() until lp.Character and lp.Character:FindFirstChildOfClass'Humanoid' and lp.Character:FindFirstChildOfClass'Humanoid'.Health > 0 tracers()
  24. end
  25. end)
  26. function humdied()
  27. _G.tracers = workspace.ChildRemoved:Connect(function(mdl)
  28. if mdl.Name == lp.Name then
  29. for i,v in pairs(plrs:GetPlayers()) do
  30. if v.Character and v.Character:FindFirstChild'HumanoidRootPart' then
  31. for k,d in pairs(v.Character:GetChildren()) do
  32. v.Character.HumanoidRootPart:ClearAllChildren()
  33. end
  34. end
  35. end
  36. repeat wait() until lp.Character and lp.Character:FindFirstChild'HumanoidRootPart'
  37. tracers()
  38. humdied()
  39. end
  40. end)
  41. end
  42. humdied()
Advertisement
Add Comment
Please, Sign In to add comment