Advertisement
Prokri43

Probslock

Aug 2nd, 2023 (edited)
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.65 KB | None | 0 0
  1. Settings = {
  2. Kalslock = {
  3. Enabled = true,
  4. Key = "q",
  5. showdot = true,
  6. airshots = true,
  7. notifaction = true,
  8. pingprediction = true,
  9. FOV = math.huge,
  10. RESOVLER = true,
  11. Tracer = true,
  12. TracerColor = Color3.new(252, 119, 3),
  13. TracerTransparency = 0.75,
  14. TracerThickness = 5,
  15. Circles = false,
  16. CircleFOV = 500,
  17. CircleColor = Color3.new(255, 255, 255),
  18. CircleThickness = 2,
  19. CircleFilled = true,
  20. CircleTransparency = 0.10,
  21. CircleTransparencyOutline = 0,
  22. OutlineColor = Color3.new(252, 119, 3),
  23. Texts = false,
  24. TextColor = Color3.new(255, 255, 255),
  25. TextSize = 35,
  26. TextInput = "skidded",
  27. Hitbox = true,
  28. NoBulletDelay = false,
  29. Autoclicker = false,
  30. AutoclickerTime = 0.01,
  31. AutoclickerKey = "v",
  32. AnimationPack = false
  33.  
  34. }
  35. }
  36.  
  37. --[[
  38. Parts - / HumanoidRootPart / LowerTorso / UpperTorso / Head
  39. ]]
  40.  
  41. local SelectedPart = "UpperTorso"
  42. local Prediction = true
  43. local PredictionValue = 0.167
  44.  
  45.  
  46.  
  47. local AnchorCount = 0
  48. local MaxAnchor = 50
  49.  
  50. local CC = game:GetService"Workspace".CurrentCamera
  51. local Plr;
  52. local enabled = false
  53. local accomidationfactor = 0.132
  54. local mouse = game.Players.LocalPlayer:GetMouse()
  55.  
  56. local Inset = game:GetService("GuiService"):GetGuiInset().Y
  57. local Line = Drawing.new("Line")
  58. local Text = Drawing.new("Text")
  59. local Circle = Drawing.new("Circle")
  60. local Circle1 = Drawing.new("Circle")
  61.  
  62.  
  63. _G.Types = {
  64. Ball = Enum.PartType.Ball,
  65. Block = Enum.PartType.Block,
  66. Cylinder = Enum.PartType.Cylinder
  67. }
  68.  
  69. local placemarker = Instance.new("Part", game.Workspace)
  70. placemarker.Shape = _G.Types.Ball
  71. placemarker.Material = "ForceField"
  72. placemarker.Color = Color3.new(0, 1, 1)
  73.  
  74. function makemarker(Parent, Adornee, Color, Size, Size2)
  75. local e = Instance.new("BillboardGui", Parent)
  76. e.Name = "PP"
  77. e.Adornee = Adornee
  78. e.Size = UDim2.new(Size, Size2, Size, Size2)
  79. e.AlwaysOnTop = Settings.Kalslock.showdot
  80. local a = Instance.new("Frame", e)
  81. if Settings.Kalslock.showdot == true then
  82. a.Size = UDim2.new(1, 0, 1, 0)
  83. else
  84. a.Size = UDim2.new(0, 0, 0, 0)
  85. end
  86. if Settings.Kalslock.showdot == true then
  87. a.Transparency = 0
  88. a.BackgroundTransparency = 0
  89. else
  90. a.Transparency = 1
  91. a.BackgroundTransparency = 1
  92. end
  93. a.BackgroundColor3 = Color
  94. local g = Instance.new("UICorner", a)
  95. if Settings.Kalslock.showdot == false then
  96. g.CornerRadius = UDim.new(0, 0)
  97. else
  98. g.CornerRadius = UDim.new(1, 1)
  99. end
  100. return(e)
  101. end
  102.  
  103.  
  104. local data = game.Players:GetPlayers()
  105. function noob(player)
  106. local character
  107. repeat wait() until player.Character
  108. local handler = makemarker(guimain, player.Character:WaitForChild(SelectedPart), Color3.fromRGB(0, 255, 229), 0.3, 3)
  109. handler.Name = player.Name
  110. player.CharacterAdded:connect(function(Char) handler.Adornee = Char:WaitForChild(SelectedPart) end)
  111.  
  112.  
  113. spawn(function()
  114. while wait() do
  115. if player.Character then
  116. end
  117. end
  118. end)
  119. end
  120.  
  121. for i = 1, #data do
  122. if data[i] ~= game.Players.LocalPlayer then
  123. noob(data[i])
  124. end
  125. end
  126.  
  127. game.Players.PlayerAdded:connect(function(Player)
  128. noob(Player)
  129. end)
  130.  
  131. spawn(function()
  132. placemarker.Anchored = true
  133. placemarker.CanCollide = false
  134. if Settings.Kalslock.showdot == true then
  135. placemarker.Size = Vector3.new(11, 11, 11)
  136. else
  137. placemarker.Size = Vector3.new(0, 0, 0)
  138. end
  139. if Settings.Kalslock.Hitbox == true then
  140. placemarker.Transparency = 0.30
  141. else
  142. placemarker.Transparency = 1
  143. end
  144. if Settings.Kalslock.showdot then
  145. makemarker(placemarker, placemarker, Color3.fromRGB(0, 255, 238), 0.80, 0)
  146. end
  147. end)
  148.  
  149. game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(k)
  150. if k == Settings.Kalslock.Key and Settings.Kalslock.Enabled then
  151. if enabled == true then
  152. enabled = false
  153. if Settings.Kalslock.notifaction == true then
  154. Plr = getClosestPlayerToCursor()
  155. game.StarterGui:SetCore("SendNotification", {
  156. Title = "Probably Skidded This";
  157. Text = " Unlocked",
  158. Icon = "http://www.roblox.com/asset/?id=5314810647",
  159. Duration = 3
  160. })
  161. end
  162. else
  163. Plr = getClosestPlayerToCursor()
  164. enabled = true
  165. if Settings.Kalslock.notifaction == true then
  166.  
  167. game.StarterGui:SetCore("SendNotification", {
  168. Title = "Probably Skidded This";
  169. Text = " Target: "..tostring(Plr.Character.Humanoid.DisplayName),
  170. Icon = "http://www.roblox.com/asset/?id=8709610734",
  171. Duration = 3
  172. })
  173.  
  174. end
  175. end
  176. end
  177. end)
  178.  
  179.  
  180.  
  181. function getClosestPlayerToCursor()
  182. local closestPlayer
  183. local shortestDistance = Settings.Kalslock.FOV
  184.  
  185. for i, v in pairs(game.Players:GetPlayers()) do
  186. if v ~= game.Players.LocalPlayer and v.Character and v.Character:FindFirstChild("Humanoid") and v.Character.Humanoid.Health ~= 0 and v.Character:FindFirstChild("HumanoidRootPart") then
  187. local pos = CC:WorldToViewportPoint(v.Character.PrimaryPart.Position)
  188. local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(mouse.X, mouse.Y)).magnitude
  189. if magnitude < shortestDistance then
  190. closestPlayer = v
  191. shortestDistance = magnitude
  192. end
  193. end
  194. end
  195. return closestPlayer
  196. end
  197.  
  198. local pingvalue = nil;
  199. local split = nil;
  200. local ping = nil;
  201.  
  202. game:GetService"RunService".Stepped:connect(function()
  203. if enabled and Plr.Character ~= nil and Plr.Character:FindFirstChild("HumanoidRootPart") then
  204. placemarker.CFrame = CFrame.new(Plr.Character.HumanoidRootPart.Position)
  205. local Vector1 = CC:WorldToViewportPoint(Plr.Character.HumanoidRootPart.Position)
  206. Line.Color = Settings.Kalslock.TracerColor
  207. Line.Transparency = Settings.Kalslock.TracerTransparency
  208. Line.Thickness = Settings.Kalslock.TracerThickness
  209. Line.From = Vector2.new(mouse.X, mouse.Y + Inset)
  210. Line.To = Vector2.new(Vector1.X, Vector1.Y)
  211. Line.Visible = Settings.Kalslock.Tracer
  212. Text.Position = Vector2.new(mouse.X, mouse.Y + Inset)
  213. Text.Visible = Settings.Kalslock.Texts
  214. Text.Center = true
  215. Text.Outline = true
  216. Text.Font = 1
  217. Text.Size = Settings.Kalslock.TextSize
  218. Text.Color = Settings.Kalslock.TextColor
  219. Text.Text = Settings.Kalslock.TextInput
  220. Circle.Position = Vector2.new(mouse.X, mouse.Y + Inset)
  221. Circle.Visible = Settings.Kalslock.Circles
  222. Circle.Thickness = 1.5
  223. Circle.Thickness = Settings.Kalslock.CircleThickness
  224. Circle.Radius = Settings.Kalslock.CircleFOV
  225. Circle.Color = Settings.Kalslock.CircleColor
  226. Circle.Filled = Settings.Kalslock.CircleFilled
  227. Circle.Transparency = Settings.Kalslock.CircleTransparency
  228. Circle1.Visible = true
  229. Circle1.Radius = Settings.Kalslock.CircleTransparencyOutline
  230. Circle1.Position = Vector2.new(mouse.X, mouse.Y + Inset)
  231. Circle1.Thickness = 5
  232. Circle1.Color = Settings.Kalslock.OutlineColor
  233.  
  234. else
  235. Circle.Visible = false
  236. Line.Visible = false
  237. Text.Visible = false
  238. Circle1.Visible = false
  239. placemarker.CFrame = CFrame.new(0, 9999, 0)
  240. end
  241. if Settings.Kalslock.pingprediction == true then
  242. pingvalue = game:GetService("Stats").Network.ServerStatsItem["Data Ping"]:GetValueString()
  243. split = string.split(pingvalue,'(')
  244. ping = tonumber(split[1])
  245. if ping < 200 then
  246. PredictionValue = 0.223
  247. elseif ping < 195 then
  248. PredictionValue = 0.219
  249. elseif ping < 190 then
  250. PredictionValue = 0.207
  251. elseif ping < 180 then
  252. PredictionValue = 0.196
  253. elseif ping < 170 then
  254. PredictionValue = 0.182
  255. elseif ping < 160 then
  256. PredictionValue = 0.176
  257. elseif ping < 150 then
  258. PredictionValue = 0.170
  259. elseif ping < 145 then
  260. PredictionValue = 0.166
  261. elseif ping < 140 then
  262. PredictionValue = 0.163
  263. elseif ping < 130 then
  264. PredictionValue = 0.151
  265. elseif ping < 125 then
  266. PredictionValue = 0.149
  267. elseif ping < 110 then
  268. PredictionValue = 0.146
  269. elseif ping < 105 then
  270. PredictionValue = 0.138
  271. elseif ping < 90 then
  272. PredictionValue = 0.136
  273. elseif ping < 80 then
  274. PredictionValue = 0.134
  275. elseif ping < 70 then
  276. PredictionValue = 0.131
  277. elseif ping < 60 then
  278. PredictionValue = 0.1276
  279. elseif ping < 50 then
  280. PredictionValue = 0.1256
  281. elseif ping < 40 then
  282. PredictionValue = 0.1225
  283. elseif ping < 30 then
  284. PredictionValue = 0.1186
  285. elseif ping < 20 then
  286. PredictionValue = 0.1117
  287. end
  288. end
  289. end)
  290.  
  291. local mt = getrawmetatable(game)
  292. local old = mt.__namecall
  293. setreadonly(mt, false)
  294. mt.__namecall = newcclosure(function(...)
  295. local args = {...}
  296. if enabled and getnamecallmethod() == "FireServer" and args[2] == "UpdateMousePos" and Settings.Kalslock.Enabled and Plr.Character ~= nil then
  297.  
  298. -- args[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*accomidationfactor)
  299. --[[
  300. if Settings.Kalslock.airshots == true then
  301. if game.Workspace.Players[Plr.Name].Humanoid:GetState() == Enum.HumanoidStateType.Freefall then -- Plr.Character:WaitForChild("Humanoid"):GetState() == Enum.HumanoidStateType.Freefall
  302.  
  303. --// Airshot
  304. args[3] = Plr.Character.LeftFoot.Position+(Plr.Character.LeftFoot.Velocity*PredictionValue)
  305.  
  306. else
  307. args[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*PredictionValue)
  308.  
  309. end
  310. else
  311. args[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*PredictionValue)
  312. end
  313. ]]
  314. if Prediction == true then
  315.  
  316. args[3] = Plr.Character[SelectedPart].Position+(Plr.Character[SelectedPart].Velocity*PredictionValue)
  317.  
  318. else
  319.  
  320. args[3] = Plr.Character[SelectedPart].Position
  321.  
  322. end
  323.  
  324. return old(unpack(args))
  325. end
  326. return old(...)
  327. end)
  328.  
  329. game:GetService("RunService").RenderStepped:Connect(function()
  330. if Settings.Kalslock.RESOVLER == true and Plr.Character ~= nil and enabled and Settings.Kalslock.Enabled then
  331. if Settings.Kalslock.airshots == true and enabled and Plr.Character ~= nil then
  332.  
  333. if game.Workspace.Players[Plr.Name].Humanoid:GetState() == Enum.HumanoidStateType.Freefall then -- Plr.Character:WaitForChild("Humanoid"):GetState() == Enum.HumanoidStateType.Freefall
  334.  
  335.  
  336.  
  337. if Plr.Character ~= nil and Plr.Character.HumanoidRootPart.Anchored == true then
  338. AnchorCount = AnchorCount + 1
  339. if AnchorCount >= MaxAnchor then
  340. Prediction = false
  341. wait(2)
  342. AnchorCount = 0;
  343. end
  344. else
  345. Prediction = true
  346. AnchorCount = 0;
  347. end
  348.  
  349. SelectedPart = "HumanoidRootPart"
  350.  
  351. else
  352.  
  353.  
  354. if Plr.Character ~= nil and Plr.Character.HumanoidRootPart.Anchored == true then
  355. AnchorCount = AnchorCount + 1
  356. if AnchorCount >= MaxAnchor then
  357. Prediction = false
  358. wait(2)
  359. AnchorCount = 0;
  360. end
  361.  
  362. else
  363. Prediction = true
  364. AnchorCount = 0;
  365. end
  366.  
  367. SelectedPart = "HumanoidRootPart"
  368.  
  369. end
  370. else
  371.  
  372.  
  373.  
  374. if Plr.Character ~= nil and Plr.Character.HumanoidRootPart.Anchored == true then
  375. AnchorCount = AnchorCount + 1
  376. if AnchorCount >= MaxAnchor then
  377. Prediction = false
  378. wait(2)
  379. AnchorCount = 0;
  380. end
  381. else
  382. Prediction = true
  383. AnchorCount = 0;
  384. end
  385. SelectedPart = "HumanoidRootPart"
  386. end
  387. else
  388. SelectedPart = "HumanoidRootPart"
  389. end
  390. end)
  391.  
  392. if Settings.Kalslock.NoBulletDelay == true then
  393. local FuckDelay = game:GetService("CorePackages").Packages
  394. FuckDelay:Destroy()
  395. end
  396.  
  397. if Settings.Kalslock.Autoclicker == true then
  398. local time = Settings.Kalslock.AutoclickerTime --decrease if too slow increase if too fast
  399.  
  400. click = false
  401. m = game.Players.LocalPlayer:GetMouse()
  402. m.KeyDown:connect(function(key)
  403. if key == Settings.Kalslock.AutoclickerKey then
  404. if click == true then click = false
  405. elseif
  406. click == false then click = true
  407.  
  408. while click == true do
  409. wait(time)
  410. mouse1click()
  411. end
  412. end
  413. end
  414. end)
  415. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement