Advertisement
Guest User

Untitled

a guest
Aug 19th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. wait(1)
  2. while true do
  3. local stuff = workspace:GetChildren()
  4. for i = 1, #stuff do
  5. if stuff[i].ClassName == "Model" then
  6. local test = game.Players:FindFirstChild(stuff[i].Name)
  7. if test then
  8. if test.Team == game.Teams.Bad then
  9. if (stuff[i].Torso.Position - script.Parent.Parent.Position).magnitude <= 100 then
  10. if stuff[i].Humanoid.Health ~= 0 then
  11. stuff[i].Humanoid.Health = stuff[i].Humanoid.Health - 2
  12. script.Parent.Parent.CFrame = CFrame.new(script.Parent.Parent.Position,stuff[i].Torso.Position)
  13. local x = script.Parent.Parent.Orientation.X
  14. script.Parent.Parent.Orientation = Vector3.new(x - 90,script.Parent.Parent.Orientation.Y,script.Parent.Parent.Orientation.Z)
  15. script.Parent.Playing = true
  16. wait(0.12)
  17. script.Parent.Playing = false
  18. script.Parent.TimePosition = 0
  19. end
  20. end
  21. end
  22. end
  23. end
  24. end
  25. wait()
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement