Advertisement
subaru112g

roblox's ban hammer script v2

May 2nd, 2018
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.04 KB | None | 0 0
  1. plr = game.Players.LocalPlayer
  2. char = plr.Character
  3.  
  4. -- Music
  5. local music = Instance.new("Sound",char)
  6. music.SoundId = "rbxassetid://1030796589"
  7. music.Volume = 1
  8. music:Play()
  9. music.Looped = true
  10.  
  11. --Remove
  12. for _, child in pairs(char:GetChildren()) do
  13. if child.ClassName == 'CharacterMesh' then
  14. child:Destroy()
  15. end
  16. end
  17. wait(0.1)
  18. local torso = Instance.new("CharacterMesh", game.Workspace)
  19. torso.BodyPart = "Torso"
  20. torso.MeshId = "82907945"
  21. torso.Parent = char
  22.  
  23. local lleg = Instance.new("CharacterMesh", game.Workspace)
  24. lleg.BodyPart = "LeftLeg"
  25. lleg.MeshId = "81487640"
  26. lleg.Parent = char
  27.  
  28. local rleg = Instance.new("CharacterMesh", game.Workspace)
  29. rleg.BodyPart = "RightLeg"
  30. rleg.MeshId = "81487710"
  31. rleg.Parent = char
  32.  
  33. local larm = Instance.new("CharacterMesh", game.Workspace)
  34. larm.BodyPart = "LeftArm"
  35. larm.MeshId = "82907977"
  36. larm.Parent = char
  37.  
  38. local rarm = Instance.new("CharacterMesh", game.Workspace)
  39. rarm.BodyPart = "RightArm"
  40. rarm.MeshId = "82908019"
  41. rarm.Parent = char
  42.  
  43. shirt = char.Shirt
  44. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=607785311"
  45. pants = char.Pants
  46. pants.PantsTemplate = "http://www.roblox.com/asset/?id=348211416"
  47.  
  48. -- Color
  49. local bdycolors = char["Body Colors"]
  50. bdycolors.HeadColor = BrickColor.new("Lily white")
  51. bdycolors.LeftArmColor = BrickColor.new("Lily white")
  52. bdycolors.RightArmColor = BrickColor.new("Lily white")
  53. bdycolors.LeftLegColor = BrickColor.new("Lily white")
  54. bdycolors.RightLegColor = BrickColor.new("Lily white")
  55. bdycolors.TorsoColor = BrickColor.new("Lily white")
  56.  
  57. char.Head.face.Texture = "http://www.roblox.com/asset/?id=288072938"
  58.  
  59.  
  60. local You = "Subaru112" local head = workspace[You].Head:Clone() local model = Instance.new("Model",char) local humanoid = Instance.new("Humanoid",model) head.Parent = model model.Name = "ROBLOX" humanoid.MaxHealth = 0 local w = Instance.new("Weld",model) w.Part0,w.Part1 = workspace[You].Head,head
  61.  
  62. char["Head"].Transparency = 1
  63.  
  64. char.Head.face.Texture = "http://www.roblox.com/asset/?id=0"
  65.  
  66. char.Humanoid.WalkSpeed = 30
  67. char.Humanoid.JumpPower = 50
  68.  
  69. b = Instance.new("Hat")
  70. e = Instance.new("Part")
  71. b.Name = "hammer"
  72. e.Parent = b
  73. e.Position = char.Head.Position
  74. e.Name = "Handle"
  75. e.formFactor = 0
  76. e.Size = Vector3.new(1, 4, 1)
  77. e.BottomSurface = 0
  78. e.TopSurface = 0
  79. e.Locked = true
  80. q = Instance.new("SpecialMesh")
  81. q.Parent= e
  82. q.MeshType = "FileMesh"
  83. q.MeshId = "rbxassetid://10604848"
  84. q.TextureId = "rbxassetid://10605252"
  85. q.Scale = Vector3.new(0.5, 0.5, 0.5)
  86. b.Parent = char
  87. b.AttachmentPos = Vector3.new(0.903, 2.039, -1.26)
  88. b.AttachmentUp = Vector3.new(0.124, 0.851, -0.51)
  89. b.AttachmentRight = Vector3.new(0.073, 0.505, 0.86)
  90. b.AttachmentForward = Vector3.new(0.99, -0.144, 0)
  91.  
  92. a = Instance.new("Hat")
  93. r = Instance.new("Part")
  94. a.Name = "arm"
  95. r.Parent = a
  96. r.Position = char.Head.Position
  97. r.Name = "Handle"
  98. r.formFactor = 0
  99. r.Size = Vector3.new(1, 2, 1)
  100. r.BottomSurface = 0
  101. r.TopSurface = 0
  102. r.Locked = true
  103. r.Transparency = 1
  104. t = Instance.new("SpecialMesh")
  105. t.Parent= r
  106. t.MeshType = "FileMesh"
  107. t.MeshId = "rbxassetid://82907977"
  108. t.TextureId = "rbxassetid://607785311"
  109. t.Scale = Vector3.new(1, 1, 1)
  110. a.Parent = char
  111. a.AttachmentPos = Vector3.new(1.257, -0.169, -1.422)
  112. a.AttachmentUp = Vector3.new(-0, -0, -1)
  113. a.AttachmentRight = Vector3.new(0.594, -0.805, 0)
  114. a.AttachmentForward = Vector3.new(-0.805, -0.594, 0)
  115.  
  116. --Hat Remove
  117. for _, child in pairs(char:GetChildren()) do
  118. if child.ClassName == 'Accessory' then
  119. child:Destroy()
  120. end
  121. end
  122.  
  123. --Instance.new
  124. local Tool = Instance.new("Tool", game.Workspace)
  125. Tool.Name = "banhammer"
  126. local Handle = Instance.new("Part", Tool)
  127. Handle.Name = "Handle"
  128. Handle.Size = Vector3.new(1, 4, 1)
  129. local Mesh = Instance.new("SpecialMesh", Handle)
  130. Mesh.MeshType = "FileMesh"
  131. Mesh.MeshId = "http://www.roblox.com/asset/?id=10604848"
  132. Mesh.Scale = Vector3.new(0.5, 0.5, 0.5)
  133. Mesh.TextureId = "http://www.roblox.com/asset/?id=10605252"
  134. Tool.GripPos = Vector3.new(0, -1.173, 0)
  135. Tool.Parent = plr.Backpack
  136. --Sound
  137. local what = Instance.new("Sound", Handle)
  138. local ban = Instance.new("Sound", Handle)
  139. local alarm = Instance.new("Sound", Handle)
  140. what.SoundId = "rbxassetid://948494432"
  141. ban.SoundId = "rbxassetid://147722910"
  142. alarm.SoundId = "rbxassetid://176820116"
  143. --i have a Head
  144. Tool.Equipped:connect(function()
  145. what:Play()
  146. char.hammer.Handle.Transparency = 1
  147. char.arm.Handle.Transparency = 0
  148. char["Left Arm"].Transparency = 1
  149. end)
  150.  
  151. Tool.Unequipped:connect(function()
  152. char.hammer.Handle.Transparency = 0
  153. char.arm.Handle.Transparency = 1
  154. char["Left Arm"].Transparency = 0
  155. end)
  156.  
  157. Tool.Activated:connect(function()
  158. alarm:Play()
  159. function onTouched(brick)
  160. local humn = brick.Parent:FindFirstChildOfClass("Humanoid")
  161. if humn then
  162. for i,v in pairs(humn.Parent:GetChildren()) do
  163. if v.ClassName == "Part" then
  164. humn:Destroy()
  165. v:Destroy()
  166. ban:Play()
  167. end
  168. end
  169. end
  170. end
  171. char.banhammer.Handle.Touched:connect(onTouched)
  172. end)
  173.  
  174. Tool.Activated:connect(function()
  175. alarm:Play()
  176. function onTouched(brick)
  177. local humn = brick.Parent:FindFirstChildOfClass("MeshPart")
  178. if humn then
  179. for i,v in pairs(humn.Parent:GetChildren()) do
  180. if v.ClassName == "MeshPart" then
  181. v:Destroy()
  182. end
  183. end
  184. end
  185. end
  186. char.banhammer.Handle.Touched:connect(onTouched)
  187. end)
  188.  
  189.  
  190. h = Instance.new("Hat")
  191. p = Instance.new("Part")
  192. h.Name = "Hat"
  193. p.Parent = h
  194. p.Position = char.Head.Position
  195. p.Name = "Handle"
  196. p.formFactor = 0
  197. p.Size = Vector3.new(1.2, 0.8, 1.4)
  198. p.BottomSurface = 0
  199. p.TopSurface = 0
  200. p.Locked = true
  201. m = Instance.new("SpecialMesh")
  202. m.Parent= p
  203. m.MeshType = "FileMesh"
  204. m.MeshId = "http://www.roblox.com/asset?id=71483350"
  205. m.TextureId = "http://www.roblox.com/asset/?id=607698990"
  206. m.Scale = Vector3.new(0.66, 0.66, 0.66)
  207. h.Parent = char
  208. h.AttachmentPos = Vector3.new(0, -0.075, 0.2)
  209. h.AttachmentUp = Vector3.new(0, 1, 0)
  210. h.AttachmentRight = Vector3.new(1, 0, 0)
  211. h.AttachmentForward = Vector3.new(0, 0, -1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement