Advertisement
unkristan

sfhdfgdsfghdf

Jan 16th, 2025
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.91 KB | None | 0 0
  1. -- Flag to distinguish between paid and free users
  2. local isPaidUser = true -- Set to true for paid users
  3.  
  4. local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
  5.  
  6. local Window = Rayfield:CreateWindow({
  7. Name = "Cazware",
  8. LoadingTitle = "loading...",
  9. LoadingSubtitle = "by Caz",
  10. ConfigurationSaving = {
  11. Enabled = true,
  12. FolderName = nil, -- Create a custom folder for your hub/game
  13. FileName = "Cazware"
  14. },
  15. KeySystem = true,
  16. KeySettings = {
  17. Title = "Cazware",
  18. Subtitle = "Key System",
  19. Note = "private lock",
  20. FileName = "Cazware",
  21. SaveKey = false,
  22. GrabKeyFromSite = false,
  23. Key = {"freecazware"} -- List of accepted keys
  24. }
  25. })
  26.  
  27. -- Home Tab
  28. local MainTab = Window:CreateTab("Home", nil)
  29. local MainSection = MainTab:CreateSection("Main")
  30.  
  31. -- Notify user that the system has loaded
  32. Rayfield:Notify({
  33. Title = "Loaded",
  34. Content = "Cazware",
  35. Duration = 4,
  36. Image = nil,
  37. Actions = {
  38. Ignore = {
  39. Name = "Okay!",
  40. Callback = function()
  41. print("The user tapped Okay!")
  42. end
  43. }
  44. },
  45. })
  46.  
  47. -- Discord Tab with Invite Links (Codex Hub, ScriptBin, and Serial.xyz)
  48. local DiscordTab = Window:CreateTab("Discord", nil)
  49. local DiscordSection = DiscordTab:CreateSection("Invite Links")
  50. DiscordTab:CreateLabel("Join the Codex Hub community!")
  51. DiscordTab:CreateButton({
  52. Name = "Join Codex Hub",
  53. Callback = function()
  54. setclipboard("https://discord.gg/7jezJM6Z7A") -- Codex Hub invite URL
  55. Rayfield:Notify({
  56. Title = "Discord Link",
  57. Content = "Codex Hub invite link copied to clipboard!",
  58. Duration = 4
  59. })
  60. end
  61. })
  62.  
  63. DiscordTab:CreateLabel("Join the ScriptBin community!")
  64. DiscordTab:CreateButton({
  65. Name = "Join ScriptBin",
  66. Callback = function()
  67. setclipboard("https://discord.gg/UEJuy6xaVK") -- ScriptBin invite URL
  68. Rayfield:Notify({
  69. Title = "Discord Link",
  70. Content = "ScriptBin invite link copied to clipboard!",
  71. Duration = 4
  72. })
  73. end
  74. })
  75.  
  76. DiscordTab:CreateLabel("Join the Serial.xyz community!")
  77. DiscordTab:CreateButton({
  78. Name = "Join Serial.xyz",
  79. Callback = function()
  80. setclipboard("https://discord.gg/RCMb9KYPx3") -- Serial.xyz invite URL
  81. Rayfield:Notify({
  82. Title = "Discord Link",
  83. Content = "Serial.xyz invite link copied to clipboard!",
  84. Duration = 4
  85. })
  86. end
  87. })
  88.  
  89. -- Aimbot Settings Button
  90. local Button = MainTab:CreateButton({
  91. Name = "Lock",
  92. Callback = function()
  93. -- Initialize Aimbot Settings
  94. getgenv().Aimbot = {
  95. Status = true,
  96. Keybind = 'C',
  97. Hitpart = 'HumanoidRootPart', -- Default to HumanoidRootPart, will adjust for headless players
  98. ['Prediction'] = {
  99. X = isPaidUser and 0.063221 or 0.1, -- Slightly higher for free users (better accuracy)
  100. Y = isPaidUser and 0.063221 or 0.1, -- Slightly higher for free users (better accuracy)
  101. },
  102. }
  103.  
  104. if getgenv().AimbotRan then
  105. return
  106. else
  107. getgenv().AimbotRan = true
  108. end
  109.  
  110. -- Aimbot Logic
  111. local RunService = game:GetService('RunService')
  112. local Workspace = game:GetService('Workspace')
  113. local Players = game:GetService('Players')
  114.  
  115. local LocalPlayer = Players.LocalPlayer
  116. local Camera = Workspace.CurrentCamera
  117. local Mouse = LocalPlayer:GetMouse()
  118.  
  119. local Player = nil -- Our target player
  120.  
  121. -- Get the closest player logic
  122. local GetClosestPlayer = function()
  123. local ClosestDistance, ClosestPlayer = 100000, nil
  124. for _, Player in pairs(Players:GetPlayers()) do
  125. if Player.Name ~= LocalPlayer.Name and Player.Character then
  126. local Character = Player.Character
  127. local Head = Character:FindFirstChild('Head')
  128. local TargetPart = Head or Character:FindFirstChild('HumanoidRootPart') -- Choose Head if it exists, otherwise use HumanoidRootPart
  129. if TargetPart then
  130. local Root, Visible = Camera:WorldToScreenPoint(TargetPart.Position)
  131. if not Visible then
  132. continue
  133. end
  134. Root = (Vector2.new(Mouse.X, Mouse.Y) - Vector2.new(Root.X, Root.Y)).Magnitude
  135. if Root < ClosestDistance then
  136. ClosestPlayer = Player
  137. ClosestDistance = Root
  138. end
  139. end
  140. end
  141. end
  142. return ClosestPlayer
  143. end
  144.  
  145. Mouse.KeyDown:Connect(function(keybind)
  146. if keybind == Aimbot.Keybind:lower() then
  147. Player = not Player and GetClosestPlayer() or nil
  148. end
  149. end)
  150.  
  151. RunService.RenderStepped:Connect(function()
  152. if not Player then
  153. return
  154. end
  155. if not Aimbot.Status then
  156. return
  157. end
  158. local Character = Player.Character
  159. if not Character then
  160. return
  161. end
  162. local Head = Character:FindFirstChild('Head')
  163. local TargetPart = Head or Character:FindFirstChild('HumanoidRootPart') -- Target head if exists, else use HumanoidRootPart
  164. if not TargetPart then
  165. return
  166. end
  167.  
  168. -- Slight randomness added, but less than before
  169. local randX = isPaidUser and 0 or math.random(-5, 5) * 0.01 -- Reduced randomness for better accuracy
  170. local randY = isPaidUser and 0 or math.random(-5, 5) * 0.01 -- Reduced randomness for better accuracy
  171.  
  172. -- Apply prediction with reduced randomness
  173. Camera.CFrame = CFrame.new(Camera.CFrame.Position, TargetPart.Position + TargetPart.Velocity * Vector3.new(Aimbot.Prediction.X + randX, Aimbot.Prediction.Y + randY, Aimbot.Prediction.X + randX))
  174. end)
  175. end,
  176. })
  177.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement