Advertisement
Aliph6

Kawaii Ban Hammer

Apr 25th, 2018
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.38 KB | None | 0 0
  1. -- By Theamazingnater
  2. char = game.Players.LocalPlayer.Character
  3. local music = Instance.new("Sound",char)
  4. music.Volume = 1
  5. music.SoundId = "rbxassetid://952068290"
  6. music.Looped = true
  7. music:Play()
  8. local ban = Instance.new("Sound",char.Torso)
  9. ban.SoundId = "rbxassetid://147722910"
  10. ban.Volume = 10
  11. local banh = Instance.new("Part",char)
  12. banh.Name = "BAN!"
  13. banh.Size = Vector3.new(1, 5.2, 1)
  14. banh.CanCollide = false
  15. local banm = Instance.new("FileMesh",banh)
  16. banm.MeshId = "http://www.roblox.com/asset/?id=10604848"
  17. banm.TextureId = "http://www.roblox.com/asset/?id=10605252"
  18. banm.Scale = Vector3.new(0.5,0.5,0.5)
  19. local weld = Instance.new("Weld",banh)
  20. weld.Part0 = banh
  21. weld.Part1 = char["Right Arm"]
  22. weld.C0 = CFrame.new(0.0185670853, -1.69550169, -1.06726038, -0.997520506, 0.00503299711, 0.0701959729, -0.0702080429, -0.00226099929, -0.997529864, -0.00486185262, -0.999984622, 0.00260874978)
  23. mouse = game.Players.LocalPlayer:GetMouse()
  24. local llegclone = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
  25. game.Players.LocalPlayer.Character.Torso["Left Hip"]:Remove()
  26. local llegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  27. llegweld.Part0 = game.Players.LocalPlayer.Character.Torso
  28. llegweld.Part1 = game.Players.LocalPlayer.Character["Left Leg"]
  29. llegweld.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) * CFrame.new(0,-1,0)
  30. local rlegclone = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
  31. game.Players.LocalPlayer.Character.Torso["Right Hip"]:Remove()
  32. local rlegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  33. rlegweld.Part0 = game.Players.LocalPlayer.Character.Torso
  34. rlegweld.Part1 = game.Players.LocalPlayer.Character["Right Leg"]
  35. rlegweld.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) * CFrame.new(0,-1,0)
  36. local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  37. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  38. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  39. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  40. rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  41. local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  42. local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  43. lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  44. lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  45. lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  46. local rootjointclone = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  47. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Remove()
  48. local humanoidrootpart = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  49. humanoidrootpart.Part0 = game.Players.LocalPlayer.Character.HumanoidRootPart
  50. humanoidrootpart.Part1 = game.Players.LocalPlayer.Character.Torso
  51. local heed = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
  52. local headweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  53. headweld.Part0 = game.Players.LocalPlayer.Character.Torso
  54. headweld.Part1 = game.Players.LocalPlayer.Character.Head
  55. headweld.C0 = headweld.C0 * CFrame.new(0,1.5,0)
  56. using = false
  57. cananimate = true
  58. for i = 0,1 , 0.03 do
  59. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.53559077, 0.0383267403, 0, 0.997264206, 0.0739177391, 0, -0.0739177391, 0.997264266, 0, 2.98023224e-08, 1.86264515e-09, 0.999999881),i)
  60. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.398939848, -0.585105896, 1.00000012, 3.85171006e-10, 1.11758709e-08, 9.31322042e-09, -0.0281364974, -0.99960357, -1.16415322e-10, 0.999603391, -0.0281365328),i)
  61. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.75279808, -1.92294025, 0, 0.985477746, 0.16980496, 0, -0.16980496, 0.985477746, 0, 0, 0, 1),i)
  62. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.696445823, -1.93322277, 0, 0.946795106, -0.321837038, 0, 0.321837038, 0.946795106, 0, 0, 0, 1),i)
  63. game:GetService("RunService").RenderStepped:wait()
  64. end
  65. function Ban(dude)
  66. local display = dude:FindFirstChild("Head"):Clone()
  67. display.Parent = workspace
  68. display.Transparency = 1
  69. display:FindFirstChildOfClass("Decal"):Destroy()
  70. display.Anchored = true
  71. display.CanCollide = false
  72. local txt = Instance.new("BillboardGui", display)
  73. txt.Adornee = display
  74. txt.Name = "Nametag"
  75. txt.Size = UDim2.new(2, 0, 1.2, 0)
  76. txt.StudsOffset = Vector3.new(-9, 6, 0)
  77. local text = Instance.new("TextLabel", txt)
  78. text.Size = UDim2.new(10, 0, 7, 0)
  79. text.TextSize = 30
  80. text.Font = Enum.Font.Arcade
  81. text.TextScaled = false
  82. text.BackgroundTransparency = 1
  83. text.TextColor3 = BrickColor.new("Really blue").Color
  84. text.TextStrokeTransparency = 0
  85. text.TextStrokeColor3 = Color3.new(0,0,0)
  86. text.Text = "Banned!"
  87. game:GetService("Debris"):AddItem(display,2)
  88. dude:Destroy()
  89. end
  90.  
  91. function swing()
  92. if not using then
  93. using = true
  94. cananimate = false
  95. for i = 0,1 , 0.045 do
  96. weld.C0 = weld.C0:lerp(CFrame.new(0.152735472, -1.66358948, -1.08551645, -0.0427260287, 0.00281231292, 0.999082863, -0.999074996, 0.00474835932, -0.0427390598, -0.00486420048, -0.999984741, 0.00260683335),i)
  97. headweld.C0 = headweld.C0:lerp(CFrame.new(-4.65661287e-10, 1.49999952, 0, 0.601507425, -2.32830644e-10, 0.798867226, 3.0559022e-10, 1, 0, -0.798867226, -4.65661287e-10, 0.601507425),i)
  98. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.63088727, -0.00573391188, -0.775853336, 0, 0.999972701, -0.00739025697, 0.775874496, 0.00466241874, 0.630870044),i)
  99. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(0.0363237262, 0.350219727, -1.1563791, 0.495106995, -0.857149601, 0.1419992, 0.110766649, -0.0998312235, -0.988819599, 0.861742377, 0.505300522, 0.0455164276),i)
  100. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.50056481, 0.516354084, -0.499166548, 0.995925009, -0.00520473719, 0.09003409, 0.0901844054, 0.0574772507, -0.994265079, -2.98023224e-08, 0.998333335, 0.057712432),i)
  101. game:GetService("RunService").RenderStepped:wait()
  102. end
  103. local hitbox = Instance.new("Part",banh)
  104. hitbox.Name = "HurtBox"
  105. hitbox.Size = Vector3.new(2.09, 3.4, 1.8)
  106. hitbox.Transparency = 1
  107. local hitboxwe = Instance.new("Weld",hitbox)
  108. hitboxwe.Part0 = hitbox
  109. hitboxwe.Part1 = banh
  110. hitboxwe.C0 = CFrame.new(0.230496407, 0.228847623, 1.76342273, -0.997520506, -0.0702080652, -0.00486185262, 0.00503299385, -0.00226099882, -0.999983966, 0.070195958, -0.997529984, 0.00260874908)
  111. function getbanned(part)
  112. local human = part.Parent:FindFirstChildOfClass("Humanoid")
  113. if human then
  114. ban:Play()
  115. Ban(human.Parent)
  116. end
  117. end
  118. hitbox.Touched:connect(getbanned)
  119. for i = 0,1 , 0.08 do
  120. headweld.C0 = headweld.C0:lerp(CFrame.new(-0.0249017328, 1.48724031, 2.04332173e-06, 0.499998868, 0, -0.866026163, 0, 1, 0, 0.866026163, 0, 0.499998868),i)
  121. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.305942208, 0, -0.952050149, 0, 1, 0, 0.952050149, 0, 0.305942208):inverse(),i)
  122. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.07653618, 0.305679321, -0.818206966, 0.707105398, -0.707108259, 4.32133675e-07, 0.122787982, 0.122786887, -0.984807909, 0.696365714, 0.696363032, 0.173647687),i)
  123. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.74788636, 0.363031864, -0.7663396, 0.70710665, 0.707106948, -2.23517418e-08, -0.0616280138, 0.061627958, -0.99619478, -0.704416275, 0.704416037, 0.0871551335),i)
  124. game:GetService("RunService").RenderStepped:wait()
  125. end
  126. using = false
  127. cananimate = true
  128. hitbox:Destroy()
  129. weld.C0 = CFrame.new(0.0185670853, -1.69550169, -1.06726038, -0.997520506, 0.00503299711, 0.0701959729, -0.0702080429, -0.00226099929, -0.997529864, -0.00486185262, -0.999984622, 0.00260874978)
  130. end
  131. end
  132. mouse.Button1Down:connect(swing)
  133.  
  134. while true do
  135. if cananimate then
  136. --Walking animation
  137. if game.Players.LocalPlayer.Character.Torso.Velocity.x < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x > 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > 0.5 and cananimate then
  138. for i = 0.1,0.3 , 0.008 do
  139. if cananimate and game.Players.LocalPlayer.Character.Torso.Velocity.x < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x > 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > 0.5 and cananimate then
  140. headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
  141. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
  142. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.53402293, 0.0594797134, 0.144087285, 0.997264206, 0.0707819909, 0.0213012099, -0.0739177391, 0.9549582, 0.287386209, 2.98023224e-08, -0.28817457, 0.957577825),i)
  143. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.54035091, 0.0769848824, -0.170524538, 0.99592495, -0.0847774297, 0.0307573378, 0.090184398, 0.936214805, -0.339659303, 0, 0.341049016, 0.940045416),i)
  144. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.67391682, -0.738807678, 0.99999994, 0, 0, 0, 0.673916757, -0.738807261, 0, 0.738807321, 0.673916817),i)
  145. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.67705727, 0.735931396, 1, 0, 0, 0, 0.677056909, 0.735930681, 0, -0.735930741, 0.677056968),i)
  146. game:GetService("RunService").Stepped:wait()
  147. end
  148. end
  149. for i = 0.1,0.3 , 0.008 do
  150. if cananimate and game.Players.LocalPlayer.Character.Torso.Velocity.x < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x > 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > 0.5 and cananimate then
  151. headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
  152. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
  153. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.69855976, 0.715551376, 1, 0, 0, 0, 0.698559642, 0.715551734, 0, -0.715551794, 0.698559701),i)
  154. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.80723953, -0.590223312, 1, 0, 0, 0, 0.807239354, -0.590224087, 0, 0.590224147, 0.807239413),i)
  155. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.53173375, 0.0903658867, -0.222393572, 0.997264206, 0.0662034005, -0.0328776538, -0.0739177391, 0.893185973, -0.443570435, 2.98023224e-08, 0.444787204, 0.895636141),i)
  156. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.54079688, 0.0720610619, 0.156226337, 0.99592495, -0.085669145, -0.0281783342, 0.090184398, 0.946062148, 0.311179608, 0, -0.312452823, 0.949932992),i)
  157. game:GetService("RunService").Stepped:wait()
  158. end
  159. end
  160. -- Idle animation
  161. elseif game.Players.LocalPlayer.Character.Torso.Velocity.x > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x < 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < 0.5 then
  162. for i = 0,1 , 0.1 do
  163. if cananimate and game.Players.LocalPlayer.Character.Torso.Velocity.x > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x < 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < 0.5 and cananimate then
  164. headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
  165. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),i)
  166. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.53559077, 0.0383267403, 0, 0.997264206, 0.0739177391, 0, -0.0739177391, 0.997264266, 0, 2.98023224e-08, 1.86264515e-09, 0.999999881),i)
  167. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.398939848, -0.585105896, 1.00000012, 3.85171006e-10, 1.11758709e-08, 9.31322042e-09, -0.0281364974, -0.99960357, -1.16415322e-10, 0.999603391, -0.0281365328),i)
  168. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.75279808, -1.92294025, 0, 0.985477746, 0.16980496, 0, -0.16980496, 0.985477746, 0, 0, 0, 1),i)
  169. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.696445823, -1.93322277, 0, 0.946795106, -0.321837038, 0, 0.321837038, 0.946795106, 0, 0, 0, 1),i)
  170. game:GetService("RunService").RenderStepped:wait()
  171. end
  172. end
  173. end
  174. end
  175. wait()
  176. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement