SHOW:
|
|
- or go back to the newest paste.
| 1 | - | --Ban hammer script by basstracker1970 |
| 1 | + | f--Ban hammer script by basstracker1970 |
| 2 | - | print("BAN!")
|
| 2 | + | Local print("BAN!")
|
| 3 | Humanoid = game.Players.LocalPlayer.Character.Humanoid | |
| 4 | Player = game.Players.LocalPlayer | |
| 5 | tool = Instance.new("Tool")
| |
| 6 | tool.Name = "BAN!" | |
| 7 | tool.Parent = game.Players.LocalPlayer.Backpack | |
| 8 | handle = Instance.new("Part")
| |
| 9 | handle.Name = "Handle" | |
| 10 | handle.Parent = tool | |
| 11 | Animation = Instance.new("Animation")
| |
| 12 | Animation.AnimationId = "rbxassetid://32659706" | |
| 13 | Animation.Name = "AnAnimation" | |
| 14 | Animation.Parent = tool | |
| 15 | mesh = Instance.new("SpecialMesh")
| |
| 16 | mesh.Scale = Vector3.new(0.5, 0.5, 0.5) | |
| 17 | mesh.MeshId = "rbxassetid://10604848" | |
| 18 | mesh.TextureId = "rbxassetid://10605252" | |
| 19 | mesh.Parent = handle | |
| 20 | Humanoid.WalkSpeed = 80 | |
| 21 | tool.Equipped:connect(function() | |
| 22 | ban = Instance.new("Sound")
| |
| 23 | ban.SoundId = "rbxassetid://147722910" | |
| 24 | ban.Parent = handle | |
| 25 | ban:Play() | |
| 26 | tool.Activated:connect(function() | |
| 27 | ban2 = Instance.new("Sound")
| |
| 28 | ban2.SoundId = "rbxassetid://147722910" | |
| 29 | ban2.Parent = handle | |
| 30 | ban2:Play() | |
| 31 | local animtrack = Player.Character.Humanoid:LoadAnimation(Animation) | |
| 32 | animtrack:Play() | |
| 33 | handle.Touched:connect(function(ban3) | |
| 34 | function onTouched (hit) | |
| 35 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 36 | local humanoid = hit.Parent:WaitForChild("Humanoid")
| |
| 37 | local playername = hit.Parent.Name | |
| 38 | local player = game.Players:FindFirstChild(playername) | |
| 39 | player:Kick("Banned by Ban Hammer!")
| |
| 40 | print("The ban hammer has Banned"..playername)
| |
| 41 | end | |
| 42 | ||
| 43 | end | |
| 44 | script.Parent.Touched:connect(onTouched) | |
| 45 | ban3:Remove() | |
| 46 | end) | |
| 47 | end) | |
| 48 | end) |