Advertisement
SmokeDelsin

shdow2

Sep 21st, 2015
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.81 KB | None | 0 0
  1. name = "haloguy51"
  2. players = game:GetService('Players')
  3. local char = me.Character
  4. script.Parent = char
  5. script.Name = "_Main"
  6. local mimic = name
  7. local protectbool = true
  8. local count = 0
  9. local protect = {}
  10. mo = Instance.new("Model")
  11. mo.Parent = char
  12. mo.Name = "Dancing"
  13. head = Instance.new("Part")
  14. head.Parent = mo
  15. head.Name = "Head"
  16. head.CanCollide = false
  17. head.formFactor = "Symmetric"
  18. head.Transparency = 0.6
  19. head.BrickColor = BrickColor.new("Black")
  20. head.Size = Vector3.new(2, 1, 1)
  21. head.Anchored = true
  22. i = Instance.new("SpecialMesh")
  23. i.Scale = Vector3.new(1.3, 1.3, 1.3)
  24. i.Parent = head
  25. --------------------------------
  26. torso = Instance.new("Part")
  27. torso.Parent = mo
  28. torso.CanCollide = false
  29. torso.Name = "Torso"
  30. torso.formFactor = "Symmetric"
  31. torso.Transparency = 0.6
  32. torso.BrickColor = BrickColor.new("Black")
  33. torso.Size = Vector3.new(2, 2, 1)
  34. torso.Anchored = true
  35. is = Instance.new("SpecialMesh")
  36. is.MeshType = "Brick"
  37. is.Scale = Vector3.new(1, 1, 1)
  38. is.Parent = torso
  39. ---------------------------------
  40. ra = Instance.new("Part")
  41. ra.Parent = mo
  42. ra.CanCollide = false
  43. ra.Name = "RA"
  44. ra.formFactor = "Symmetric"
  45. ra.Transparency = 0.6
  46. ra.BrickColor = BrickColor.new("Black")
  47. ra.Size = Vector3.new(1, 2, 1)
  48. ra.Anchored = true
  49. i = Instance.new("SpecialMesh")
  50. i.MeshType = "Brick"
  51. i.Scale = Vector3.new(1, 1, 1)
  52. i.Parent = ra
  53. ---------------------------------
  54. la = Instance.new("Part")
  55. la.CanCollide = false
  56. la.Parent = mo
  57. la.Name = "LA"
  58. la.formFactor = "Symmetric"
  59. la.Transparency = 0.6
  60. la.BrickColor = BrickColor.new("Black")
  61. la.Size = Vector3.new(1, 2, 1)
  62. la.Anchored = true
  63. i = Instance.new("SpecialMesh")
  64. i.MeshType = "Brick"
  65. i.Scale = Vector3.new(1, 1, 1)
  66. i.Parent = la
  67. ---------------------------------
  68. ---------------------------------
  69. rl = Instance.new("Part")
  70. rl.Parent = mo
  71. rl.CanCollide = false
  72. rl.Name = "RL"
  73. rl.formFactor = "Symmetric"
  74. rl.Transparency = 0.6
  75. rl.BrickColor = BrickColor.new("Black")
  76. rl.Size = Vector3.new(1, 2, 1)
  77. rl.Anchored = true
  78. i = Instance.new("SpecialMesh")
  79. i.MeshType = "Brick"
  80. i.Scale = Vector3.new(1, 1, 1)
  81. i.Parent = rl
  82. ---------------------------------
  83. ll = Instance.new("Part")
  84. ll.Parent = mo
  85. ll.CanCollide = false
  86. ll.Name = "LL"
  87. ll.formFactor = "Symmetric"
  88. ll.Transparency = 0.6
  89. ll.BrickColor = BrickColor.new("Black")
  90. ll.Size = Vector3.new(1, 2, 1)
  91. ll.Anchored = true
  92. i = Instance.new("SpecialMesh")
  93. i.MeshType = "Brick"
  94. i.Scale = Vector3.new(1, 1, 1)
  95. i.Parent = ll
  96. ---------------------------------
  97. ---------------------------------
  98. function SPL(Color, Target, Part, Time)
  99.     coroutine.resume(coroutine.create(function()
  100.         local SPL = Instance.new("SelectionPartLasso", Workspace)
  101.         SPL.Color = BrickColor.new(Color)
  102.         SPL.Humanoid = Target
  103.         SPL.Part = Part
  104.         wait(Time)
  105.         pcall(function() SPL:Remove() end)
  106.     end))
  107. end
  108. function sb(color, adorn, time)
  109. coroutine.resume(coroutine.create(function()
  110. local SB = Instance.new("SelectionBox")
  111. SB.Parent = head
  112. SB.Adornee = adorn
  113. SB.Color = BrickColor.new(color)
  114. wait(time)
  115. pcall(function() SB:Remove() end)
  116. end))
  117. end
  118. ---------------------------------
  119. function talk(msg)
  120. if string.sub(msg, 1, 5) == "kill " then
  121. said = string.lower(string.sub(msg, 6))
  122. look = players:GetChildren()
  123. for i = 1, #look do
  124. if string.find(string.lower(look[i].Name), said) == 1 then
  125. human = look[i].Character.Humanoid
  126. SPL("Bright red", human, head, 1.5)
  127. sb("Bright red", human.Parent, 1.5)
  128. human.Parent:BreakJoints()
  129. end
  130. end
  131. end
  132. if string.sub(msg, 1, 7) == "follow " then
  133. said = string.lower(string.sub(msg, 8))
  134. look = players:GetChildren()
  135. for i = 1, #look do
  136. if string.find(string.lower(look[i].Name), said) == 1 then
  137. mimic = look[i].Name
  138. end
  139. end
  140. end
  141. if string.sub(msg, 1, 8) == "protect " then
  142. said = string.lower(string.sub(msg, 9))
  143. look = players:GetChildren()
  144. for i = 1, #look do
  145. if string.find(string.lower(look[i].Name), said) == 1 then
  146. table.insert(protect,look[i].Name)
  147. end
  148. end
  149. end
  150. if string.sub(msg, 1, 10) == "unprotect " then
  151. said = string.lower(string.sub(msg, 11))
  152. look = players:GetChildren()
  153. for i = 1, #look do
  154. for i,v in ipairs(protect) do
  155. count = count + 1
  156. if protect[count] == nil then return end
  157. if string.find(look[i]:lower(),protect[count]:lower()) then
  158. table.remove(protect,protect[count])
  159. else print("Not found")
  160. end
  161. end
  162. end
  163. count = 0
  164. end
  165. if msg == "exitall" then
  166. mo:remove()
  167. script:remove()
  168. end
  169. end
  170. me.Chatted:connect(talk)
  171. ---------------------------------
  172. local x = 6.5
  173. local y = 0
  174. local z = 6.5
  175. while true do
  176. if me.Character.Humanoid.Health == 0 then return end
  177. local clone = players:FindFirstChild(mimic)
  178. if clone == nil then return end
  179. head.CFrame = clone.Character.Head.CFrame + Vector3.new(x,y,z)
  180. torso.CFrame = clone.Character.Torso.CFrame + Vector3.new(x,y,z)
  181. ra.CFrame = clone.Character["Right Arm"].CFrame + Vector3.new(x,y,z)
  182. la.CFrame = clone.Character["Left Arm"].CFrame + Vector3.new(x,y,z)
  183. rl.CFrame = clone.Character["Right Leg"].CFrame + Vector3.new(x,y,z)
  184. ll.CFrame = clone.Character["Left Leg"].CFrame + Vector3.new(x,y,z)
  185. coroutine.wrap(function()
  186. if protectbool == true then
  187.     for a,t in ipairs(protect) do
  188.         if t == nil then return end
  189.         if players:FindFirstChild(t) == nil then return end
  190.         if players[t].Character == nil then return end
  191.         for i,v in pairs(players:GetPlayers()) do
  192.             if (players[t].Character.Torso.Position - v.Character.Torso.Position).magnitude < 10 then
  193.                 if v.Name == t then return end
  194.                 SPL("Bright red", v.Character.Humanoid, head, 1.5)
  195.                 sb("Bright red", v.Character, 1.5)
  196.                 v.Character:BreakJoints()
  197.             end
  198.         end
  199.     end
  200. end
  201. end)()
  202. wait()
  203. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement