SHOW:
|
|
- or go back to the newest paste.
| 1 | - | local player = game.Players.LocalPlayer |
| 1 | + | local player = owner |
| 2 | local char = player.Character | |
| 3 | local invisible = false | |
| 4 | local invisiblehammer = false | |
| 5 | ||
| 6 | local tool = Instance.new("Tool",workspace)
| |
| 7 | tool.TextureId = "http://www.roblox.com/asset/?id=10684453" | |
| 8 | tool.Enabled = true | |
| 9 | tool.Name = "BanHammer" | |
| 10 | local thma = Instance.new("Camera",tool)
| |
| 11 | thma.Name = "ThumbnailCamera" | |
| 12 | local smack = Instance.new("Sound",tool)
| |
| 13 | smack.Name = "Smash" | |
| 14 | smack.Volume = 1 | |
| 15 | smack.SoundId = "rbxassetid://147722910" -- rbxassetid://147722910 rbxassetid://514867425 | |
| 16 | local handle = Instance.new("Part",tool)
| |
| 17 | handle.Name = "Handle" | |
| 18 | handle.Size = Vector3.new(1, 5.2, 1) | |
| 19 | handle.Anchored = true | |
| 20 | handle.Position = Vector3.new(0,6,0) | |
| 21 | local txtfag = Instance.new("BillboardGui",handle)
| |
| 22 | txtfag.Name = "BanHammerLabel" | |
| 23 | txtfag.Size = UDim2.new(2, 0, 1.2, 0) | |
| 24 | txtfag.StudsOffset = Vector3.new(-5, 3, 0) | |
| 25 | txtfag.Enabled = false | |
| 26 | local textfag = Instance.new("TextLabel", txtfag)
| |
| 27 | textfag.Size = UDim2.new(6, 0, 1, 0) | |
| 28 | textfag.FontSize = "Size8" | |
| 29 | textfag.TextScaled = true | |
| 30 | textfag.TextTransparency = 0 | |
| 31 | textfag.BackgroundTransparency = 1 | |
| 32 | textfag.TextTransparency = 0 | |
| 33 | textfag.TextStrokeTransparency = 0 | |
| 34 | textfag.Font = Enum.Font.Highway | |
| 35 | textfag.Text = "The Ban Hammer" | |
| 36 | textfag.TextStrokeColor3 = Color3.new(0.55, 0.9, 0.16) | |
| 37 | local sparkles = Instance.new("Sparkles",handle)
| |
| 38 | sparkles.SparkleColor = Color3.new(0,0,0) | |
| 39 | sparkles.Enabled = true | |
| 40 | local mesh = Instance.new("SpecialMesh",handle)
| |
| 41 | mesh.Name = "Mesh" | |
| 42 | mesh.MeshType = Enum.MeshType.FileMesh | |
| 43 | mesh.MeshId = "http://www.roblox.com/asset/?id=10604848" | |
| 44 | mesh.TextureId = "http://www.roblox.com/asset/?id=10605252" | |
| 45 | mesh.Scale = Vector3.new(0.5,0.5,0.5) | |
| 46 | mesh.Offset = Vector3.new(0,0,0) | |
| 47 | mesh.VertexColor = Vector3.new(1,1,1) | |
| 48 | script.Parent = tool | |
| 49 | local animation = Instance.new("Animation",tool)
| |
| 50 | animation.Name = "Animation" | |
| 51 | animation.AnimationId = "http://www.roblox.com/twohandswordwithswingout-item?id=32659706" | |
| 52 | --Impletion [awful coding i know] | |
| 53 | wait() | |
| 54 | explode=false | |
| 55 | soundlock=false | |
| 56 | lock=false | |
| 57 | script.Parent.Activated:connect(function(click) | |
| 58 | if lock==false then | |
| 59 | lock=true | |
| 60 | local char=script.Parent.Parent | |
| 61 | local anim=char.Humanoid:LoadAnimation(script.Parent.Animation) | |
| 62 | anim:Play() | |
| 63 | wait(1.4) | |
| 64 | lock=false | |
| 65 | end | |
| 66 | end) | |
| 67 | ||
| 68 | script.Parent.Handle.Touched:connect(function(hit) | |
| 69 | if tool.Parent.ClassName=="Model"then | |
| 70 | if hit.Parent:FindFirstChild("BanHammer")==nil then
| |
| 71 | hit.Parent.Head.face.Texture = "http://www.roblox.com/asset/?id=432180642" | |
| 72 | local gethum=hit.Parent:GetChildren() | |
| 73 | for i=1,#gethum do | |
| 74 | if gethum[i].ClassName=="Humanoid" and gethum[i] ~= nil and hit.Parent.Name ~= tool.Parent.Name and lock==true then | |
| 75 | local hum=gethum[i] | |
| 76 | hum.Sit=true | |
| 77 | if soundlock==false then | |
| 78 | soundlock=true | |
| 79 | script.Parent.Smash:Play() | |
| 80 | end | |
| 81 | local character=hit.Parent | |
| 82 | local b=character:GetChildren() | |
| 83 | for i=1,#b do | |
| 84 | if b[i]:IsA("Part") and b[i] ~= nil then
| |
| 85 | b[i].CanCollide=false | |
| 86 | b[i].Anchored=false | |
| 87 | end | |
| 88 | end | |
| 89 | local HumanoidRootPart=hit.Parent:findFirstChild("HumanoidRootPart")
| |
| 90 | character.HumanoidRootPart.Velocity=tool.Parent.HumanoidRootPart.CFrame.lookVector * 1200 | |
| 91 | character.HumanoidRootPart.Velocity=character.HumanoidRootPart.Velocity + Vector3.new(0,300,0) | |
| 92 | wait(1.8) | |
| 93 | if explode==false then | |
| 94 | explode=true | |
| 95 | local expl=Instance.new("Explosion", workspace)
| |
| 96 | expl.BlastPressure=900 | |
| 97 | expl.BlastRadius=1 | |
| 98 | expl.Position=HumanoidRootPart.Position | |
| 99 | for _,xccrptparts in pairs(character:GetChildren())do | |
| 100 | if xccrptparts.ClassName=="Part"then | |
| 101 | xccrptparts.Transparency = 0 | |
| 102 | xccrptparts.Anchored = false | |
| 103 | end | |
| 104 | if xccrptparts.ClassName=="MeshPart"then | |
| 105 | xccrptparts.Transparency = 0 | |
| 106 | xccrptparts.Anchored = false | |
| 107 | end | |
| 108 | end | |
| 109 | HumanoidRootPart.Transparency = 1 | |
| 110 | local p=game.Players:GetPlayerFromCharacter(character) | |
| 111 | character.Humanoid:Destroy() | |
| 112 | end | |
| 113 | end | |
| 114 | end | |
| 115 | wait(1) | |
| 116 | soundlock=false | |
| 117 | explode=false | |
| 118 | end | |
| 119 | else | |
| 120 | if invisible==true then | |
| 121 | hit.Parent.Animate.walk.WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=252557606" | |
| 122 | local invisibility = coroutine.wrap(function() | |
| 123 | for _,en in pairs(hit.Parent:GetChildren())do | |
| 124 | if en.ClassName=="Part"then | |
| 125 | local turninv = coroutine.wrap(function(part) | |
| 126 | for count = 1,10 do | |
| 127 | part.Transparency = part.Transparency + 0.1 | |
| 128 | wait(.1) | |
| 129 | end | |
| 130 | end) | |
| 131 | turninv(en) | |
| 132 | end | |
| 133 | if en.ClassName=="MeshPart"then | |
| 134 | local turninv = coroutine.wrap(function(part) | |
| 135 | for count = 1,10 do | |
| 136 | part.Transparency = part.Transparency + 0.1 | |
| 137 | wait(.1) | |
| 138 | end | |
| 139 | end) | |
| 140 | turninv(en) | |
| 141 | end | |
| 142 | if en.ClassName=="Hat"then | |
| 143 | local turninv = coroutine.wrap(function(part) | |
| 144 | for count = 1,10 do | |
| 145 | part.Transparency = part.Transparency + 0.1 | |
| 146 | wait(.1) | |
| 147 | end | |
| 148 | end) | |
| 149 | turninv(en.Handle) | |
| 150 | end | |
| 151 | if en.ClassName=="Accessory"then | |
| 152 | local turninv = coroutine.wrap(function(part) | |
| 153 | for count = 1,10 do | |
| 154 | part.Transparency = part.Transparency + 0.1 | |
| 155 | wait(.1) | |
| 156 | end | |
| 157 | end) | |
| 158 | turninv(en.Handle) | |
| 159 | end | |
| 160 | end | |
| 161 | for count = 1,10 do | |
| 162 | hit.Parent.Head.face.Transparency = hit.Parent.Head.face.Transparency + 0.1 | |
| 163 | if invisiblehammer == true then | |
| 164 | handle.Transparency = handle.Transparency + 0.1 | |
| 165 | end | |
| 166 | textfag.TextTransparency = textfag.TextTransparency + 0.1 | |
| 167 | textfag.TextStrokeTransparency = textfag.TextStrokeTransparency + 0.1 | |
| 168 | sparkles.Enabled = false | |
| 169 | wait(.1) | |
| 170 | end | |
| 171 | end) | |
| 172 | invisibility() | |
| 173 | hit.Parent:WaitForChild("Humanoid").HealthDisplayDistance = 0
| |
| 174 | hit.Parent:WaitForChild("Humanoid").NameDisplayDistance = 0
| |
| 175 | end | |
| 176 | end | |
| 177 | end) | |
| 178 | ||
| 179 | using = false | |
| 180 | ||
| 181 | script.Parent.Equipped:connect(function(equip) | |
| 182 | wait(.1) | |
| 183 | tool.Parent.Humanoid.MaxHealth=math.huge*math.huge | |
| 184 | tool.Parent.Humanoid.Health=math.huge*math.huge | |
| 185 | tool.Parent.Humanoid.WalkSpeed=100 | |
| 186 | using = true | |
| 187 | end) | |
| 188 | ||
| 189 | script.Parent.Unequipped:connect(function(equip) | |
| 190 | if not tool.Parent:FindFirstChild("Humanoid")~=nil then
| |
| 191 | if not tool.Parent.Humanoid.Health==0 then | |
| 192 | wait(.1) | |
| 193 | tool.Parent.Parent.Character.Humanoid.MaxHealth=100 | |
| 194 | tool.Parent.Parent.Character.Humanoid.Health=100 | |
| 195 | tool.Parent.Parent.Character.Humanoid.WalkSpeed=16 | |
| 196 | sparkles.SparkleColor = Color3.new(0,0,0) | |
| 197 | using = false | |
| 198 | end | |
| 199 | end | |
| 200 | end) | |
| 201 | ||
| 202 | local depth = 1 | |
| 203 | local speed = 50 | |
| 204 | local itsalive = Instance.new("Sound",tool)
| |
| 205 | itsalive.Name = "NotEquippedMusic" | |
| 206 | itsalive.SoundId = "rbxassetid://149119648" | |
| 207 | itsalive.Volume = 8.75 | |
| 208 | itsalive.Looped = true | |
| 209 | function alive() | |
| 210 | for i = 1, speed do wait() | |
| 211 | handle.CFrame = handle.CFrame * CFrame.new(0,-depth/speed,0) | |
| 212 | end | |
| 213 | for i = 1, speed do wait() | |
| 214 | handle.CFrame = handle.CFrame * CFrame.new(0,depth/speed,0) | |
| 215 | end | |
| 216 | end | |
| 217 | ||
| 218 | print("Ban hammer Created!")
| |
| 219 | ||
| 220 | while true do | |
| 221 | if using==true then | |
| 222 | txtfag.Enabled = false | |
| 223 | handle.Anchored = false | |
| 224 | itsalive:Stop() | |
| 225 | sparkles.SparkleColor = BrickColor.Random().Color | |
| 226 | if tool.Parent:FindFirstChild("Humanoid")~=nil then
| |
| 227 | tool.Parent = workspace | |
| 228 | handle.Position = handle.Position + Vector3.new(0,3,0) | |
| 229 | using=false | |
| 230 | end | |
| 231 | if tool.Parent:WaitForChild("Humanoid").Health==0 then
| |
| 232 | tool.Parent = workspace | |
| 233 | handle.Position = handle.Position + Vector3.new(0,3,0) | |
| 234 | using=false | |
| 235 | end | |
| 236 | wait(.5) | |
| 237 | else | |
| 238 | txtfag.Enabled = true | |
| 239 | handle.Anchored = true | |
| 240 | itsalive:Play() | |
| 241 | repeat | |
| 242 | sparkles.SparkleColor = Color3.new(0,0,0) | |
| 243 | alive() | |
| 244 | until using==true | |
| 245 | end | |
| 246 | end |