Advertisement
metilol

Untitled

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