SHOW:
|
|
- or go back to the newest paste.
| 1 | local Hat = Instance.new("Part", owner.Character)
| |
| 2 | - | Tool.Name = "Gun" |
| 2 | + | Hat.Size = Vector3.new(1.5, 1, 1.5) |
| 3 | - | Gun = Instance.new("Part")
|
| 3 | + | SpecialMesh2 = Instance.new("SpecialMesh")
|
| 4 | - | Gun.Name = "Handle" |
| 4 | + | SpecialMesh2.Parent = Hat |
| 5 | - | Gun.Parent = Tool |
| 5 | + | SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=45915012" |
| 6 | SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=45915003" | |
| 7 | - | Gun.Size = Vector3.new(0.82325, 2.1545, 6.25) |
| 7 | + | SpecialMesh2.Scale = Vector3.new(1, 1, 1) |
| 8 | - | Gun.Massless = true |
| 8 | + | Hat.Transparency = 1 |
| 9 | - | Gun.CanCollide = true |
| 9 | + | Hat.CanCollide = false |
| 10 | - | local Pow = Instance.new("Sound", owner.character.Head)
|
| 10 | + | Hat.Massless = true |
| 11 | - | Pow.SoundId = "rbxassetid://5339941902" |
| 11 | + | local debris = game:GetService("Debris")
|
| 12 | - | Pow.Volume = 1 |
| 12 | + | Bullet = Instance.new("Part", script)
|
| 13 | Bullet.Position = Vector3.new(1000000,1000000,1000000) | |
| 14 | Bullet.Anchored = true | |
| 15 | - | Mesh.Parent = Gun |
| 15 | + | Bullet.CanCollide = false |
| 16 | - | Mesh.MeshId = "http://www.roblox.com/asset/?id=868963093" |
| 16 | + | Bullet.Material = Enum.Material.Neon |
| 17 | - | Mesh.TextureId = "http://www.roblox.com/asset/?id=868963099" |
| 17 | + | |
| 18 | - | Mesh.Scale = Vector3.new(0.01, 0.01, 0.01) |
| 18 | + | Tool.Name = "America" |
| 19 | Part = Instance.new("Part")
| |
| 20 | - | owner = nil |
| 20 | + | Part.Name = "Handle" |
| 21 | - | local E = Instance.new("RemoteEvent",Tool.Parent)
|
| 21 | + | Part.Parent = Tool |
| 22 | - | local gunlocal = [[ |
| 22 | + | Part.Size = Vector3.new(1.6465, 4.309, 12.5) |
| 23 | - | Tool = owner.Character:WaitForChild("Gun")
|
| 23 | + | Tool.GripPos = Vector3.new(0,0,1.63883333334) |
| 24 | - | local E = Tool.Parent:FindFirstChildWhichIsA("RemoteEvent")
|
| 24 | + | |
| 25 | - | local Mouse = owner:GetMouse() |
| 25 | + | local E = Instance.new("RemoteEvent", owner.Character)
|
| 26 | - | function ButtonDown() |
| 26 | + | E.Name = "The" |
| 27 | - | if Mouse.Target ~= nil then |
| 27 | + | Bullet.BrickColor = BrickColor.new("Bright yellow")
|
| 28 | - | E:FireServer("Down",Mouse.Target)
|
| 28 | + | local Pow = Instance.new("Sound", Part)
|
| 29 | - | end |
| 29 | + | Pow.SoundId = "rbxassetid://3810328903" |
| 30 | - | end |
| 30 | + | Pow.Volume = 2 |
| 31 | - | Mouse.Button1Down:Connect(ButtonDown) |
| 31 | + | local outlaw = Instance.new("Sound", Part)
|
| 32 | - | ]] |
| 32 | + | outlaw.SoundId = "rbxassetid://2638058970" |
| 33 | outlaw.Volume = 1 | |
| 34 | - | pcall(function() |
| 34 | + | outlaw.Looped = true |
| 35 | local whathell = Instance.new("EqualizerSoundEffect",outlaw)
| |
| 36 | - | if game:GetService("Players"):GetPlayerFromCharacter(Tool.Parent) ~= owner then
|
| 36 | + | whathell.LowGain = 10 |
| 37 | - | owner = game:GetService("Players"):GetPlayerFromCharacter(Tool.Parent)
|
| 37 | + | whathell.MidGain = 10 |
| 38 | - | NLS(gunlocal,owner.PlayerGui) |
| 38 | + | whathell.HighGain = 10 |
| 39 | islunging = false | |
| 40 | Mesh = Instance.new("SpecialMesh")
| |
| 41 | Mesh.Parent = Part | |
| 42 | Mesh.MeshId = "http://www.roblox.com/asset/?id=549237211" | |
| 43 | Mesh.TextureId = "http://www.roblox.com/asset/?id=549237246" | |
| 44 | Mesh.Scale = Vector3.new(2, 2, 2) | |
| 45 | Tool.GripPos = Vector3.new(0,0,6.25) | |
| 46 | - | |
| 46 | + | Part.Massless = true |
| 47 | - | Tool.Activated:connect(function() |
| 47 | + | local hatweld = Instance.new("Weld", owner.Character.Head)
|
| 48 | - | islunging = true |
| 48 | + | hatweld.Part0 = owner.Character.Head |
| 49 | hatweld.Part1 = Hat | |
| 50 | - | wait(0.65) |
| 50 | + | hatweld.C1 = hatweld.C1 * CFrame.new(0,-0.75,0) |
| 51 | local accessories = {}
| |
| 52 | Tool.Equipped:Connect(function() | |
| 53 | - | |
| 53 | + | for _, accessory in pairs(owner.Character.Humanoid:GetAccessories()) do |
| 54 | - | local isTouched = false |
| 54 | + | table.insert(accessories, accessory:Clone()) |
| 55 | - | |
| 55 | + | end |
| 56 | - | function thinghere(plr,action,part) |
| 56 | + | Hat.Transparency = 0 |
| 57 | - | if islunging then |
| 57 | + | owner.Character.Humanoid:RemoveAccessories() |
| 58 | - | if part.Name ~= "Base" then |
| 58 | + | |
| 59 | - | part:Destroy() |
| 59 | + | |
| 60 | for _, accessory in pairs(accessories) do | |
| 61 | owner.Character.Humanoid:AddAccessory(accessory) | |
| 62 | end | |
| 63 | - | |
| 63 | + | Hat.Transparency = 1 |
| 64 | - | E.OnServerEvent:Connect(thinghere) |
| 64 | + | accessories = {}
|
| 65 | - | Tool.Grip = CFrame.Angles(0,math.rad(90),0) |
| 65 | + | |
| 66 | - | Tool.GripPos = Vector3.new(1,0,0) |
| 66 | + | |
| 67 | outlaw:Resume() | |
| 68 | end) | |
| 69 | Tool.Unequipped:Connect(function() | |
| 70 | outlaw:Pause() | |
| 71 | end) | |
| 72 | NLS([[ | |
| 73 | Tool = owner.Character:WaitForChild("America")
| |
| 74 | local E = owner.Character:WaitForChild("The")
| |
| 75 | local toolout = false | |
| 76 | Tool.Equipped:Connect(function() | |
| 77 | toolout = true | |
| 78 | end) | |
| 79 | ||
| 80 | Tool.Unequipped:Connect(function() | |
| 81 | toolout = false | |
| 82 | end) | |
| 83 | mouse = owner:GetMouse() | |
| 84 | mouse.Button1Down:Connect(function() | |
| 85 | if toolout then | |
| 86 | local position = mouse.Hit.Position | |
| 87 | E:FireServer(position) | |
| 88 | end | |
| 89 | end) | |
| 90 | ]],owner.PlayerGui) | |
| 91 | local velocity | |
| 92 | db = false | |
| 93 | function isplatformstand(PC) | |
| 94 | coroutine.wrap(function() | |
| 95 | PC.Character.Humanoid.PlatformStand = true | |
| 96 | wait(5) | |
| 97 | db = false | |
| 98 | for i,v in pairs(PC.Character:GetDescendants()) do | |
| 99 | if v:IsA("Motor6D") and v.Parent.Name ~= "HumanoidRootPart" then
| |
| 100 | v.Enabled = true | |
| 101 | end | |
| 102 | PC.Character.Humanoid.PlatformStand = false | |
| 103 | end | |
| 104 | end)() | |
| 105 | end | |
| 106 | function killfunction(part) | |
| 107 | local Model = part:FindFirstAncestorOfClass("Model")
| |
| 108 | if Model then | |
| 109 | local PC = game:GetService("Players"):GetPlayerFromCharacter(Model)
| |
| 110 | if PC then | |
| 111 | if PC ~= owner then | |
| 112 | local limbcollider = Instance.new("Part", PC.Character:findFirstChild("Right Arm"))
| |
| 113 | limbcollider.Size = Vector3.new(1.4,1,1) | |
| 114 | limbcollider.Shape = "Cylinder" | |
| 115 | limbcollider.Transparency = 1 | |
| 116 | limbcollider.Name = "LimbCollider" | |
| 117 | local limbcolliderweld = Instance.new("Weld", limbcollider)
| |
| 118 | limbcolliderweld.Part0 = PC.Character:findFirstChild("Right Arm")
| |
| 119 | limbcolliderweld.Part1 = limbcollider | |
| 120 | limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0) | |
| 121 | local limbcollider2 = Instance.new("Part", PC.Character:findFirstChild("Left Arm"))
| |
| 122 | limbcollider2.Size = Vector3.new(1.4,1,1) | |
| 123 | limbcollider2.Shape = "Cylinder" | |
| 124 | limbcollider2.Transparency = 1 | |
| 125 | limbcollider2.Name = "LimbCollider" | |
| 126 | local limbcolliderweld2 = Instance.new("Weld", limbcollider)
| |
| 127 | limbcolliderweld2.Part0 = PC.Character:findFirstChild("Left Arm")
| |
| 128 | limbcolliderweld2.Part1 = limbcollider2 | |
| 129 | limbcolliderweld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0) | |
| 130 | local limbcollider3 = Instance.new("Part", PC.Character:findFirstChild("Right Leg"))
| |
| 131 | limbcollider3.Size = Vector3.new(1.3,1,1) | |
| 132 | limbcollider3.Shape = "Cylinder" | |
| 133 | limbcollider3.Transparency = 1 | |
| 134 | limbcollider3.Name = "LimbCollider" | |
| 135 | local limbcolliderweld3 = Instance.new("Weld", limbcollider)
| |
| 136 | limbcolliderweld3.Part0 = PC.Character:findFirstChild("Right Leg")
| |
| 137 | limbcolliderweld3.Part1 = limbcollider3 | |
| 138 | limbcolliderweld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0) | |
| 139 | local limbcollider4 = Instance.new("Part", PC.Character:findFirstChild("Left Leg"))
| |
| 140 | limbcollider4.Size = Vector3.new(1.3,1,1) | |
| 141 | limbcollider4.Shape = "Cylinder" | |
| 142 | limbcollider4.Transparency = 1 | |
| 143 | limbcollider4.Name = "LimbCollider" | |
| 144 | local limbcolliderweld4 = Instance.new("Weld", limbcollider)
| |
| 145 | limbcolliderweld4.Part0 = PC.Character:findFirstChild("Left Leg")
| |
| 146 | limbcolliderweld4.Part1 = limbcollider4 | |
| 147 | limbcolliderweld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0) | |
| 148 | for i,v in pairs(PC.Character:GetDescendants()) do | |
| 149 | if v:IsA("Motor6D") and v.Parent.Name ~= "HumanoidRootPart" then
| |
| 150 | local Socket = Instance.new("BallSocketConstraint")
| |
| 151 | local a1 = Instance.new("Attachment")
| |
| 152 | local a2 = Instance.new("Attachment")
| |
| 153 | a1.Parent = v.Part0 | |
| 154 | a2.Parent = v.Part1 | |
| 155 | Socket.Parent = v.Parent | |
| 156 | Socket.Attachment0 = a1 | |
| 157 | Socket.Attachment1 = a2 | |
| 158 | a1.CFrame = v.C0 | |
| 159 | a2.CFrame = v.C1 | |
| 160 | Socket.LimitsEnabled = true | |
| 161 | Socket.TwistLimitsEnabled = true | |
| 162 | v.Enabled = false | |
| 163 | end | |
| 164 | end | |
| 165 | end | |
| 166 | end | |
| 167 | end | |
| 168 | end | |
| 169 | E.OnServerEvent:Connect(function(player, position) | |
| 170 | Pow:Play() | |
| 171 | local origin = Part.Position + Part.CFrame.UpVector * 2.5 + Part.CFrame.lookVector * 8 | |
| 172 | local direction = (position - origin).Unit*300 | |
| 173 | local result = game.Workspace:Raycast(origin, direction) | |
| 174 | ||
| 175 | local intersection = result and result.Position or origin + direction | |
| 176 | local distance = (origin - intersection).Magnitude | |
| 177 | ||
| 178 | local bullet_clone = Bullet:Clone() | |
| 179 | bullet_clone.Size = Vector3.new(1.5, 1.5, distance) | |
| 180 | bullet_clone.CFrame = CFrame.new(origin, intersection)*CFrame.new(0, 0, -distance/2) | |
| 181 | bullet_clone.Parent = game.Workspace | |
| 182 | ||
| 183 | if result then | |
| 184 | local part = result.Instance | |
| 185 | wait(0.1) | |
| 186 | killfunction(part) | |
| 187 | local humanoid = part.Parent:FindFirstChild("Humanoid") or part.Parent.Parent:FindFirstChild("Humanoid")
| |
| 188 | ||
| 189 | if humanoid then | |
| 190 | if humanoid ~= owner.Character.Humanoid then | |
| 191 | humanoid.BreakJointsOnDeath = false | |
| 192 | wait(0.1) | |
| 193 | humanoid.Health = 0 | |
| 194 | local velocity = Instance.new("BodyVelocity", part)
| |
| 195 | velocity.Velocity = bullet_clone.CFrame.lookVector * 500 | |
| 196 | velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 197 | wait(0.125) | |
| 198 | velocity:Destroy() | |
| 199 | velocity = nil | |
| 200 | end | |
| 201 | end | |
| 202 | end | |
| 203 | wait(0.25) | |
| 204 | bullet_clone:Destroy() | |
| 205 | end) |