Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Flag to distinguish between paid and free users
- local isPaidUser = true -- Set to true for paid users
- local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
- local Window = Rayfield:CreateWindow({
- Name = "Cazware",
- LoadingTitle = "loading...",
- LoadingSubtitle = "by Caz",
- ConfigurationSaving = {
- Enabled = true,
- FolderName = nil, -- Create a custom folder for your hub/game
- FileName = "Cazware"
- },
- KeySystem = true,
- KeySettings = {
- Title = "Cazware",
- Subtitle = "Key System",
- Note = "private lock",
- FileName = "Cazware",
- SaveKey = false,
- GrabKeyFromSite = false,
- Key = {"freecazware"} -- List of accepted keys
- }
- })
- -- Home Tab
- local MainTab = Window:CreateTab("Home", nil)
- local MainSection = MainTab:CreateSection("Main")
- -- Notify user that the system has loaded
- Rayfield:Notify({
- Title = "Loaded",
- Content = "Cazware",
- Duration = 4,
- Image = nil,
- Actions = {
- Ignore = {
- Name = "Okay!",
- Callback = function()
- print("The user tapped Okay!")
- end
- }
- },
- })
- -- Discord Tab with Invite Links (Codex Hub, ScriptBin, and Serial.xyz)
- local DiscordTab = Window:CreateTab("Discord", nil)
- local DiscordSection = DiscordTab:CreateSection("Invite Links")
- DiscordTab:CreateLabel("Join the Codex Hub community!")
- DiscordTab:CreateButton({
- Name = "Join Codex Hub",
- Callback = function()
- setclipboard("https://discord.gg/7jezJM6Z7A") -- Codex Hub invite URL
- Rayfield:Notify({
- Title = "Discord Link",
- Content = "Codex Hub invite link copied to clipboard!",
- Duration = 4
- })
- end
- })
- DiscordTab:CreateLabel("Join the ScriptBin community!")
- DiscordTab:CreateButton({
- Name = "Join ScriptBin",
- Callback = function()
- setclipboard("https://discord.gg/UEJuy6xaVK") -- ScriptBin invite URL
- Rayfield:Notify({
- Title = "Discord Link",
- Content = "ScriptBin invite link copied to clipboard!",
- Duration = 4
- })
- end
- })
- DiscordTab:CreateLabel("Join the Serial.xyz community!")
- DiscordTab:CreateButton({
- Name = "Join Serial.xyz",
- Callback = function()
- setclipboard("https://discord.gg/RCMb9KYPx3") -- Serial.xyz invite URL
- Rayfield:Notify({
- Title = "Discord Link",
- Content = "Serial.xyz invite link copied to clipboard!",
- Duration = 4
- })
- end
- })
- -- Aimbot Settings Button
- local Button = MainTab:CreateButton({
- Name = "Lock",
- Callback = function()
- -- Initialize Aimbot Settings
- getgenv().Aimbot = {
- Status = true,
- Keybind = 'C',
- Hitpart = 'HumanoidRootPart', -- Default to HumanoidRootPart, will adjust for headless players
- ['Prediction'] = {
- X = isPaidUser and 0.063221 or 0.1, -- Slightly higher for free users (better accuracy)
- Y = isPaidUser and 0.063221 or 0.1, -- Slightly higher for free users (better accuracy)
- },
- }
- if getgenv().AimbotRan then
- return
- else
- getgenv().AimbotRan = true
- end
- -- Aimbot Logic
- local RunService = game:GetService('RunService')
- local Workspace = game:GetService('Workspace')
- local Players = game:GetService('Players')
- local LocalPlayer = Players.LocalPlayer
- local Camera = Workspace.CurrentCamera
- local Mouse = LocalPlayer:GetMouse()
- local Player = nil -- Our target player
- -- Get the closest player logic
- local GetClosestPlayer = function()
- local ClosestDistance, ClosestPlayer = 100000, nil
- for _, Player in pairs(Players:GetPlayers()) do
- if Player.Name ~= LocalPlayer.Name and Player.Character then
- local Character = Player.Character
- local Head = Character:FindFirstChild('Head')
- local TargetPart = Head or Character:FindFirstChild('HumanoidRootPart') -- Choose Head if it exists, otherwise use HumanoidRootPart
- if TargetPart then
- local Root, Visible = Camera:WorldToScreenPoint(TargetPart.Position)
- if not Visible then
- continue
- end
- Root = (Vector2.new(Mouse.X, Mouse.Y) - Vector2.new(Root.X, Root.Y)).Magnitude
- if Root < ClosestDistance then
- ClosestPlayer = Player
- ClosestDistance = Root
- end
- end
- end
- end
- return ClosestPlayer
- end
- Mouse.KeyDown:Connect(function(keybind)
- if keybind == Aimbot.Keybind:lower() then
- Player = not Player and GetClosestPlayer() or nil
- end
- end)
- RunService.RenderStepped:Connect(function()
- if not Player then
- return
- end
- if not Aimbot.Status then
- return
- end
- local Character = Player.Character
- if not Character then
- return
- end
- local Head = Character:FindFirstChild('Head')
- local TargetPart = Head or Character:FindFirstChild('HumanoidRootPart') -- Target head if exists, else use HumanoidRootPart
- if not TargetPart then
- return
- end
- -- Slight randomness added, but less than before
- local randX = isPaidUser and 0 or math.random(-5, 5) * 0.01 -- Reduced randomness for better accuracy
- local randY = isPaidUser and 0 or math.random(-5, 5) * 0.01 -- Reduced randomness for better accuracy
- -- Apply prediction with reduced randomness
- 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))
- end)
- end,
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement