Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print"Loading"
- --script=Instance.new("LocalScript")
- -- << K1LL0X >> --
- local UIS = game:GetService("UserInputService")
- local Player = game.Players.LocalPlayer
- local Mouse = Player:GetMouse()
- function GetCharacter()
- return game.Players.LocalPlayer.Character
- end
- function Teleport(pos)
- local Char = GetCharacter()
- if Char then
- Char:MoveTo(pos)
- end
- end
- UIS.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 and UIS:IsKeyDown(Enum.KeyCode.LeftControl) then
- Teleport(Mouse.Hit.p)
- end
- end)
- local source = [[
- function GetM9()
- local m9 = game.Players.LocalPlayer.Backpack:FindFirstChild("M9")
- if m9 then
- return m9
- else
- return game.Players.LocalPlayer.Character:FindFirstChild("M9")
- end
- end
- repeat wait() until GetM9().ClassName == "Tool"
- local Player = game.Players.LocalPlayer
- local Mouse = Player:GetMouse()
- local Character = game.Workspace:WaitForChild(Player.Name)
- local Humanoid = Character:WaitForChild("Humanoid")
- local Data = {
- Damages = {
- Head = 30,
- Torso = 25,
- Else = 20
- },
- FireRate = 1/11,
- ReloadTime = 0.1,
- ClipSize = 350,
- Accuracy = 10,
- NumBullets = 1,
- FireMode = "Auto",
- Range = 1000,
- BarrelOffset = CFrame.new(0,.25,-.7)
- }
- function F1R3(Human, dmg)
- for i = 1,4 do
- game.ReplicatedStorage.Remotes.Damage:FireServer("xHyf86e", dmg, Human, GetM9())
- end
- end
- local Equipped = false
- local Firing = false
- local Reloading = false
- local CanFire = true
- local Ammo = Data["ClipSize"]
- local GunUI = script:WaitForChild("GunUI")
- GunUI.AmmoBack.Ammo.Text = Ammo .. " / " .. Ammo
- local UIS = game:GetService("UserInputService")
- local GoldIDs = {
- M9 = 316022948,
- Scorpion = 316250295,
- Shotgun = 317302030,
- Sniper = 316598801,
- ["AK-47"] = 317301580,
- ["M-16"] = 317302215
- }
- game.ReplicatedStorage.Remotes.Goldify:FireServer(GetM9():WaitForChild("Handle"))
- function gunUItext(text) --Im that lazy
- GunUI.AmmoBack.Ammo.Text = text
- end
- GunUI.AmmoBack.Ammo.TextColor3 = Color3.new(0, 0, 255)
- function Reload()
- Reloading = true
- GetM9().Handle.ReloadSound:Play()
- gunUItext("-- / --")
- wait(Data["ReloadTime"])
- Ammo = Data["ClipSize"]
- gunUItext(Ammo .. " / " .. Ammo)
- Reloading = false
- end
- local igList = {game.Workspace:WaitForChild(Player.Name),unpack(game.Workspace.Map.BulletStorage:GetChildren()),game.Workspace.Map}
- function CastRay(OldPos)
- local function getBodyDamage(bP)
- if bP.Name == "Head" then
- return "Head"
- elseif bP.Name == "Torso" then
- return "Torso"
- else
- return "Else"
- end
- end
- local function evenOrodd()
- if math.random(1,2) == 1 then
- return 1
- else
- return -1
- end
- end
- local ray
- if OldPos then
- ray = Ray.new(Player.Character.Head.CFrame.p,(OldPos - Player.Character.Head.CFrame.p).unit * Data["Range"])
- else
- local Eq = ((math.random(-Data["Accuracy"],Data["Accuracy"])/100) * (Player.Character.Head.CFrame.p - Mouse.Hit.p).magnitude * .01)
- local tempEq = Mouse.Hit * CFrame.new(Eq * evenOrodd(),Eq * evenOrodd(),Eq * evenOrodd())
- ray = Ray.new(Player.Character.Head.CFrame.p,((tempEq).p - Player.Character.Head.CFrame.p).unit * Data["Range"])
- end
- local hit, position = game.Workspace:FindPartOnRayWithIgnoreList(ray, igList)
- local rayP = Instance.new("Part")
- rayP.Parent = Character
- rayP.Size = Vector3.new(.2,.2,((GetM9().Handle.CFrame * Data["BarrelOffset"]).p - position).magnitude)
- rayP.Anchored = true
- rayP.CanCollide = false
- rayP.Transparency = .75
- rayP.CFrame = CFrame.new((GetM9().Handle.CFrame * Data["BarrelOffset"]).p,position) * CFrame.new(0,0,rayP.Size.Z/-2)
- local dat = Player:FindFirstChild("Data")
- if dat then
- rayP.BrickColor = BrickColor.new("Institutional white")
- if rayP.BrickColor ~= BrickColor.new("Medium stone grey") then
- rayP.Material = "Neon"
- rayP.Transparency = 0
- end
- end
- local msh = Instance.new("BlockMesh")
- msh.Parent = rayP
- msh.Scale = Vector3.new(.25,.25,1)
- game.ReplicatedStorage.Remotes.ServerGun:FireServer(rayP.CFrame, rayP.Size, rayP.BrickColor, GetM9():WaitForChild("Handle"))
- if hit then
- local Human = hit.Parent:FindFirstChild("Humanoid") or hit.Parent.Parent:FindFirstChild("Humanoid")
- if Human and Humanoid.Health > 0 and Human ~= Humanoid then
- if hit.Parent:FindFirstChild("Humanoid") then
- F1R3(Human, Data["Damages"][getBodyDamage(hit)])
- else
- if hit.Parent.ClassName == "Accessory" then
- F1R3(Human, Data["Damages"]["Head"])
- elseif hit.Parent.ClassName == "Tool" then
- F1R3(Human, Data["Damages"]["Else"])
- end
- end
- end
- end
- spawn(function()
- for i = rayP.Transparency,1,.05 do
- wait(.05)
- rayP.Transparency = i
- end
- rayP:Destroy()
- end)
- end
- GetM9().Equipped:Connect(function(M)
- Equipped = true
- GunUI.Parent = Player.PlayerGui
- M.Icon = "rbxassetid://76603102"
- M.Button1Down:Connect(function()
- Firing = true
- if Ammo <= 0 and not Reloading then
- Reload()
- end
- if Data["FireMode"] == "Auto" then
- if Equipped and not Reloading and Firing and Humanoid.Health > 0 then
- if Ammo > 0 then
- repeat
- wait(Data["FireRate"])
- Ammo = Ammo - 1
- for i = 1,Data["NumBullets"] do
- CastRay()
- end
- gunUItext(Ammo .. " / " .. Data["ClipSize"])
- GetM9().Handle.ShotSound:Play()
- until Ammo <= 0 or Reloading or not Firing or Humanoid.Health <= 0 or not Equipped
- wait()
- if Ammo <= 0 then
- repeat
- wait(Data["FireRate"])
- GetM9().Handle.EmptySound:Play()
- until Reloading or not Firing or not Equipped
- end
- end
- end
- else
- if Equipped and not Reloading and Firing and Humanoid.Health > 0 then
- if Ammo > 0 then
- if CanFire then
- CanFire = false
- Ammo = Ammo - 1
- for i = 1,Data["NumBullets"] do
- CastRay()
- end
- gunUItext(Ammo .. " / " .. Data["ClipSize"])
- GetM9().Handle.ShotSound:Play()
- wait(Data["FireRate"])
- CanFire = true
- end
- end
- end
- end
- end)
- M.Button1Up:Connect(function()
- Firing = false
- end)
- end)
- GetM9().Unequipped:Connect(function(M)
- Equipped = false
- GunUI.Parent = script
- end)
- UIS.InputBegan:Connect(function(Key)
- if Equipped then
- if Key.KeyCode == Enum.KeyCode.R and not Reloading then
- Reload()
- end
- end
- end)]]
- function run()
- loadstring(source)()
- end
- function bypass()
- spawn(function()
- local m9 = game.Players.LocalPlayer.Backpack:WaitForChild("M9")
- local s = m9:FindFirstChild("GunClient")
- if s then
- s.Disabled = true
- for i,v in pairs(s:children())do
- if v then
- v = v:Clone()
- v.Parent = script
- end
- end
- wait()
- s:Destroy()
- wait()
- run()
- end
- end)
- end
- bypass()
- game.Players.LocalPlayer.CharacterAdded:Connect(bypass)
Add Comment
Please, Sign In to add comment