SHARE
TWEET

sniper

a guest Sep 22nd, 2019 130 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local source = [[
  2. function Sniper()
  3. local sniper = game.Players.LocalPlayer.Backpack:FindFirstChild("Sniper")
  4. if sniper then
  5. return sniper
  6. else
  7. return game.Players.LocalPlayer.Character:FindFirstChild("Sniper")
  8. end
  9. end
  10. repeat wait() until GetSniper().ClassName == "Tool"
  11.  
  12. local Player = game.Players.LocalPlayer
  13. local Mouse = Player:GetMouse()
  14. local Character = game.Workspace:WaitForChild(Player.Name)
  15. local Humanoid = Character:WaitForChild("Humanoid")
  16.  
  17.  
  18.  
  19.  
  20. local Data = {
  21. Damages = {
  22. Head = 30,
  23. Torso = 25,
  24. Else = 20
  25. },
  26. FireRate = 1/11,
  27. ReloadTime = 0.1,
  28. ClipSize = 100,
  29. Accuracy = 10,
  30. NumBullets = 1,
  31. FireMode = "Auto",
  32. Range = 1000,
  33. BarrelOffset = CFrame.new(0,.25,-.7)
  34. }
  35.  
  36. function F1R3(Human, dmg)
  37. for i = 1,4 do
  38. game.ReplicatedStorage.Remotes['Dont_Buy_From_Jacob']:FireServer("xHyf86e", dmg, Human, GetSniper())
  39. end
  40. end
  41.  
  42. local Equipped = false
  43. local Firing = false
  44. local Reloading = false
  45. local CanFire = true
  46. local Ammo = Data["ClipSize"]
  47.  
  48. local GanUI = script:WaitForChild("GanUI")
  49. GanUI.AmmoBack.Ammo.Text = Ammo .. " / " .. Ammo
  50.  
  51. local UIS = game:GetService("UserInputService")
  52.  
  53. local GoldIDs = {
  54. M9 = 316022948,
  55. Scorpion = 316250295,
  56. Shotgun = 317302030,
  57. Sniper = 316598801,
  58. ["AK-47"] = 317301580,
  59. ["M-16"] = 317302215
  60. }
  61.  
  62.  
  63. game.ReplicatedStorage.Remotes.Goldify:FireServer(GetSniper():WaitForChild("Handle"))
  64.  
  65. function ganUItext(text) --Im that lazy
  66. GanUI.AmmoBack.Ammo.Text = text
  67. end
  68. GanUI.AmmoBack.Ammo.TextColor3 = Color3.new(0, 0, 255)
  69. function Reload()
  70. Reloading = true
  71. GetSniper().Handle.ReloadSound:Play()
  72. ganUItext("-- / --")
  73. wait(Data["ReloadTime"])
  74. Ammo = Data["ClipSize"]
  75. ganUItext(Ammo .. " / " .. Ammo)
  76. Reloading = false
  77. end
  78.  
  79. local igList = {game.Workspace:WaitForChild(Player.Name),game.Workspace.Map}
  80.  
  81. function CastRay(OldPos)
  82.  
  83. local function getBodyDamage(bP)
  84. if bP.Name == "Head" then
  85. return "Head"
  86. elseif bP.Name == "Torso" then
  87. return "Torso"
  88. else
  89. return "Else"
  90. end
  91. end
  92.  
  93. local function evenOrodd()
  94. if math.random(1,2) == 1 then
  95. return 1
  96. else
  97. return -1
  98. end
  99. end
  100.  
  101. local ray
  102. if OldPos then
  103. ray = Ray.new(Player.Character.Head.CFrame.p,(OldPos - Player.Character.Head.CFrame.p).unit * Data["Range"])
  104. else
  105. local Eq = ((math.random(-Data["Accuracy"],Data["Accuracy"])/100) * (Player.Character.Head.CFrame.p - Mouse.Hit.p).magnitude * .01)
  106. local tempEq = Mouse.Hit * CFrame.new(Eq * evenOrodd(),Eq * evenOrodd(),Eq * evenOrodd())
  107. ray = Ray.new(Player.Character.Head.CFrame.p,((tempEq).p - Player.Character.Head.CFrame.p).unit * Data["Range"])
  108. end
  109. local hit, position = game.Workspace:FindPartOnRayWithIgnoreList(ray, igList)
  110.  
  111. local rayP = Instance.new("Part")
  112. rayP.Parent = Character
  113. rayP.Size = Vector3.new(.2,.2,((GetSniper().Handle.CFrame * Data["BarrelOffset"]).p - position).magnitude)
  114. rayP.Anchored = true
  115. rayP.CanCollide = false
  116. rayP.Transparency = .75
  117. rayP.CFrame = CFrame.new((GetSniper().Handle.CFrame * Data["BarrelOffset"]).p,position) * CFrame.new(0,0,rayP.Size.Z/-2)
  118.  
  119. local dat = Player:FindFirstChild("Data")
  120. if dat then
  121. rayP.BrickColor = BrickColor.new("Institutional Red")
  122. if rayP.BrickColor ~= BrickColor.new("Medium stone grey") then
  123. rayP.Material = "Neon"
  124. rayP.Transparency = 0
  125. end
  126. end
  127.  
  128. local msh = Instance.new("BlockMesh")
  129. msh.Parent = rayP
  130. msh.Scale = Vector3.new(.25,.25,1)
  131.  
  132. game.ReplicatedStorage.Remotes.ServerGun:FireServer(rayP.CFrame, rayP.Size, rayP.BrickColor, GetSniper():WaitForChild("Handle"))
  133.  
  134. if hit then
  135. local Human = hit.Parent:FindFirstChild("Humanoid") or hit.Parent.Parent:FindFirstChild("Humanoid")
  136. if Human and Humanoid.Health > 0 and Human ~= Humanoid then
  137. if hit.Parent:FindFirstChild("Humanoid") then
  138. F1R3(Human, Data["Damages"][getBodyDamage(hit)])
  139. else
  140. if hit.Parent.ClassName == "Accessory" then
  141. F1R3(Human, Data["Damages"]["Head"])
  142. elseif hit.Parent.ClassName == "Tool" then
  143. F1R3(Human, Data["Damages"]["Else"])
  144. end
  145. end
  146. end
  147. end
  148.  
  149. spawn(function()
  150. for i = rayP.Transparency,1,.05 do
  151. wait(.05)
  152. rayP.Transparency = i
  153. end
  154. rayP:Destroy()
  155. end)
  156.  
  157. end
  158.  
  159. GetSniper().Equipped:Connect(function(M)
  160.  
  161. Equipped = true
  162. GanUI.Parent = Player.PlayerGui
  163. M.Icon = "rbxassetid://76603102"
  164.  
  165. M.Button1Down:Connect(function()
  166.  
  167. Firing = true
  168.  
  169. if Ammo <= 0 and not Reloading then
  170. Reload()
  171. end
  172.  
  173. if Data["FireMode"] == "Auto" then
  174. if Equipped and not Reloading and Firing and Humanoid.Health > 0 then
  175. if Ammo > 0 then
  176. repeat
  177. wait(Data["FireRate"])
  178. Ammo = Ammo - 1
  179. for i = 1,Data["NumBullets"] do
  180. CastRay()
  181. end
  182. ganUItext(Ammo .. " / " .. Data["ClipSize"])
  183. GetSniper().Handle.ShotSound:Play()
  184. until Ammo <= 0 or Reloading or not Firing or Humanoid.Health <= 0 or not Equipped
  185. wait()
  186. if Ammo <= 0 then
  187. repeat
  188. wait(Data["FireRate"])
  189. GetSniper().Handle.EmptySound:Play()
  190. until Reloading or not Firing or not Equipped
  191. end
  192. end
  193. end
  194. else
  195. if Equipped and not Reloading and Firing and Humanoid.Health > 0 then
  196. if Ammo > 0 then
  197. if CanFire then
  198. CanFire = false
  199. Ammo = Ammo - 1
  200. for i = 1,Data["NumBullets"] do
  201. CastRay()
  202. end
  203. ganUItext(Ammo .. " / " .. Data["ClipSize"])
  204. GetSniper().Handle.ShotSound:Play()
  205. wait(Data["FireRate"])
  206. CanFire = true
  207. end
  208. end
  209. end
  210. end
  211.  
  212. end)
  213.  
  214. M.Button1Up:Connect(function()
  215. Firing = false
  216. end)
  217.  
  218. end)
  219.  
  220. GetSniper().Unequipped:Connect(function(le)
  221. Equipped = false
  222. GanUI.Parent = script
  223. end)
  224.  
  225. UIS.InputBegan:Connect(function(Key)
  226. if Equipped then
  227. if Key.KeyCode == Enum.KeyCode.R and not Reloading then
  228. Reload()
  229. end
  230. end
  231. end)]]
  232.  
  233.  
  234. function run()
  235.    loadstring(source)()
  236. end
  237.  
  238.  
  239. function bypass()
  240.    spawn(function()
  241.    local sniper = game.Players.LocalPlayer.Backpack:WaitForChild("Sniper")
  242.    local s =  sniper:FindFirstChild("GanClient")
  243.    if s then
  244.    s.Disabled = true
  245.    for i,v in pairs(s:children())do
  246.        if v then
  247.            v = v:Clone()
  248.            v.Parent = script
  249.        end
  250.    end
  251.    wait()
  252.    s:Destroy()
  253.    wait()
  254.    run()
  255.    end
  256.    end)
  257. end
  258.  
  259. bypass()
  260. game.Players.LocalPlayer.CharacterAdded:Connect(bypass)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top