SHOW:
|
|
- or go back to the newest paste.
| 1 | Tool = Instance.new("Tool")
| |
| 2 | Tool.Name = "Gun" | |
| 3 | Gun = Instance.new("Part")
| |
| 4 | Gun.Name = "Handle" | |
| 5 | Gun.Parent = Tool | |
| 6 | Gun2 = Instance.new("Part")
| |
| 7 | - | Gun.Size = Vector3.new(0.82325, 2.1545, 6.25) |
| 7 | + | Gun2.Parent = Gun |
| 8 | Gun3 = Instance.new("Part")
| |
| 9 | - | Gun.CanCollide = true |
| 9 | + | Gun3.Parent = Gun |
| 10 | Gun4 = Instance.new("Part")
| |
| 11 | - | Pow.SoundId = "rbxassetid://5339941902" |
| 11 | + | Gun4.Parent = Gun |
| 12 | Gun3.Shape = Enum.PartType.Cylinder | |
| 13 | Tool.Parent = owner.Character | |
| 14 | - | Mesh = Instance.new("SpecialMesh")
|
| 14 | + | Gun.Size = Vector3.new(0.7,0.7,0.7) |
| 15 | - | Mesh.Parent = Gun |
| 15 | + | |
| 16 | - | Mesh.MeshId = "http://www.roblox.com/asset/?id=868963093" |
| 16 | + | Gun4.Massless = true |
| 17 | - | Mesh.TextureId = "http://www.roblox.com/asset/?id=868963099" |
| 17 | + | Gun.Color = Color3.fromRGB(14, 143, 23) |
| 18 | - | Mesh.Scale = Vector3.new(0.01, 0.01, 0.01) |
| 18 | + | Gun2.Size = Vector3.new(0.7,0.7,0.7) |
| 19 | Gun2.Massless = true | |
| 20 | - | owner = nil |
| 20 | + | Gun2.CanCollide = false |
| 21 | - | local E = Instance.new("RemoteEvent",Tool.Parent)
|
| 21 | + | Gun2.Massless = true |
| 22 | - | local gunlocal = [[ |
| 22 | + | Gun3.Size = Vector3.new(0.7,0.5,0.7) |
| 23 | - | Tool = owner.Character:WaitForChild("Gun")
|
| 23 | + | Gun3.Massless = true |
| 24 | - | local E = Tool.Parent:FindFirstChildWhichIsA("RemoteEvent")
|
| 24 | + | Gun3.CanCollide = false |
| 25 | Gun3.Massless = true | |
| 26 | Gun2.Color = Gun.Color | |
| 27 | - | if Mouse.Target ~= nil then |
| 27 | + | Gun3.Color = Gun.Color |
| 28 | - | E:FireServer("Down",Mouse.Target)
|
| 28 | + | Gun3.Material = Enum.Material.SmoothPlastic |
| 29 | Gun4.Size = Vector3.new(0.25,4,0.25) | |
| 30 | Gun4.Massless = true | |
| 31 | Gun4.CanCollide = false | |
| 32 | - | ]] |
| 32 | + | Gun4.Massless = true |
| 33 | Gun4.Color = Color3.fromRGB(133, 56, 8) | |
| 34 | - | pcall(function() |
| 34 | + | Gun4.Material = Enum.Material.SmoothPlastic |
| 35 | local weld = Instance.new("Weld", Gun)
| |
| 36 | - | if game:GetService("Players"):GetPlayerFromCharacter(Tool.Parent) ~= owner then
|
| 36 | + | weld.Part0 = Gun2 |
| 37 | - | owner = game:GetService("Players"):GetPlayerFromCharacter(Tool.Parent)
|
| 37 | + | weld.Part1 = Gun |
| 38 | - | NLS(gunlocal,owner.PlayerGui) |
| 38 | + | weld.C0 = CFrame.new(0, -0.7, 0) * CFrame.Angles(math.rad(180),0,0) |
| 39 | local weld2 = Instance.new("Weld", Gun)
| |
| 40 | weld2.Part0 = Gun3 | |
| 41 | weld2.Part1 = Gun | |
| 42 | weld2.C0 = CFrame.new(-0.75, 0, 0) * CFrame.Angles(0,0,math.rad(90)) | |
| 43 | local weld3 = Instance.new("Weld", Gun)
| |
| 44 | weld3.Part0 = Gun4 | |
| 45 | weld3.Part1 = Gun | |
| 46 | weld3.C0 = CFrame.new(0, 2.75, 0) | |
| 47 | local Pow = Instance.new("Sound", owner.character.Head)
| |
| 48 | Pow.SoundId = "rbxassetid://12222084" | |
| 49 | Pow.Volume = 1 | |
| 50 | islunging = false | |
| 51 | toolout = false | |
| 52 | local mesh = Instance.new("SpecialMesh", Gun)
| |
| 53 | mesh.MeshId = "http://www.roblox.com/asset/?id=6622587136" | |
| 54 | mesh.Scale = Vector3.new(0.35,0.35,0.35) | |
| 55 | local mesh2 = Instance.new("SpecialMesh", Gun2)
| |
| 56 | - | function thinghere(plr,action,part) |
| 56 | + | mesh2.MeshId = "http://www.roblox.com/asset/?id=6622587136" |
| 57 | mesh2.Scale = Vector3.new(0.35,0.35,0.35) | |
| 58 | - | if part.Name ~= "Base" then |
| 58 | + | |
| 59 | - | part:Destroy() |
| 59 | + | |
| 60 | end) | |
| 61 | ||
| 62 | Tool.Unequipped:Connect(function() | |
| 63 | toolout = false | |
| 64 | end) | |
| 65 | - | Tool.Grip = CFrame.Angles(0,math.rad(90),0) |
| 65 | + | |
| 66 | - | Tool.GripPos = Vector3.new(1,0,0) |
| 66 | + | |
| 67 | islunging = true | |
| 68 | Pow:Play() | |
| 69 | wait(0.65) | |
| 70 | islunging = false | |
| 71 | end) | |
| 72 | ||
| 73 | local isTouched = false | |
| 74 | ||
| 75 | function thinghere(plr,action,hit) | |
| 76 | if islunging then | |
| 77 | local explosion = Instance.new("Explosion")
| |
| 78 | explosion.BlastRadius = 17.5 | |
| 79 | explosion.ExplosionType = Enum.ExplosionType.Craters | |
| 80 | explosion.Position = hit.Position | |
| 81 | explosion.Parent = game.Workspace | |
| 82 | explosion.Visible = false | |
| 83 | for i = 1, 10 do | |
| 84 | wait(0.0885) | |
| 85 | local part1 = Instance.new("Part", script)
| |
| 86 | part1.Size = Vector3.new(17.5, 17.5, 17.5) | |
| 87 | part1.Position = hit.Position | |
| 88 | part1.CanCollide = false | |
| 89 | part1.Anchored = true | |
| 90 | part1.CFrame = part1.CFrame * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
| 91 | part1.Material = "Neon" | |
| 92 | part1.BrickColor = BrickColor.new("New Yeller")
| |
| 93 | part1.Transparency = 0.5 | |
| 94 | game:GetService("Debris"):AddItem(part1,0.15)
| |
| 95 | end | |
| 96 | end | |
| 97 | end | |
| 98 | ||
| 99 | ||
| 100 | local E = Instance.new("RemoteEvent",NLS([[local E = script:FindFirstChildWhichIsA("RemoteEvent")
| |
| 101 | local Mouse = owner:GetMouse() | |
| 102 | function ButtonDown() | |
| 103 | if Mouse.Hit ~= nil then | |
| 104 | E:FireServer("Down",Mouse.Hit)
| |
| 105 | end | |
| 106 | end | |
| 107 | Mouse.Button1Down:Connect(ButtonDown) | |
| 108 | ]],owner.PlayerGui)) | |
| 109 | E.OnServerEvent:Connect(thinghere) | |
| 110 | Tool.Grip = CFrame.Angles(math.rad(90),0,0) | |
| 111 | Tool.GripPos = Vector3.new(0,-5,0) |