Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --aimbot
- local Camera = game:GetService("Workspace").CurrentCamera
- local Players = game:GetService("Players")
- local LocalPlayer = game:GetService("Players").LocalPlayer
- local function GetClosestPlayer()
- local ClosestPlayer = nil
- local FarthestDistance = math.huge
- for i, v in pairs(Players.GetPlayers(Players)) do
- if v ~= LocalPlayer and v.Character and v.Character.FindFirstChild(v.Character, "HumanoidRootPart") then
- local DistanceFromPlayer = (LocalPlayer.Character.HumanoidRootPart.Position - v.Character.HumanoidRootPart.Position).Magnitude
- if DistanceFromPlayer < FarthestDistance then
- FarthestDistance = DistanceFromPlayer
- ClosestPlayer = v
- end
- end
- end
- if ClosestPlayer then
- return ClosestPlayer
- end
- end
- local GameMetaTable = getrawmetatable(game)
- local OldGameMetaTableNamecall = GameMetaTable.__namecall
- setreadonly(GameMetaTable, false)
- GameMetaTable.__namecall = newcclosure(function(object, ...)
- local NamecallMethod = getnamecallmethod()
- local Arguments = {...}
- if tostring(NamecallMethod) == "FindPartOnRayWithIgnoreList" then
- local ClosestPlayer = GetClosestPlayer()
- if ClosestPlayer and ClosestPlayer.Character then
- Arguments[1] = Ray.new(Camera.CFrame.Position, (ClosestPlayer.Character.Head.Position - Camera.CFrame.Position).Unit * (Camera.CFrame.Position - ClosestPlayer.Character.Head.Position).Magnitude)
- end
- end
- return OldGameMetaTableNamecall(object, unpack(Arguments))
- end)
- setreadonly(GameMetaTable, true)
- --end--
- -- kustom notifier
- function Notify(titletxt, text, time)
- local GUI = Instance.new("ScreenGui")
- local Main = Instance.new("Frame", GUI)
- local title = Instance.new("TextLabel", Main)
- local message = Instance.new("TextLabel", Main)
- GUI.Name = "NotificationOof"
- GUI.Parent = game.CoreGui
- Main.Name = "MainFrame"
- Main.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
- Main.BorderSizePixel = 0
- Main.Position = UDim2.new(1, 5, 0, 50)
- Main.Size = UDim2.new(0, 330, 0, 100)
- title.BackgroundColor3 = Color3.new(0, 0, 0)
- title.BackgroundTransparency = 0.89999997615814
- title.Size = UDim2.new(1, 0, 0, 30)
- title.Font = Enum.Font.SourceSansSemibold
- title.Text = titletxt
- title.TextColor3 = Color3.new(1, 1, 1)
- title.TextSize = 17
- message.BackgroundColor3 = Color3.new(0, 0, 0)
- message.BackgroundTransparency = 1
- message.Position = UDim2.new(0, 0, 0, 30)
- message.Size = UDim2.new(1, 0, 1, -30)
- message.Font = Enum.Font.SourceSans
- message.Text = text
- message.TextColor3 = Color3.new(1, 1, 1)
- message.TextSize = 16
- wait(0.1)
- Main:TweenPosition(UDim2.new(1, -330, 0, 50), "Out", "Sine", 0.5)
- wait(time)
- Main:TweenPosition(UDim2.new(1, 5, 0, 50), "Out", "Sine", 0.5)
- wait(0.6)
- GUI:Destroy();
- end
- --end--
- Notify("AIMBOT ON✅", "make sure u are R6 or it will bug!", 5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement