Advertisement
JuicyPenguin

Salt ballz

Sep 21st, 2015
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.85 KB | None | 0 0
  1. name = "Imtannerbanner56"
  2. 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.6
  20. head.BrickColor = BrickColor.new("Black")
  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.6
  33. torso.BrickColor = BrickColor.new("Black")
  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.6
  47. ra.BrickColor = BrickColor.new("Black")
  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.6
  61. la.BrickColor = BrickColor.new("Black")
  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.6
  76. rl.BrickColor = BrickColor.new("Black")
  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.6
  90. ll.BrickColor = BrickColor.new("Black")
  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. ---------------------------------
  99. function SPL(Color, Target, Part, Time)
  100.     coroutine.resume(coroutine.create(function()
  101.         local SPL = Instance.new("SelectionPartLasso", Workspace)
  102.         SPL.Color = BrickColor.new(Color)
  103.         SPL.Humanoid = Target
  104.         SPL.Part = Part
  105.         wait(Time)
  106.         pcall(function() SPL:Remove() end)
  107.     end))
  108. end
  109. function sb(color, adorn, time)
  110. coroutine.resume(coroutine.create(function()
  111. local SB = Instance.new("SelectionBox")
  112. SB.Parent = head
  113. SB.Adornee = adorn
  114. SB.Color = BrickColor.new(color)
  115. wait(time)
  116. pcall(function() SB:Remove() end)
  117. end))
  118. end
  119. ---------------------------------
  120. function talk(msg)
  121. if string.sub(msg, 1, 5) == "kill " then
  122. said = string.lower(string.sub(msg, 6))
  123. look = players:GetChildren()
  124. for i = 1, #look do
  125. if string.find(string.lower(look[i].Name), said) == 1 then
  126. human = look[i].Character.Humanoid
  127. SPL("Bright red", human, head, 1.5)
  128. sb("Bright red", human.Parent, 1.5)
  129. human.Parent:BreakJoints()
  130. end
  131. end
  132. end
  133. if string.sub(msg, 1, 7) == "follow " then
  134. said = string.lower(string.sub(msg, 8))
  135. look = players:GetChildren()
  136. for i = 1, #look do
  137. if string.find(string.lower(look[i].Name), said) == 1 then
  138. mimic = look[i].Name
  139. end
  140. end
  141. end
  142. if string.sub(msg, 1, 8) == "protect " then
  143. said = string.lower(string.sub(msg, 9))
  144. look = players:GetChildren()
  145. for i = 1, #look do
  146. if string.find(string.lower(look[i].Name), said) == 1 then
  147. table.insert(protect,look[i].Name)
  148. end
  149. end
  150. end
  151. if string.sub(msg, 1, 10) == "unprotect " then
  152. said = string.lower(string.sub(msg, 11))
  153. look = players:GetChildren()
  154. for i = 1, #look do
  155. for i,v in ipairs(protect) do
  156. count = count + 1
  157. if protect[count] == nil then return end
  158. if string.find(look[i]:lower(),protect[count]:lower()) then
  159. table.remove(protect,protect[count])
  160. else print("Not found")
  161. end
  162. end
  163. end
  164. count = 0
  165. end
  166. if msg == "exitall" then
  167. mo:remove()
  168. script:remove()
  169. end
  170. end
  171. me.Chatted:connect(talk)
  172. ---------------------------------
  173. local x = 6.5
  174. local y = 0
  175. local z = 6.5
  176. while true do
  177. if me.Character.Humanoid.Health == 0 then return end
  178. local clone = players:FindFirstChild(mimic)
  179. if clone == nil then return end
  180. head.CFrame = clone.Character.Head.CFrame + Vector3.new(x,y,z)
  181. torso.CFrame = clone.Character.Torso.CFrame + Vector3.new(x,y,z)
  182. ra.CFrame = clone.Character["Right Arm"].CFrame + Vector3.new(x,y,z)
  183. la.CFrame = clone.Character["Left Arm"].CFrame + Vector3.new(x,y,z)
  184. rl.CFrame = clone.Character["Right Leg"].CFrame + Vector3.new(x,y,z)
  185. ll.CFrame = clone.Character["Left Leg"].CFrame + Vector3.new(x,y,z)
  186. coroutine.wrap(function()
  187. if protectbool == true then
  188.     for a,t in ipairs(protect) do
  189.         if t == nil then return end
  190.         if players:FindFirstChild(t) == nil then return end
  191.         if players[t].Character == nil then return end
  192.         for i,v in pairs(players:GetPlayers()) do
  193.             if (players[t].Character.Torso.Position - v.Character.Torso.Position).magnitude < 10 then
  194.                 if v.Name == t then return end
  195.                 SPL("Bright red", v.Character.Humanoid, head, 1.5)
  196.                 sb("Bright red", v.Character, 1.5)
  197.                 v.Character:BreakJoints()
  198.             end
  199.         end
  200.     end
  201. end
  202. end)()
  203. wait()
  204. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement