Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Farewell Infortality.
- -- Version: 2.82
- -- Instances:
- local ScreenGui = Instance.new("ScreenGui")
- local MainGUI = Instance.new("Frame")
- local TextLabel = Instance.new("TextLabel")
- local DST = Instance.new("TextButton")
- local SA = Instance.new("TextButton")
- local MI = Instance.new("TextButton")
- local ZZ = Instance.new("TextButton")
- local ESP = Instance.new("TextButton")
- local TextLabel_2 = Instance.new("TextLabel")
- local Aimbot = Instance.new("TextButton")
- local MP2 = Instance.new("TextButton")
- local MG = Instance.new("TextButton")
- local TextLabel_3 = Instance.new("TextLabel")
- local IB = Instance.new("TextButton")
- local CB = Instance.new("TextButton")
- local BAGP = Instance.new("TextButton")
- local TextLabel_4 = Instance.new("TextLabel")
- local TextLabel_5 = Instance.new("TextLabel")
- local TextLabel_6 = Instance.new("TextLabel")
- local TextLabel_7 = Instance.new("TextLabel")
- local ESP_2 = Instance.new("TextButton")
- local PFESP = Instance.new("TextButton")
- local Extras = Instance.new("Frame")
- local KNIFESIM = Instance.new("TextButton")
- local HILTON = Instance.new("TextButton")
- local CBRO = Instance.new("TextButton")
- local APOC = Instance.new("TextButton")
- local EXTRAS = Instance.new("TextButton")
- local Open = Instance.new("TextButton")
- local Close = Instance.new("TextButton")
- --Properties:
- ScreenGui.Parent = game.CoreGui
- MainGUI.Name = "Main GUI"
- MainGUI.Parent = ScreenGui
- MainGUI.BackgroundColor3 = Color3.new(1, 1, 1)
- MainGUI.Position = UDim2.new(0.219819099, 0, 0.110072792, 0)
- MainGUI.Size = UDim2.new(0, 464, 0, 383)
- MainGUI.Active = true
- MainGUI.Draggable = true
- TextLabel.Parent = MainGUI
- TextLabel.BackgroundColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- TextLabel.Position = UDim2.new(0, 0, -0.0496083535, 0)
- TextLabel.Size = UDim2.new(0, 464, 0, 19)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.Text = "Crcos And Sandals V2 (Money Hacks)"
- TextLabel.TextColor3 = Color3.new(1, 1, 1)
- TextLabel.TextSize = 14
- DST.Name = "DST"
- DST.Parent = MainGUI
- DST.BackgroundColor3 = Color3.new(1, 1, 1)
- DST.BorderColor3 = Color3.new(0.760784, 0.760784, 0.760784)
- DST.Position = UDim2.new(0.019396551, 0, 0.0156657957, 0)
- DST.Size = UDim2.new(0, 147, 0, 29)
- DST.Font = Enum.Font.SourceSans
- DST.Text = "Deep Space Tycoon Money"
- DST.TextColor3 = Color3.new(0, 0, 0)
- DST.TextSize = 14
- DST.MouseButton1Down:connect(function()
- local RStorage = game.ReplicatedStorage.RemoteEvents
- for i=1,1000 do
- RStorage.Codes.GRANDOPENING:FireServer()
- end
- end)
- SA.Name = "SA"
- SA.Parent = MainGUI
- SA.BackgroundColor3 = Color3.new(1, 1, 1)
- SA.BorderColor3 = Color3.new(0.760784, 0.760784, 0.760784)
- SA.Position = UDim2.new(0.019396551, 0, 0.112271532, 0)
- SA.Size = UDim2.new(0, 147, 0, 29)
- SA.Font = Enum.Font.SourceSans
- SA.Text = "Shark Attack (1 Gem Needed)"
- SA.TextColor3 = Color3.new(0, 0, 0)
- SA.TextSize = 14
- SA.MouseButton1Down:connect(function()
- game.ReplicatedStorage.Functions.TradeGem:InvokeServer("Green Gems","100000")
- end)
- MI.Name = "MI"
- MI.Parent = MainGUI
- MI.BackgroundColor3 = Color3.new(1, 1, 1)
- MI.BorderColor3 = Color3.new(0.760784, 0.760784, 0.760784)
- MI.Position = UDim2.new(0.019396551, 0, 0.20887728, 0)
- MI.Size = UDim2.new(0, 147, 0, 29)
- MI.Font = Enum.Font.SourceSans
- MI.Text = "Monster Island "
- MI.TextColor3 = Color3.new(0, 0, 0)
- MI.TextSize = 14
- MI.MouseButton1Down:connect(function()
- while wait(0.1) do
- game.Players.LocalPlayer.ChangeStat:InvokeServer("Update","Gold", 1000000)
- end
- end)
- ZZ.Name = "ZZ"
- ZZ.Parent = MainGUI
- ZZ.BackgroundColor3 = Color3.new(1, 1, 1)
- ZZ.BorderColor3 = Color3.new(0.760784, 0.760784, 0.760784)
- ZZ.Position = UDim2.new(0.019396551, 0, 0.308093995, 0)
- ZZ.Size = UDim2.new(0, 147, 0, 29)
- ZZ.Font = Enum.Font.SourceSans
- ZZ.Text = "Zombie Zone"
- ZZ.TextColor3 = Color3.new(0, 0, 0)
- ZZ.TextSize = 14
- ZZ.MouseButton1Down:connect(function()
- game.ReplicatedStorage.RemoteEvents.UpgradePurchase:FireServer(-999999999, game.Players.LocalPlayer.ClipSize)
- end)
- ESP.Name = "ESP"
- ESP.Parent = MainGUI
- ESP.BackgroundColor3 = Color3.new(1, 1, 1)
- ESP.BorderColor3 = Color3.new(0.760784, 0.760784, 0.760784)
- ESP.Position = UDim2.new(0.019396551, 0, 0.772845924, 0)
- ESP.Size = UDim2.new(0, 147, 0, 29)
- ESP.Font = Enum.Font.SourceSans
- ESP.Text = "ESP"
- ESP.TextColor3 = Color3.new(0, 0, 0)
- ESP.TextSize = 14
- ESP.MouseButton1Down:connect(function()
- local lPlayer = game.Players.LocalPlayer;
- local lTeam = lPlayer.TeamColor;
- local mode = 1;
- local speed = .7; -- CFrame interpolation every second.
- local aimToggle = false;
- local enemyColor = BrickColor.Red();
- local friendlyColor = BrickColor.Blue();
- function onKeyPress(inputObject, gameProcessedEvent)
- if inputObject.KeyCode == Enum.KeyCode.RightAlt then
- if aimToggle == false then
- --aimToggle = true;
- else
- --aimToggle = false;
- end
- end
- if inputObject.KeyCode == Enum.KeyCode.RightControl then
- if mode == 1 then
- mode = 0;
- for i,v in pairs(game.Players:GetChildren()) do
- if v ~= lPlayer then
- if game.Workspace:FindFirstChild(v.Name) ~= nil then
- if v.Character:FindFirstChild("Torso") ~= nil then
- v.Character.Torso.eP.Frame.Visible = false;
- end
- for t,x in pairs(v.Character:GetChildren()) do
- if x.ClassName == "Part" then
- if v.Character:FindFirstChild("Head") ~= nil then
- if v.Character.Head:FindFirstChild("1") ~= nil then
- for l=1,6 do
- x:FindFirstChild(l).Frame.Visible = true;
- end
- end
- end
- end
- end
- end
- end
- end
- elseif mode == 0 then
- mode = 1;
- for i,v in pairs(game.Players:GetChildren()) do
- if v ~= lPlayer then
- if game.Workspace:FindFirstChild(v.Name) ~= nil then
- if v.Character:FindFirstChild("Torso") ~= nil then
- v.Character.Torso.eP.Frame.Visible = true;
- end
- for t,x in pairs(v.Character:GetChildren()) do
- if x.ClassName == "Part" then
- if v.Character:FindFirstChild("Head") ~= nil then
- if v.Character.Head:FindFirstChild("1") ~= nil then
- for l=1,6 do
- x:FindFirstChild(l).Frame.Visible = false;
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- game:GetService("UserInputService").InputBegan:connect(onKeyPress)
- local function ClosestPlayer(point)
- local OnTarget = false;
- local CurDis = nil;
- local CurPlayer = nil;
- for i,v in pairs(game.Players:GetChildren()) do
- if v ~= lPlayer then
- if CurDis == nil then
- CurDis = v:DistanceFromCharacter(lPlayer.Character.Torso.Position);
- CurPlayer = v;
- else
- if v:DistanceFromCharacter(lPlayer.Character.Torso.Position) < CurDis then
- CurDis = v:DistanceFromCharacter(lPlayer.Character.Torso.Position);
- CurPlayer = v;
- end
- end
- end
- end
- while aimToggle == true do
- for i = 0, 1, .01 do
- game.Workspace.CurrentCamera.CFrame = CFrame.new(Vector3.new(game.Workspace.CurrentCamera.CFrame.X,game.Workspace.CurrentCamera.CFrame.Y,game.Workspace.CurrentCamera.CFrame.Z), CurPlayer.Character.Torso.Position);
- end
- end
- end
- while true do
- for i,v in pairs(game.Players:GetChildren()) do
- local vChar = game.Workspace:WaitForChild(v.Name);
- if vChar.Torso:FindFirstChild("eP") == nil and v ~= lPlayer then
- local fLayer = Instance.new("BillboardGui");
- fLayer.Name = "eP";
- fLayer.Size = UDim2.new(8,0,8,0);
- fLayer.SizeOffset = Vector2.new(.5,-.55);
- fLayer.LightInfluence = 0;
- fLayer.AlwaysOnTop = true;
- fLayer.Adornee = vChar:WaitForChild("Torso");
- fLayer.Parent = vChar.Torso;
- local sLayer = Instance.new("Frame");
- sLayer.BackgroundTransparency = .5;
- sLayer.AnchorPoint = Vector2.new(.5,.5);
- if v.TeamColor == lTeam then
- sLayer.BackgroundColor = BrickColor.Blue();
- else
- sLayer.BackgroundColor = BrickColor.Red();
- end
- sLayer.BorderSizePixel = 0;
- sLayer.Size = UDim2.new(.5,0,.7,0);
- sLayer.Parent = fLayer;
- if mode == 0 then
- sLayer.Visible = false;
- end
- local fhLayer = Instance.new("BillboardGui");
- fhLayer.Name = "ePh";
- fhLayer.Size = UDim2.new(8,0,8,0);
- fhLayer.SizeOffset = Vector2.new(.25,-.13);
- fhLayer.LightInfluence = 0;
- fhLayer.AlwaysOnTop = true;
- fhLayer.Adornee = vChar:WaitForChild("Torso");
- fhLayer.Parent = vChar.Torso;
- local health = Instance.new("Frame");
- health.AnchorPoint = Vector2.new(0,.5);
- health.Name = "health";
- health.BorderSizePixel = 0;
- health.BackgroundColor3 = Color3.fromRGB(255,0,0);
- health.Size = UDim2.new((v.Character.Humanoid.Health/v.Character.Humanoid.MaxHealth)/2,0,.05,0);
- health.Parent = fhLayer;
- local fnLayer = Instance.new("BillboardGui");
- fnLayer.Name = "ePn";
- fnLayer.Size = UDim2.new(8,0,8,0);
- fnLayer.SizeOffset = Vector2.new(.25,0);
- fnLayer.LightInfluence = 0;
- fnLayer.AlwaysOnTop = true;
- fnLayer.Adornee = vChar:WaitForChild("Torso");
- fnLayer.Parent = vChar.Torso;
- local name = Instance.new("TextLabel");
- name.AnchorPoint = Vector2.new(0,.5);
- name.Name = "txtlabel";
- name.BorderSizePixel = 0;
- name.BackgroundTransparency = 1;
- name.Size = UDim2.new(.5,0,.05,0);
- name.Position = UDim2.new(0,0,0,0);
- name.TextScaled = true;
- name.Text = v.Name;
- name.TextColor3 = Color3.fromRGB(sLayer.BackgroundColor.r,sLayer.BackgroundColor.g,sLayer.BackgroundColor.b);
- name.Parent = fnLayer;
- for x,t in pairs(vChar:GetChildren()) do
- if t.ClassName == "Part" then
- for l = 1, 6 do
- local headLayer = Instance.new("SurfaceGui");
- headLayer.Name = l;
- headLayer.LightInfluence = 0;
- headLayer.AlwaysOnTop = true;
- headLayer.Adornee = vChar:WaitForChild(t.Name);
- headLayer.Parent = t;
- if l==1 then
- headLayer.Face = "Front";
- elseif l==2 then
- headLayer.Face = "Right";
- elseif l==3 then
- headLayer.Face = "Left";
- elseif l==4 then
- headLayer.Face = "Back";
- elseif l==5 then
- headLayer.Face = "Top";
- elseif l==6 then
- headLayer.Face = "Bottom";
- end
- local xLayer = Instance.new("Frame");
- xLayer.BackgroundTransparency = .5;
- xLayer.AnchorPoint = Vector2.new(0,0);
- if v.TeamColor == lTeam then
- xLayer.BackgroundColor = BrickColor.Blue();
- else
- xLayer.BackgroundColor = BrickColor.Red();
- end
- xLayer.BorderSizePixel = 0;
- xLayer.Size = UDim2.new(1,0,1,0);
- xLayer.Parent = headLayer;
- if mode == 1 then
- xLayer.Visible = false;
- end
- end
- end
- end
- else
- if v ~= lPlayer then
- v.Character.Torso.ePh.health.Size = UDim2.new((v.Character.Humanoid.Health/v.Character.Humanoid.MaxHealth)/2,0,.05,0);
- end
- end
- end
- wait(.3);
- end
- end)
- TextLabel_2.Parent = MainGUI
- TextLabel_2.BackgroundColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- TextLabel_2.Position = UDim2.new(0, 0, 0.704960823, 0)
- TextLabel_2.Size = UDim2.new(0, 464, 0, 19)
- TextLabel_2.Font = Enum.Font.SourceSans
- TextLabel_2.Text = "Crocs And Sandals v2 (Other Hacks)"
- TextLabel_2.TextColor3 = Color3.new(1, 1, 1)
- TextLabel_2.TextSize = 14
- Aimbot.Name = "Aimbot"
- Aimbot.Parent = MainGUI
- Aimbot.BackgroundColor3 = Color3.new(1, 1, 1)
- Aimbot.BorderColor3 = Color3.new(0.760784, 0.760784, 0.760784)
- Aimbot.Position = UDim2.new(0.357758611, 0, 0.772845924, 0)
- Aimbot.Size = UDim2.new(0, 147, 0, 29)
- Aimbot.Font = Enum.Font.SourceSans
- Aimbot.Text = "Mad Paintball 2 Aimbot"
- Aimbot.TextColor3 = Color3.new(0, 0, 0)
- Aimbot.TextSize = 14
- Aimbot.MouseButton1Down:connect(function()
- _G.HitBoxSize = Vector3.new(300, 300, 300)
- game:service('RunService').RenderStepped:connect(function()
- for i, v in pairs(game.Workspace.Camera.GameElementContainer.HITBOXES:GetDescendants()) do
- if v:IsA('Part') and v.Size ~= _G.HitBoxSize and v.Transparency ~= 0 and v.Name == 'Head' then v.Size = _G.HitBoxSize
- v.Transparency = 0
- end
- end
- end)
- end)
- MP2.Name = "MP2"
- MP2.Parent = MainGUI
- MP2.BackgroundColor3 = Color3.new(1, 1, 1)
- MP2.BorderColor3 = Color3.new(0.760784, 0.760784, 0.760784)
- MP2.Position = UDim2.new(0.357758611, 0, 0.0156657994, 0)
- MP2.Size = UDim2.new(0, 147, 0, 29)
- MP2.Font = Enum.Font.SourceSans
- MP2.Text = "Mad Paintball 2"
- MP2.TextColor3 = Color3.new(0, 0, 0)
- MP2.TextSize = 14
- MP2.MouseButton1Down:connect(function()
- game.ReplicatedStorage.GameMain.Select:FireServer("BuySlot", {"2Slots1Day", -2e99})
- end)
- MG.Name = "MG"
- MG.Parent = MainGUI
- MG.BackgroundColor3 = Color3.new(1, 1, 1)
- MG.BorderColor3 = Color3.new(0.760784, 0.760784, 0.760784)
- MG.Position = UDim2.new(0.357758611, 0, 0.112271547, 0)
- MG.Size = UDim2.new(0, 147, 0, 29)
- MG.Font = Enum.Font.SourceSans
- MG.Text = "Mini Golf"
- MG.TextColor3 = Color3.new(0, 0, 0)
- MG.TextSize = 14
- MG.MouseButton1Down:connect(function()
- local credit = game.Players.LocalPlayer.PlayerGui.Credits.Credit.Text
- game.Workspace.UpdateCredit:FireServer(2147483512 - credit)
- end)
- TextLabel_3.Parent = MainGUI
- TextLabel_3.BackgroundColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- TextLabel_3.Position = UDim2.new(0.706896544, 0, 0, 0)
- TextLabel_3.Size = UDim2.new(0, 136, 0, 19)
- TextLabel_3.Font = Enum.Font.SourceSans
- TextLabel_3.Text = "Credits:"
- TextLabel_3.TextColor3 = Color3.new(1, 1, 1)
- TextLabel_3.TextSize = 14
- IB.Name = "IB"
- IB.Parent = MainGUI
- IB.BackgroundColor3 = Color3.new(1, 1, 1)
- IB.BorderColor3 = Color3.new(0.760784, 0.760784, 0.760784)
- IB.Position = UDim2.new(0.356546223, 0, 0.206829578, 0)
- IB.Size = UDim2.new(0, 147, 0, 29)
- IB.Font = Enum.Font.SourceSans
- IB.Text = "Ice Breaker"
- IB.TextColor3 = Color3.new(0, 0, 0)
- IB.TextSize = 14
- IB.MouseButton1Down:connect(function()
- while wait() do
- game.ReplicatedStorage.removeDebris:FireServer(30)
- end
- end)
- CB.Name = "CB"
- CB.Parent = MainGUI
- CB.BackgroundColor3 = Color3.new(1, 1, 1)
- CB.BorderColor3 = Color3.new(0.760784, 0.760784, 0.760784)
- CB.Position = UDim2.new(0.356546223, 0, 0.306928247, 0)
- CB.Size = UDim2.new(0, 147, 0, 29)
- CB.Font = Enum.Font.SourceSans
- CB.Text = "Crate Bait"
- CB.TextColor3 = Color3.new(0, 0, 0)
- CB.TextSize = 14
- CB.MouseButton1Down:connect(function()
- while wait(0.1)do
- workspace.GiveRobux:FireServer()
- end
- end)
- BAGP.Name = "BAGP"
- BAGP.Parent = MainGUI
- BAGP.BackgroundColor3 = Color3.new(1, 1, 1)
- BAGP.BorderColor3 = Color3.new(0.760784, 0.760784, 0.760784)
- BAGP.Position = UDim2.new(0.0186242461, 0, 0.406088203, 0)
- BAGP.Size = UDim2.new(0, 147, 0, 29)
- BAGP.Font = Enum.Font.SourceSans
- BAGP.Text = "Boys And Girls Paradise"
- BAGP.TextColor3 = Color3.new(0, 0, 0)
- BAGP.TextSize = 14
- BAGP.MouseButton1Down:connect(function()
- game.ReplicatedStorage.GameEvents.PurchaseItemFunction:InvokeServer("BlueJayFedora", -999999)
- end)
- TextLabel_4.Parent = MainGUI
- TextLabel_4.BackgroundColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- TextLabel_4.Position = UDim2.new(0.706896544, 0, 0.0496083535, 0)
- TextLabel_4.Size = UDim2.new(0, 136, 0, 19)
- TextLabel_4.Font = Enum.Font.SourceSans
- TextLabel_4.Text = "Syntax"
- TextLabel_4.TextColor3 = Color3.new(1, 1, 1)
- TextLabel_4.TextSize = 14
- TextLabel_5.Parent = MainGUI
- TextLabel_5.BackgroundColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- TextLabel_5.Position = UDim2.new(0.706896544, 0, 0.0992167071, 0)
- TextLabel_5.Size = UDim2.new(0, 136, 0, 19)
- TextLabel_5.Font = Enum.Font.SourceSans
- TextLabel_5.Text = "Luci"
- TextLabel_5.TextColor3 = Color3.new(1, 1, 1)
- TextLabel_5.TextSize = 14
- TextLabel_6.Parent = MainGUI
- TextLabel_6.BackgroundColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- TextLabel_6.Position = UDim2.new(0.706896544, 0, 0.754569173, 0)
- TextLabel_6.Size = UDim2.new(0, 136, 0, 19)
- TextLabel_6.Font = Enum.Font.SourceSans
- TextLabel_6.Text = "Discord: Syntax#3736"
- TextLabel_6.TextColor3 = Color3.new(1, 1, 1)
- TextLabel_6.TextSize = 14
- TextLabel_7.Parent = MainGUI
- TextLabel_7.BackgroundColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- TextLabel_7.Position = UDim2.new(0.706896544, 0, 0.148825064, 0)
- TextLabel_7.Size = UDim2.new(0, 136, 0, 19)
- TextLabel_7.Font = Enum.Font.SourceSans
- TextLabel_7.Text = "_Cry_"
- TextLabel_7.TextColor3 = Color3.new(1, 1, 1)
- TextLabel_7.TextSize = 14
- ESP_2.Name = "ESP"
- ESP_2.Parent = MainGUI
- ESP_2.BackgroundColor3 = Color3.new(1, 1, 1)
- ESP_2.BorderColor3 = Color3.new(0.760784, 0.760784, 0.760784)
- ESP_2.Position = UDim2.new(0.019396551, 0, 0.872062624, 0)
- ESP_2.Size = UDim2.new(0, 147, 0, 29)
- ESP_2.Font = Enum.Font.SourceSans
- ESP_2.Text = "Aimworks 3.2"
- ESP_2.TextColor3 = Color3.new(0, 0, 0)
- ESP_2.TextSize = 14
- ESP_2.MouseButton1Down:connect(function()
- -- /$$$$$$ /$$$$$$ /$$ /$$ /$$ /$$ /$$$$$$ /$$$$$$$ /$$ /$$ /$$$$$$ /$$$$$$ /$$$$$$
- -- /$$__ $$|_ $$_/| $$$ /$$$| $$ /$ | $$ /$$__ $$| $$__ $$| $$ /$$/ /$$__ $$ /$$__ $$ /$$__ $$
- -- | $$ \ $$ | $$ | $$$$ /$$$$| $$ /$$$| $$| $$ \ $$| $$ \ $$| $$ /$$/ | $$ \__/ |__/ \ $$ |__/ \ $$
- -- | $$$$$$$$ | $$ | $$ $$/$$ $$| $$/$$ $$ $$| $$ | $$| $$$$$$$/| $$$$$/ | $$$$$$ /$$$$$/ /$$$$$$/
- -- | $$__ $$ | $$ | $$ $$$| $$| $$$$_ $$$$| $$ | $$| $$__ $$| $$ $$ \____ $$ |___ $$ /$$____/
- -- | $$ | $$ | $$ | $$\ $ | $$| $$$/ \ $$$| $$ | $$| $$ \ $$| $$\ $$ /$$ \ $$ /$$ \ $$ | $$
- -- | $$ | $$ /$$$$$$| $$ \/ | $$| $$/ \ $$| $$$$$$/| $$ | $$| $$ \ $$| $$$$$$/ | $$$$$$//$$| $$$$$$$$
- -- |__/ |__/|______/|__/ |__/|__/ \__/ \______/ |__/ |__/|__/ \__/ \______/ \______/|__/|________/
- -- "IT ACTUALLY WORKS THIS TIME"
- -- AIMWORKS 3.2: NEARLY DECENT..
- -- THE GREATEST AIMBOT ON ROBLOX
- -- AND PROBABLY THE BUGGIEST TOO
- -- BUT WHATEVER IT'S GOOD ENOUGH
- -- WRITTEN BY UNREAL AND SCAPTER
- -- THANKS AUSTIN, CACA22, SAFAZI
- -- THANKS THETRUERIAS TOO UR GR8
- -- THANKS FOR CHOOSING FAZE SHIT
- -- SHOUTOUT TO CHROME/XETRICS XD
- -- i should probably be using userinputservice
- -- tbh i shud probably get working on proper FOV stuffs
- -- prune dead vars
- -- FOV restrictions
- -- ESPP :D(Chams - Scap)
- -- added in this version (3.1): huge amount of bug fixes, even uglier code (i keep impressing myself with how bad this can get... i need 2 rewrite this soon),
- local accuracy = 80
- local aimkey = "f" --Disable/Enable AimWorks
- local toggle_teamcheck = "h" --Ez-Pz Fix so people don't have to rejoin on FFA/TDM Games.
- local lassokey = "q" --Disable/Enable Lasso Rendering
- local control = "p" --Hide/UnHide Gui
- local headshot = 35
- local ignoreFOV = true
- local ignoreWalls = true
- local perfect_aim = true
- local perfect_aim_firstperson_distance = 28
- local rage_triggers = false --Elysian Only
- local RenderLassos = true
- local ShootingTeam = false -- will target neutral people anyways XDDD
- local SpreadControlRadius = Vector3.new(25, 25, 15) -- the larger you make those numbers the more likely your bullet is to hit. anything above 25, 25, 25 is a bit much. try 15, 15, 5
- local trigger_speed = 0.1
- local triggers = false --Elysian Only
- local Chams = true --Works now!??!!?
- --Player Whitelist(People who don't get shot at.)
- local Whitelist = {"ihanks", "Lua_Environment", "like_clockwork", "Gin_Freecs", "AimWorks"}
- for i,v in pairs(game.Players:GetChildren()) do --Adds anyone in-game who's friends with the Currenet player into the list.
- if game.Players.LocalPlayer:IsFriendsWith(v.userId) then
- table.insert(Whitelist, v.Name)
- end
- end
- game.Players.PlayerAdded:connect(function(player) --Adds friends to whitelist if they're just joining the game.
- if game.Players.LocalPlayer:IsFriendsWith(player.userId) then
- table.insert(Whitelist, player.Name)
- end
- end)
- -- todo --
- _G.SwordFightMode = false -- stuff that i am testing goes in _G. so i can toggle it
- -- aim engine vars
- -- todo: more priorities
- -- prune dead vars
- local aim_through_list = {nil, nil, nil}
- local bone_name
- local camera = workspace.CurrentCamera
- local closest_distance
- local deathBlock
- local distance
- local FilteringEnabled = workspace.FilteringEnabled
- local huge = math.huge
- local in_fov
- local lasso
- local localplayer = game:GetService("Players").LocalPlayer
- local most_viable_player
- local mouse = localplayer:GetMouse()
- local CreatorId = game.CreatorId
- local players_service = game:GetService("Players")
- local position
- local random = math.random
- local ray = Ray.new
- local ray_start
- local running = true
- local sleeping
- local target
- local tele_bone
- local targ_bone
- local ticksslept = 0
- local trigger_debounce
- local vector
- local viableplayers = {}
- local function FindInstance(instance_className, search_directory) -- i can inline this in a LOT of places... plus i can very very easily make this return a table of all found parts if a certain parameter is passed... might add that feature to my boilerplate
- if not search_directory then return end
- for i, v in pairs(search_directory:GetChildren()) do
- if v.className == instance_className then
- return(v)
- end
- end
- end
- local function CreateBlockOfDeath()
- if deathBlock then deathBlock:Destroy() end
- deathBlock = Instance.new("Part", workspace)
- deathBlock.CanCollide = false
- deathBlock.Size = SpreadControlRadius
- deathBlock.Locked = true
- mouse.TargetFilter = deathBlock
- return deathBlock -- unnecessary
- end -- Finished
- local function ReturnsScreenCoordinatesAsVectorAndFOVChecksAsBool(player, bone) -- note: figure out what i wanted to do with datas in here
- if not bone then
- return {_, false}
- end
- return camera:WorldToScreenPoint(player.Character[bone].Position)
- end
- local function ReturnsPlayerCheckResults(player)
- -- Checks teams. If we won't shoot teammates and they're a teammate when we're not neutral, target them. We do this now because it can save a lot of FPS.
- if not ShootingTeam then -- if not shooting teammates
- if player.TeamColor == localplayer.TeamColor then -- if we're not shooting teammates and they're teammates
- if not (player.Neutral and localplayer.Neutral) then -- if we're not shooting teammates and they're teammates and they're not neutral
- return false
- end
- end
- end
- --Read through player 'Whitelist'
- for i,v in pairs(Whitelist) do
- if player.Name == v then
- return false
- end
- end
- -- Checks if person is yourself.
- if player == localplayer then
- return false
- end
- -- Checks if the player can be hurt.
- if FindInstance("ForceField", player.Character) or FindInstance("Humanoid", player.Character, true).MaxHealth == huge then
- return false
- end
- -- Checks if they're dead.
- if FindInstance("Humanoid", player.Character, true).Health == 0 then
- return false
- end
- -- Checks if person is in FOV.
- local screen_position, in_fov = ReturnsScreenCoordinatesAsVectorAndFOVChecksAsBool(player, "Torso")
- if not (in_fov or ignoreFOV) then
- return false
- else
- return player, screen_position
- end
- end
- local function ReturnsBoneOrFalse(player)
- if perfect_aim then
- return (FilteringEnabled and "Head" or "Left Arm") -- should be Head or left arm
- end
- if not (random(1, 100) <= accuracy) then
- return false
- end
- if (random(1, 100) <= headshot) and FilteringEnabled then
- return "Head"
- end
- return "Left Arm" -- should be left arm
- end
- -- rewrite for cursor distance checks then optimize
- local function ReturnsViablePlayerOrNil() -- this is a clusterfuck i should probably branch this off into more functions... especially one for raycasting
- aim_through_list[1], aim_through_list[2] = deathBlock, localplayer.Character
- local distance = 1000
- local closest_distance = 1000
- local most_viable_player = nil
- -- FPS optimizations for shitty pcs... should more than double FPS in some situations. not really necessary for me :D..
- -- if sleeping and ticksslept ~= 15 then
- -- ticksslept = ticksslept + 1
- -- return target
- -- end
- local your_character = localplayer.Character
- local your_head = your_character and your_character:FindFirstChild "Head"
- for i, player_being_checked in pairs(players_service:GetPlayers()) do -- getplayers is underrated
- local player_or_false, targets_coordinates = ReturnsPlayerCheckResults(player_being_checked)
- if player_or_false then
- local char = player_being_checked.Character
- local target_torso = char and char:FindFirstChild "Torso" -- where the ray will aim/shoot for
- if target_torso then
- -- phantom fuckery tbh
- -- aim ahead (why arent we just taking advantage of ignorerays austin tf) of gun sights... Swag :O
- if (camera.Focus.p - camera.CoordinateFrame.p).magnitude <= 1 then
- ray_start = your_head.Position + your_head.CFrame.lookVector * 10 + Vector3.new(0, 3, 0)
- else
- ray_start = your_head.Position + Vector3.new(0, 2, 0)
- end
- -- ray_start = your_head.Position + your_head.CFrame.lookVector * 10 + Vector3.new(0, 3, 0) -- doododoo do DOODODOododoDoERFAhaagr
- if not targets_coordinates then -- unnecessary rn
- distance = (Vector2.new(targets_coordinates.X, targets_coordinates.Y) - Vector2.new(mouse.X, mouse.Y)).magnitude -- broken
- else
- distance = (Vector2.new(targets_coordinates.X, targets_coordinates.Y) - Vector2.new(mouse.X, mouse.Y)).magnitude
- end
- vector = (target_torso.Position - ray_start)
- -- distance = vector -- bug
- if (not targets_coordinates) or (distance <= closest_distance) then
- -- create ray that starts at 'ray_start' and points towards the target
- local new_ray = ray(ray_start, vector.unit * 1000) -- "fire" ray and make sure to ignore our own character
- local hit, position = workspace:FindPartOnRayWithIgnoreList(new_ray, aim_through_list) -- check if the ray hit anything and if it's a descendant of the target's character
- if (hit and hit:isDescendantOf(char)) or ignoreWalls then
- -- only change closest_distance if the target character is visible
- closest_distance = distance
- most_viable_player = player_being_checked
- end -- hit or ignore walls
- end -- meets distance or no priority
- end -- closes player_or_false
- end -- closes player_or_false check
- end -- closes table loop
- blockName = ReturnsBoneOrFalse(most_viable_player)
- sleeping = true
- return most_viable_player
- end -- closes function
- function CreateChams()
- if Chams then
- for _,q in pairs(camera:GetChildren()) do
- if q:IsA("BoxHandleAdornment") then
- q:Destroy()
- end
- end
- for _,v in pairs(game.Players:GetChildren()) do
- if v.Name ~= game.Players.LocalPlayer.Name and v.Character then
- for _,c in pairs(v.Character:GetChildren()) do
- if c.Name ~= "Head" and c:IsA("BasePart") then
- for _,p in pairs(Whitelist) do
- if v.TeamColor == game.Players.LocalPlayer.TeamColor or v.Name == p then
- local esp = Instance.new("BoxHandleAdornment", camera)
- esp.Color3 = Color3.new(0, 255, 0)
- esp.Size = c.Size
- esp.AlwaysOnTop = true
- esp.ZIndex = 1
- esp.Adornee = c
- elseif v.TeamColor ~= game.Players.LocalPlayer.TeamColor then
- local esp = Instance.new("BoxHandleAdornment", camera)
- esp.Color3 = Color3.new(255, 0, 0)
- esp.Size = c.Size
- esp.AlwaysOnTop = true
- esp.ZIndex = 1
- esp.Adornee = c
- end
- end
- end
- end
- end
- end
- end
- end
- CreateChams()
- game.Workspace.ChildAdded:connect(function(child)
- if child:IsA("Model") or child:IsA("Folder") or child:IsA("BasePart") then
- CreateChams()
- end
- end)
- game.Workspace.ChildRemoved:connect(function(child)
- if child:IsA("Model") or child:IsA("Folder") then
- CreateChams()
- end
- end)
- game.Players.LocalPlayer.Changed:connect(function()
- CreateChams()
- end)
- local function TargetPlayer(player) -- this needs to be refactored
- -- not needed anymore unless you want sticky aim (this can be a good thing) or the aimbot lags you
- -- sticky aim would be defined as "wont instantly target another guy if they enter the screen"
- -- if ticksslept == 15 then -- ok
- -- ticksslept = 0
- -- sleeping = false
- -- end
- if aim_through_list[3] then
- aim_through_list[3].Position = aim_through_list[3].Position + Vector3.new(0,200,0)
- table.remove(aim_through_list, 3)
- end
- if not player then -- i see this and i pretty much give up on rewriting
- if lasso then lasso:Destroy() lasso = nil end -- this feels wrong. i cant stand reusing code outside functions >:(
- target = nil
- lasso = Instance.new("SelectionPointLasso", camera)
- lasso.Humanoid, lasso.Point = FindInstance("Humanoid", localplayer.Character, true), mouse.Hit.p
- lasso.Color3 = Color3.new(0,255,0)
- return -- this one line here determines a surprising amount about how the aimbot works XD
- -- thats not a good thing :(
- end
- if RenderLassos then -- should be snaplassos... always gon be lassos tbh
- if lasso then lasso:Destroy() lasso = nil end
- lasso = Instance.new("SelectionPartLasso", camera)
- lasso.Humanoid, lasso.Part = FindInstance("Humanoid", player.Character, true), game.Players.LocalPlayer.Character.Torso
- lasso.Color3 = Color3.new(0,255,0)
- end
- bone_name = ReturnsBoneOrFalse(player)
- if player.Character.Head and bone_name then
- -- this lets us force headshots :D
- tele_bone = player.Character[bone_name]
- tele_bone.Parent = player.Character
- tele_bone.Size = SpreadControlRadius
- tele_bone.CanCollide = false
- tele_bone.CFrame = CFrame.new(workspace.CurrentCamera.CoordinateFrame.p + workspace.CurrentCamera.CoordinateFrame.lookVector * perfect_aim_firstperson_distance, workspace.CurrentCamera.CoordinateFrame.p) -- // thx to my main man safazi,,,, for this and for showing me the magic of coordinateframe <3
- tele_bone.Transparency=1
- tele_bone:ClearAllChildren()
- table.insert(aim_through_list, 3, tele_bone)
- -- swager
- target = player
- return player
- end
- if bone_name then
- deathBlock.Parent = player.Character
- deathBlock.CanCollide = false
- deathBlock.Name = bone_name
- else
- return
- end
- target = player
- return player
- end
- --[[
- INIT PROCESS DOCUMENTATION:
- 1] CREATE DEATHBLOCK
- 2] MAKE DEATHBLOCK REGENERATE
- 3] USE BINDTORENDERSTEP TO START AIMBOT LOOP
- 4] DETECT KEY INPUT (WITHOUT USERINPUTSERVICE. I KNOW THAT IM LAME)
- ]]--
- CreateBlockOfDeath()
- workspace.DescendantRemoving:connect(function(instance)
- if instance == deathBlock then CreateBlockOfDeath() end
- end)
- -- Keeps blockie safe :33 XD
- -- test? havent tried
- local function shoot() -- elysian only :33333 XDd. bother jordan, not mememememe.
- if not mouse1press then return end
- if trigger_debounce then return end
- trigger_debounce = true
- if rage_triggers and mouse1press() then
- mouse1press()
- wait(0.1)
- mouse1release()
- elseif mouse1press then
- mouse1press()
- wait(0)
- mouse1release()
- wait(trigger_speed)
- end
- trigger_debounce = false
- end
- -- refaactorrrr
- game:GetService("RunService"):BindToRenderStep("First", Enum.RenderPriority.First.Value, function() -- another clusterfuck
- if running then
- if localplayer.Character then -- pretty sure i do this in getviableplayer lmao tbh
- TargetPlayer(ReturnsViablePlayerOrNil())
- if target and target.Character then
- if localplayer:GetMouse().Target == deathBlock then return end -- praise targetfilter!
- -- later
- -- deathBlock.CFrame = CFrame.new(localplayer.Character.Head.Position + (mouse.Hit.p + localplayer.Character.Head.Position).unit * 16)
- -- print(deathBlock)
- if triggers then shoot() end
- else
- deathBlock.Parent = workspace
- end
- end
- end
- end)
- local Keys = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui)
- Keys.Name = "AimWorks Container"
- local Frame = Instance.new("Frame", Keys)
- Frame.Name = "Holder"
- Frame.BackgroundColor3 = Color3.new(62/255, 62/255, 62/255)
- Frame.BackgroundTransparency = 0.3
- Frame.BorderSizePixel = 2
- Frame.BorderColor3 = Color3.new(255,255,255)
- Frame.Size = UDim2.new(0, 200, 0, 300)
- Frame.Position = UDim2.new(0, 0, 0.5, 0)
- local Aim = Instance.new("TextLabel", Frame)
- Aim.BackgroundTransparency = 1
- Aim.Size = UDim2.new(0, 200, 0, 100)
- Aim.FontSize = "Size32"
- Aim.Font = "SourceSans"
- Aim.Text = " Rendering Lassos: "..tostring(RenderLassos).." \n Key: "..lassokey
- Aim.TextColor3 = Color3.new(255, 255, 255)
- Aim.TextXAlignment = "Left"
- Aim.TextStrokeTransparency = 0
- Aim.TextYAlignment = "Top"
- Aim.TextWrapped = true
- local Team = Instance.new("TextLabel", Frame)
- Team.Position = UDim2.new(0, 0, 0, 100)
- Team.BackgroundTransparency = 1
- Team.Size = UDim2.new(0, 200, 0, 100)
- Team.FontSize = "Size32"
- Team.Font = "SourceSans"
- Team.Text = " Team Check: \n "..tostring(ShootingTeam).." \n Key: "..toggle_teamcheck
- Team.TextColor3 = Color3.new(255, 255, 255)
- Team.TextXAlignment = "Left"
- Team.TextStrokeTransparency = 0
- Team.TextYAlignment = "Top"
- Team.TextWrapped = true
- local Run = Instance.new("TextLabel", Frame)
- Run.Position = UDim2.new(0, 0, 0, 200)
- Run.BackgroundTransparency = 1
- Run.Size = UDim2.new(0, 200, 0, 100)
- Run.FontSize = "Size32"
- Run.Font = "SourceSans"
- Run.Text = " Running: "..tostring(running).." \n Key: "..aimkey
- Run.TextColor3 = Color3.new(255, 255, 255)
- Run.TextXAlignment = "Left"
- Run.TextStrokeTransparency = 0
- Run.TextYAlignment = "Top"
- Run.TextWrapped = true
- local keydown = mouse.KeyDown:connect(function(keys)
- if (keys == aimkey) then
- running = not running
- if (running) then
- print("[SILENTAIM] activated.")
- Run.Text = " Running: "..tostring(running).." \n Key: "..aimkey
- else
- print("[SILENTAIM] deactivated.")
- Run.Text = " Running: "..tostring(running).." \n Key: "..aimkey
- end
- end
- end)
- local keydowns = mouse.KeyDown:connect(function(keys)
- if (keys == toggle_teamcheck) then
- if (ShootingTeam) then
- print("[SILENTAIM] Team Shooting deactivated")
- ShootingTeam = false
- Team.Text = " Team Check: \n "..tostring(ShootingTeam).." \n Key: "..toggle_teamcheck
- else
- print("[SILENTAIM] Team Shooting activated")
- ShootingTeam = true
- Team.Text = " Team Check: \n "..tostring(ShootingTeam).." \n Key: "..toggle_teamcheck
- end
- end
- end)
- local keydowns = mouse.KeyDown:connect(function(keys)
- if (keys == lassokey) then
- if (RenderLassos) then
- print("[SILENTAIM] No Longer Rendering Lassos")
- RenderLassos = false
- Aim.Text = " Rendering Lassos: "..tostring(RenderLassos).." \n Key: "..lassokey
- else
- print("[SILENTAIM] Rendering Lassos")
- RenderLassos = true
- Aim.Text = " Rendering Lassos: "..tostring(RenderLassos).." \n Key: "..lassokey
- end
- end
- end)
- local keydowns = mouse.KeyDown:connect(function(keys)
- if (keys == control) then
- if (Frame.Visible == true) then
- Frame.Visible = false
- else
- Frame.Visible = true
- end
- end
- end)
- end)
- PFESP.Name = "PFESP"
- PFESP.Parent = MainGUI
- PFESP.BackgroundColor3 = Color3.new(1, 1, 1)
- PFESP.BorderColor3 = Color3.new(0.760784, 0.760784, 0.760784)
- PFESP.Position = UDim2.new(0.355603427, 0, 0.872062624, 0)
- PFESP.Size = UDim2.new(0, 147, 0, 29)
- PFESP.Font = Enum.Font.SourceSans
- PFESP.Text = "PF ESP"
- PFESP.TextColor3 = Color3.new(0, 0, 0)
- PFESP.TextSize = 14
- PFESP.MouseButton1Down:connect(function()
- --Updated aimbot it will now work!
- ESP = true --Do you want ESP?
- Aimbot = true --Do you want Aimbot?
- IgnoreWalls = true --Do you want to shoot through walls?
- _G.Legit = true --Do you always want to shoot headshots?
- BeepEffect = true --Do you want it to make a sound when someone comes close to you from behind?
- BeepSound = 138081500 --What sound do you want to play when someone comes behind you (BeepEffect must be enabled for it to work)
- BeepSize = 8 --How large should the red dot be?
- BeepVolume = 1 --Max volume for the SoundID(1 is max, 0 is nothing.)
- TimeDelay = 6 --If you look at the person it won't beep again until the timedelay is up (BeepEffect must be enabled)
- SoundDelay = 2 --Time before a new sound is played. (Useful if many people spawn on the same person so you won't hear 999 beeps)
- DetectionTime = 1 --How long should you wait to make sure the person is looking at you to beep?
- BehindDetectionTime = 1 --How long should you wait to check if the person is behind you?
- Sniper = {"INTERVENTION", "REMINGTON 700", "AWS", "L115A3", "MOSIN NAGANT", "OBREZ"}
- SpecialSniper = {"BFG 50", "SFG 50"}
- WeakSniper = {"MK11", "SKS", "SCAR SSR", "DRAGUNOV SVU", "HENRY 45-70"}
- SMG = {"SCAR-H", "AG-3", "M4A1", "G36C", "M4", "L22", "SCAR PDW", "SR-3M", "P90", "AUG A3 PARA", "AK12", "AN-94", "AS VAL", "SCAR-L", "AUG A1", "M16A4", "G36", "M16A3", "AUG A2", "FAMAS", "AK44", "AUG A3", "L85A2", "HONEY BADGER", "AK74", "AKM", "M231"}
- WeakSMG = {"MP5K", "UMP45", "MP7", "MAC10", "MP5", "COLT SMG 635", "MP5SD", "MP10", "MP5/10", "KRISS VECTOR"}
- ShotGun = {"REMINGTON 870", "KSG 12", "KS-23M", "SERBU SHOTGUN"}
- LMG = {"COLT LMG", "M60", "AUG HBAR", "MG36", "L86 LSW", "RPK", "SCAR HAMR", "RPK74"}
- Other = {"M9", "GLOCK 17", "M1911", "DEAGLE 44", "GLOCK 18", "M93R", "TEC9", "MP412 REX"}
- Melee = {"KNIFE", "MACHETE"}
- warn("Version: 1.0.0, Welcome To Project Bear's ESP, Report bugs to the Project Bear Discord.")
- local camera = workspace.CurrentCamera
- local ScreenX, ScreenY = workspace.CurrentCamera.ViewportSize.X, workspace.CurrentCamera.ViewportSize.Y
- local inversePi = 1 / math.pi
- _G.FOV = 9
- local magic = _G.FOV*inversePi
- _G.ignoreFOV = false
- local aim_through_list = {nil, nil, nil}
- local distance
- local ignore
- local distance2
- Pixels = ScreenX * ScreenY
- local mouse = game:GetService("Players").LocalPlayer:GetMouse()
- Radius = math.sqrt(Pixels*magic)
- local viable
- local your_head = game:GetService("Players").LocalPlayer.Character:FindFirstChild("Head")
- local ray_start
- local vector
- _G.ignoreWalls = true
- _G.ShootingTeam = false
- local enabled = false
- local target
- local function ReturnF(player, bone)
- if not bone and player.Character:FindFirstChild(bone) then
- return {_, false}
- end
- return camera:WorldToScreenPoint(player.Character[bone].Position)
- end
- local function checksight(player)
- local screen_position, in_fov = ReturnF(player, "Head") -- end my life
- if not (in_fov or _G.ignoreFOV) then
- return false
- else -- bug here with fov checks
- if (not _G.ignoreFOV) and (_G.FOV~=-1) then
- local distance2 = (Vector2.new(screen_position.X, screen_position.Y) - Vector2.new(mouse.X, mouse.Y)).magnitude
- if distance2<=Radius then
- return player, screen_position
- end
- return false
- else
- return player, screen_position
- end
- end
- end
- local function ViableP()
- aim_through_list[1] = game:GetService("Players").LocalPlayer.Character
- local distance = 1000
- local closest_distance = 1000
- local most_viable_player = nil
- for i, player_being_checked in pairs(game:GetService("Players"):GetPlayers()) do
- local player_or_false, targets_coordinates = checksight(player_being_checked)
- if (player_or_false) then
- local char = player_being_checked.Character
- local target_torso = char and char:FindFirstChild "Torso"
- if (camera.Focus.p - camera.CoordinateFrame.p).magnitude <= 1 then
- ray_start = your_head.Position + your_head.CFrame.lookVector * 16 + Vector3.new(0, 4, 0)
- else
- ray_start = your_head.Position + Vector3.new(0, 4, 0)
- end
- if not targets_coordinates then
- distance = (Vector2.new(targets_coordinates.X, targets_coordinates.Y) - Vector2.new(mouse.X, mouse.Y)).magnitude
- else
- distance = (Vector2.new(targets_coordinates.X, targets_coordinates.Y) - Vector2.new(mouse.X, mouse.Y)).magnitude
- end
- vector = (target_torso.Position - ray_start)
- if char:FindFirstChild("Head") then
- if (not targets_coordinates) or (distance <= closest_distance) then
- local new_ray = Ray.new(ray_start, vector.unit * 1000) -- "fire" ray and make sure to ignore our own character
- local hit, position = workspace:FindPartOnRayWithIgnoreList(new_ray, aim_through_list) -- check if the ray hit anything and if it's a descendant of the target's character
- if (hit and hit:isDescendantOf(char)) or _G.ignoreWalls then
- if char.HumanoidRootPart:FindFirstChild("ESP") then
- if char.HumanoidRootPart.ESP.Frame.BackgroundColor3 == Color3.new(1, 0.666667, 0) or char.HumanoidRootPart.ESP.Frame.BackgroundColor3 == Color3.new(0, 1, 0.498039) then
- closest_distance = distance
- most_viable_player = player_being_checked
- target = player_being_checked
- else
- if IgnoreWalls == false then
- most_viable_player = nil
- target = nil
- elseif IgnoreWalls == true then
- closest_distance = distance
- most_viable_player = player_being_checked
- target = player_being_checked
- end
- end
- else
- if IgnoreWalls == false then
- most_viable_player = nil
- target = nil
- elseif IgnoreWalls == true then
- closest_distance = distance
- most_viable_player = player_being_checked
- target = player_being_checked
- end
- end
- else
- most_viable_player = nil
- target = nil
- end -- hit or ignore walls
- end -- meets distance or no priority
- end
- end
- end
- return most_viable_player
- end
- game:GetService("RunService").Heartbeat:connect(function()
- if Aimbot == true then
- ViableP()
- workspace.DeadBody:ClearAllChildren()
- wep = nil
- for i,v in pairs(workspace.Camera:GetChildren()) do
- if v:FindFirstChild("Flame") then
- wep = v
- break
- end
- end
- if wep and target ~= nil then
- if target.TeamColor ~= game:GetService("Players").LocalPlayer.TeamColor then
- wep.Flame.Size = Vector3.new(1,5,1)
- wep.Flame.Anchored = true
- if target.Character:FindFirstChild("Head") then
- if _G.Legit == false then
- wep.Flame.CFrame = target.Character.Head.CFrame*CFrame.new(0,0,1.9) -- this is where the magic is
- elseif _G.Legit == true then
- wep = false
- Type = nil
- Current = nil
- for i,v in pairs(workspace.CurrentCamera:GetChildren()) do
- if v.Name ~= "Right Arm" and v.Name ~= "Left Arm" then
- if v:IsA("Model") then
- if v:FindFirstChild("Flame") then
- Current = v
- break
- end
- end
- end
- end
- if wep == false then
- for i = 1,#LMG do
- if Current ~= nil then
- if LMG[i] == Current.Name then
- wep = true
- Type = "LMG"
- break
- end
- end
- end
- end
- if wep == false then
- for i = 1,#SMG do
- if Current ~= nil then
- if SMG[i] == Current.Name then
- wep = true
- Type = "SMG"
- break
- end
- end
- end
- end
- if wep == false then
- for i = 1,#WeakSMG do
- if Current ~= nil then
- if WeakSMG[i] == Current.Name then
- wep = true
- Type = "WeakSMG"
- break
- end
- end
- end
- end
- if wep == false then
- for i = 1,#Other do
- if Current ~= nil then
- if Other[i] == Current.Name then
- wep = true
- Type = "Other"
- break
- end
- end
- end
- end
- if wep == false then
- for i = 1,#ShotGun do
- if Current ~= nil then
- if ShotGun[i] == Current.Name then
- wep = true
- Type = "ShotGun"
- break
- end
- end
- end
- end
- if Type == nil then
- random = math.random(1,3)
- if random == 1 then
- Current.Flame.CFrame = target.Character.Head.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
- end
- if random >= 2 and random <= 3 then
- Current.Flame.CFrame = target.Character.Torso.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
- end
- elseif Type == "LMG" then
- if ((game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - target.Character.HumanoidRootPart.Position).magnitude) <= 150 then
- random = math.random(1,6)
- if random == 1 then
- Current.Flame.CFrame = target.Character.Head.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
- end
- if random >= 2 and random <= 3 then
- Current.Flame.CFrame = target.Character.Torso.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
- end
- if random >= 4 and random <= 6 then
- Current.Flame.CFrame = CFrame.new(0,0,0)
- end
- else
- random = math.random(1,10)
- if random == 1 then
- Current.Flame.CFrame = target.Character.Head.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
- end
- if random >= 2 and random <= 3 then
- Current.Flame.CFrame = target.Character.Torso.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
- end
- if random >= 4 and random <= 10 then
- Current.Flame.CFrame = CFrame.new(0,0,0)
- end
- end
- elseif Type == "ShotGun" then
- random = math.random(1,5)
- if random == 1 then
- Current.Flame.CFrame = target.Character.Head.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
- end
- if random >= 2 and random <= 3 then
- Current.Flame.CFrame = target.Character.Torso.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
- end
- if random >= 4 and random <= 5 then
- Current.Flame.CFrame = CFrame.new(0,0,0)
- end
- elseif Type == "WeakSMG" or Type == "SMG" then
- if ((game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - target.Character.HumanoidRootPart.Position).magnitude) <= 125 then
- random = math.random(1,6)
- if random == 1 then
- Current.Flame.CFrame = target.Character.Head.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
- end
- if random >= 2 and random <= 3 then
- Current.Flame.CFrame = target.Character.Torso.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
- end
- if random >= 4 and random <= 6 then
- Current.Flame.CFrame = CFrame.new(0,0,0)
- end
- else
- random = math.random(1,8)
- if random == 1 then
- Current.Flame.CFrame = target.Character.Head.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
- end
- if random >= 2 and random <= 3 then
- Current.Flame.CFrame = target.Character.Torso.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
- end
- if random >= 4 and random <= 8 then
- Current.Flame.CFrame = CFrame.new(0,0,0)
- end
- end
- elseif Type == "Other" then
- random = math.random(1,6)
- if random == 1 then
- Current.Flame.CFrame = target.Character.Head.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
- end
- if random >= 2 and random <= 4 then
- Current.Flame.CFrame = target.Character.Torso.CFrame*CFrame.new(0,0,0.1) -- this is where the magic is
- end
- if random >= 5 and random <= 6 then
- Current.Flame.CFrame = CFrame.new(0,0,0)
- end
- end
- end
- end
- end
- end
- end
- if ESP == true then
- for i,v in pairs(game:GetService("Players"):GetChildren()) do
- pass = false
- if workspace:FindFirstChild(v.Name) then
- if v.Team == game:GetService("Players").LocalPlayer.Team then
- if v.Character:FindFirstChild("HumanoidRootPart") then
- if v.Character.HumanoidRootPart:FindFirstChild("ESP") then
- v.Character.HumanoidRootPart.ESP:Destroy()
- end
- end
- end
- if v.Team ~= game:GetService("Players").LocalPlayer.Team then
- if v.Character:FindFirstChild("HumanoidRootPart") then
- for i,v in pairs(v.Character:GetChildren()) do
- if v:IsA("Model") then
- pass = true
- break
- end
- end
- shirt = nil
- passer = false
- for i,v in pairs(v.Character:GetChildren()) do
- if v:IsA("Shirt") then
- shirt = v
- break
- end
- end
- for i,v in pairs(game:GetService("Players").LocalPlayer.Character:GetChildren()) do
- if v:IsA("Shirt") then
- if shirt ~= nil then
- if v.Name ~= shirt.Name then
- passer = true
- break
- end
- end
- end
- end
- if passer == true then
- if v.Character:FindFirstChild("HumanoidRootPart") then
- if v.Character.HumanoidRootPart:FindFirstChild("ESP") then
- v.Character.HumanoidRootPart.ESP.TextLabel.Text = v.Name.." Distance: "..math.floor(((game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - v.Character.HumanoidRootPart.Position).magnitude))
- hitting = false
- local ray = Ray.new(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame.p, (v.Character.HumanoidRootPart.CFrame.p - game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame.p).unit * 2000)
- local part, position = workspace:FindPartOnRayWithIgnoreList(ray, {game:GetService("Players").LocalPlayer.Character, workspace.CurrentCamera, workspace.Ignore}, false, true)
- if part then
- if part.Parent == v.Character then
- hitting = true
- end
- end
- if hitting == false then
- elseif hitting == true then
- v.Character.HumanoidRootPart.ESP.Frame.BackgroundColor3 = Color3.new(0, 1, 0.498039)
- end
- if hitting == false then
- local ray = Ray.new(game:GetService("Players").LocalPlayer.Character.Head.CFrame.p, (v.Character.Head.CFrame.p - game:GetService("Players").LocalPlayer.Character.Head.CFrame.p).unit * 2000)
- local part, position = workspace:FindPartOnRayWithIgnoreList(ray, {game:GetService("Players").LocalPlayer.Character, workspace.CurrentCamera, workspace.Ignore}, false, true)
- if part then
- if part.Parent == v.Character then
- hitting = true
- end
- end
- if hitting == false then
- v.Character.HumanoidRootPart.ESP.Frame.BackgroundColor3 = Color3.new(1, 0, 0)
- elseif hitting == true then
- v.Character.HumanoidRootPart.ESP.Frame.BackgroundColor3 = Color3.new(0, 1, 0.498039)
- end
- if hitting == false then
- elseif hitting == true then
- v.Character.HumanoidRootPart.ESP.Frame.BackgroundColor3 = Color3.new(0, 1, 0.498039)
- end
- if hitting == false then
- local ray = Ray.new(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame.p, (v.Character.HumanoidRootPart.CFrame.p - game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame.p).unit * 2000)
- local part, position = workspace:FindPartOnRayWithIgnoreList(ray, {game:GetService("Players").LocalPlayer.Character, workspace.CurrentCamera, workspace.Ignore}, false, true)
- if part then
- if part:IsA("BasePart") then
- CurrentGun = nil
- for i,v in pairs(workspace.CurrentCamera:GetChildren()) do
- if v.Name ~= "Right Arm" and v.Name ~= "Left Arm" then
- if v:IsA("Model") then
- if v:FindFirstChild("Flame") then
- CurrentGun = v
- break
- end
- end
- end
- end
- found = false
- if found == false then
- for i = 1,#Sniper do
- if CurrentGun ~= nil then
- if Sniper[i] == CurrentGun.Name then
- found = true
- Min = 2.75
- Max = 3
- break
- end
- end
- end
- end
- if found == false then
- for i = 1,#SpecialSniper do
- if CurrentGun ~= nil then
- if SpecialSniper[i] == CurrentGun.Name then
- found = true
- Min = 3.25
- Max = 3.5
- break
- end
- end
- end
- end
- if found == false then
- for i = 1,#WeakSniper do
- if CurrentGun ~= nil then
- if WeakSniper[i] == CurrentGun.Name then
- found = true
- Min = 2.75
- Max = 3
- break
- end
- end
- end
- end
- if found == false then
- for i = 1,#WeakSMG do
- if CurrentGun ~= nil then
- if WeakSMG[i] == CurrentGun.Name then
- found = true
- Min = 2.25
- Max = 3
- break
- end
- end
- end
- end
- if found == false then
- for i = 1,#SMG do
- if CurrentGun ~= nil then
- if SMG[i] == CurrentGun.Name then
- found = true
- Min = 2.5
- Max = 3
- break
- end
- end
- end
- end
- if found == false then
- for i = 1,#ShotGun do
- if CurrentGun ~= nil then
- if ShotGun[i] == CurrentGun.Name then
- found = true
- Min = 2.75
- Max = 3
- break
- end
- end
- end
- end
- if found == false then
- for i = 1,#LMG do
- if CurrentGun ~= nil then
- if LMG[i] == CurrentGun.Name then
- found = true
- Min = 2.5
- Max = 3
- break
- end
- end
- end
- end
- if found == false then
- for i = 1,#Other do
- if CurrentGun ~= nil then
- if Other[i] == CurrentGun.Name then
- found = true
- Min = 0
- Max = 0
- break
- end
- end
- end
- end
- if found == false then
- for i = 1,#Melee do
- if CurrentGun ~= nil then
- if Melee[i] == CurrentGun.Name then
- found = true
- Min = 0
- Max = 0
- break
- end
- end
- end
- end
- if found == false then
- Min = 0
- Max = 0
- end
- if part.Parent.Name == "Map" then
- if part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y >= Max then
- hitting = true
- parter = part
- elseif part.Size.X <= Min and part.Size.Z >= Max and part.Size.Y >= Max then
- hitting = true
- parter = part
- elseif part.Size.X <= Min and part.Size.Z >= Max and part.Size.Y <= Min then
- hitting = true
- parter = part
- elseif part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y <= Min then
- hitting = true
- parter = part
- elseif part.Size.X <= Min and part.Size.Z >= Min and part.Size.Y <= Min then
- hitting = true
- parter = part
- elseif part.Size.X >= Max and part.Size.Z <= Min and part.Size.Y <= Min then
- hitting = true
- parter = part
- elseif part.Size.X >= Max and part.Size.Z >= Max and part.Size.Y <= Min-1 then
- hitting = true
- parter = part
- elseif part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y <= Max then
- hitting = true
- parter = part
- elseif part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y >= Max then
- hitting = true
- parter = part
- elseif part.Size.X <= Min or part.Size.Z <= Min or part.Size.Z <= Min then
- hitting = true
- parter = part
- end
- end
- end
- end
- if hitting == true then
- hitting = false
- part = parter
- list = {}
- pos1 = part.Position - (part.Size/2) - Vector3.new(0.01,0.01,0.01)
- pos2 = part.Position + (part.Size/2) + Vector3.new(0.01,0.01,0.01)
- Reg = Region3.new(pos1, pos2)
- TouchingParts = game.Workspace:FindPartsInRegion3(Reg)
- o = 1
- if TouchingParts ~= nil then
- for i,v in pairs(TouchingParts) do
- if v ~= parter then
- part = v
- if part.Parent.Name == "Map" then
- if part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y >= Max then
- hitting = true
- parter = part
- elseif part.Size.X <= Min and part.Size.Z >= Max and part.Size.Y >= Max then
- hitting = true
- parter = part
- elseif part.Size.X <= Min and part.Size.Z >= Max and part.Size.Y <= Min then
- hitting = true
- parter = part
- elseif part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y <= Min then
- hitting = true
- parter = part
- elseif part.Size.X <= Min and part.Size.Z >= Min and part.Size.Y <= Min then
- hitting = true
- parter = part
- elseif part.Size.X >= Max and part.Size.Z <= Min and part.Size.Y <= Min then
- hitting = true
- parter = part
- elseif part.Size.X >= Max and part.Size.Z >= Max and part.Size.Y <= Min-1 then
- hitting = true
- parter = part
- elseif part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y <= Max then
- hitting = true
- parter = part
- elseif part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y >= Max then
- hitting = true
- parter = part
- elseif part.Size.X <= Min or part.Size.Z <= Min or part.Size.Z <= Min then
- hitting = true
- parter = part
- end
- end
- if hitting == true then
- table.insert(list, o, v)
- o = o + 1
- end
- end
- end
- end
- hitting = false
- part = parter
- pos1 = part.Position + (part.Size/2) + Vector3.new(0.01,0.01,0.01)
- pos2 = part.Position - (part.Size/2) - Vector3.new(0.01,0.01,0.01)
- local ray = Ray.new(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame.p, (v.Character.HumanoidRootPart.CFrame.p - game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame.p).unit * 2000)
- local part, position = workspace:FindPartOnRayWithIgnoreList(ray, {game:GetService("Players").LocalPlayer.Character, workspace.CurrentCamera, workspace.Ignore, parter, unpack(list)}, false, true)
- if part then
- if part.Parent == v.Character then
- hitting = true
- end
- end
- if hitting == false then
- v.Character.HumanoidRootPart.ESP.Frame.BackgroundColor3 = Color3.new(1, 0, 0)
- elseif hitting == true then
- if ((parter.Position - v.Character.HumanoidRootPart.Position).magnitude) <= 40 then
- v.Character.HumanoidRootPart.ESP.Frame.BackgroundColor3 = Color3.new(1, 0.666667, 0)
- else
- v.Character.HumanoidRootPart.ESP.Frame.BackgroundColor3 = Color3.new(1, 0, 0)
- end
- end
- elseif hitting == false then
- v.Character.HumanoidRootPart.ESP.Frame.BackgroundColor3 = Color3.new(1, 0, 0)
- end
- end
- if hitting == false then
- local ray = Ray.new(game:GetService("Players").LocalPlayer.Character.Head.CFrame.p, (v.Character.Head.CFrame.p - game:GetService("Players").LocalPlayer.Character.Head.CFrame.p).unit * 2000)
- local part, position = workspace:FindPartOnRayWithIgnoreList(ray, {game:GetService("Players").LocalPlayer.Character, workspace.CurrentCamera, workspace.Ignore}, false, true)
- if part then
- if part:IsA("BasePart") then
- CurrentGun = nil
- for i,v in pairs(workspace.CurrentCamera:GetChildren()) do
- if v.Name ~= "Right Arm" and v.Name ~= "Left Arm" then
- if v:IsA("Model") then
- if v:FindFirstChild("Flame") then
- CurrentGun = v
- break
- end
- end
- end
- end
- found = false
- if found == false then
- for i = 1,#Sniper do
- if CurrentGun ~= nil then
- if Sniper[i] == CurrentGun.Name then
- found = true
- Min = 2.75
- Max = 3
- break
- end
- end
- end
- end
- if found == false then
- for i = 1,#SpecialSniper do
- if CurrentGun ~= nil then
- if SpecialSniper[i] == CurrentGun.Name then
- found = true
- Min = 3.25
- Max = 3.5
- break
- end
- end
- end
- end
- if found == false then
- for i = 1,#WeakSniper do
- if CurrentGun ~= nil then
- if WeakSniper[i] == CurrentGun.Name then
- found = true
- Min = 2.75
- Max = 3
- break
- end
- end
- end
- end
- if found == false then
- for i = 1,#WeakSMG do
- if CurrentGun ~= nil then
- if WeakSMG[i] == CurrentGun.Name then
- found = true
- Min = 2.25
- Max = 3
- break
- end
- end
- end
- end
- if found == false then
- for i = 1,#SMG do
- if CurrentGun ~= nil then
- if SMG[i] == CurrentGun.Name then
- found = true
- Min = 2.5
- Max = 3
- break
- end
- end
- end
- end
- if found == false then
- for i = 1,#ShotGun do
- if CurrentGun ~= nil then
- if ShotGun[i] == CurrentGun.Name then
- found = true
- Min = 2.75
- Max = 3
- break
- end
- end
- end
- end
- if found == false then
- for i = 1,#LMG do
- if CurrentGun ~= nil then
- if LMG[i] == CurrentGun.Name then
- found = true
- Min = 2.5
- Max = 3
- break
- end
- end
- end
- end
- if found == false then
- for i = 1,#Other do
- if CurrentGun ~= nil then
- if Other[i] == CurrentGun.Name then
- found = true
- Min = 0
- Max = 0
- break
- end
- end
- end
- end
- if found == false then
- for i = 1,#Melee do
- if CurrentGun ~= nil then
- if Melee[i] == CurrentGun.Name then
- found = true
- Min = 0
- Max = 0
- break
- end
- end
- end
- end
- if found == false then
- Min = 0
- Max = 0
- end
- if part.Parent.Name == "Map" then
- if part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y >= Max then
- hitting = true
- parter = part
- elseif part.Size.X <= Min and part.Size.Z >= Max and part.Size.Y >= Max then
- hitting = true
- parter = part
- elseif part.Size.X <= Min and part.Size.Z >= Max and part.Size.Y <= Min then
- hitting = true
- parter = part
- elseif part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y <= Min then
- hitting = true
- parter = part
- elseif part.Size.X <= Min and part.Size.Z >= Min and part.Size.Y <= Min then
- hitting = true
- parter = part
- elseif part.Size.X >= Max and part.Size.Z <= Min and part.Size.Y <= Min then
- hitting = true
- parter = part
- elseif part.Size.X >= Max and part.Size.Z >= Max and part.Size.Y <= Min-1 then
- hitting = true
- parter = part
- elseif part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y <= Max then
- hitting = true
- parter = part
- elseif part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y >= Max then
- hitting = true
- parter = part
- elseif part.Size.X <= Min or part.Size.Z <= Min or part.Size.Z <= Min then
- hitting = true
- parter = part
- end
- end
- end
- end
- if hitting == true then
- hitting = false
- part = parter
- list = {}
- pos1 = part.Position - (part.Size/2) - Vector3.new(0.01,0.01,0.01)
- pos2 = part.Position + (part.Size/2) + Vector3.new(0.01,0.01,0.01)
- Reg = Region3.new(pos1, pos2)
- TouchingParts = game.Workspace:FindPartsInRegion3(Reg)
- o = 1
- if TouchingParts ~= nil then
- for i,v in pairs(TouchingParts) do
- if v ~= parter then
- part = v
- if part.Parent.Name == "Map" then
- if part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y >= Max then
- hitting = true
- parter = part
- elseif part.Size.X <= Min and part.Size.Z >= Max and part.Size.Y >= Max then
- hitting = true
- parter = part
- elseif part.Size.X <= Min and part.Size.Z >= Max and part.Size.Y <= Min then
- hitting = true
- parter = part
- elseif part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y <= Min then
- hitting = true
- parter = part
- elseif part.Size.X <= Min and part.Size.Z >= Min and part.Size.Y <= Min then
- hitting = true
- parter = part
- elseif part.Size.X >= Max and part.Size.Z <= Min and part.Size.Y <= Min then
- hitting = true
- parter = part
- elseif part.Size.X >= Max and part.Size.Z >= Max and part.Size.Y <= Min-1 then
- hitting = true
- parter = part
- elseif part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y <= Max then
- hitting = true
- parter = part
- elseif part.Size.X <= Min and part.Size.Z <= Min and part.Size.Y >= Max then
- hitting = true
- parter = part
- elseif part.Size.X <= Min or part.Size.Z <= Min or part.Size.Z <= Min then
- hitting = true
- parter = part
- end
- end
- if hitting == true then
- table.insert(list, o, v)
- o = o + 1
- end
- end
- end
- end
- hitting = false
- part = parter
- pos1 = part.Position + (part.Size/2) + Vector3.new(0.01,0.01,0.01)
- pos2 = part.Position - (part.Size/2) - Vector3.new(0.01,0.01,0.01)
- local ray = Ray.new(game:GetService("Players").LocalPlayer.Character.Head.CFrame.p, (v.Character.Head.CFrame.p - game:GetService("Players").LocalPlayer.Character.Head.CFrame.p).unit * 2000)
- local part, position = workspace:FindPartOnRayWithIgnoreList(ray, {game:GetService("Players").LocalPlayer.Character, workspace.CurrentCamera, workspace.Ignore, parter, unpack(list)}, false, true)
- if part then
- if part.Parent == v.Character then
- hitting = true
- end
- end
- if hitting == false then
- v.Character.HumanoidRootPart.ESP.Frame.BackgroundColor3 = Color3.new(1, 0, 0)
- elseif hitting == true then
- if ((parter.Position - v.Character.HumanoidRootPart.Position).magnitude) <= 40 then
- v.Character.HumanoidRootPart.ESP.Frame.BackgroundColor3 = Color3.new(1, 0.666667, 0)
- else
- v.Character.HumanoidRootPart.ESP.Frame.BackgroundColor3 = Color3.new(1, 0, 0)
- end
- end
- elseif hitting == false then
- v.Character.HumanoidRootPart.ESP.Frame.BackgroundColor3 = Color3.new(1, 0, 0)
- end
- end
- end
- elseif pass == true then
- local ESP = Instance.new("BillboardGui",v.Character.HumanoidRootPart)
- ESP.Name = "ESP"
- ESP.Size = UDim2.new(6, 0, 8, 0)
- ESP.StudsOffset = Vector3.new(0, 0.75, 0)
- ESP.AlwaysOnTop = true
- local Frame = Instance.new("Frame",ESP)
- Frame.ZIndex = 1000
- Frame.Size = UDim2.new(0.6, 0, 0.8, 0)
- Frame.Position = UDim2.new(0.2, 0, 0.3, 0)
- Frame.BorderSizePixel = 3
- Frame.BackgroundTransparency = 0.3
- Frame.BackgroundColor3 = Color3.new(1, 0.666667, 0)
- Label = Instance.new("TextLabel", ESP)
- Label.Position = UDim2.new(0, 0, -0.1, 0)
- Label.Size = UDim2.new(1, 0, 0.3, 0)
- Label.Font = "SourceSansLight"
- Label.TextColor3 = Color3.new(1,1,1)
- Label.TextStrokeColor3 = Color3.new(0,0,0)
- Label.TextStrokeTransparency = 0
- Label.BackgroundColor3 = Color3.new(1, 1, 1)
- Label.TextScaled = true
- Label.Text = v.Name.." Distance: "..math.floor(((game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - v.Character.HumanoidRootPart.Position).magnitude))
- Label.BackgroundTransparency = 1
- end
- end
- end
- end
- end
- end
- end
- end
- end)
- end)
- Extras.Name = "Extras"
- Extras.Parent = MainGUI
- Extras.BackgroundColor3 = Color3.new(1, 1, 1)
- Extras.Position = UDim2.new(0, 0, 1, 0)
- Extras.Size = UDim2.new(0, 464, 0, 100)
- Extras.Active = true
- KNIFESIM.Name = "KNIFESIM"
- KNIFESIM.Parent = Extras
- KNIFESIM.BackgroundColor3 = Color3.new(1, 1, 1)
- KNIFESIM.BorderColor3 = Color3.new(0.760784, 0.760784, 0.760784)
- KNIFESIM.Position = UDim2.new(0.0172413588, 0, 0.0834986567, 0)
- KNIFESIM.Size = UDim2.new(0, 147, 0, 29)
- KNIFESIM.Font = Enum.Font.SourceSans
- KNIFESIM.Text = "Knife Sim Aimbot"
- KNIFESIM.TextColor3 = Color3.new(0, 0, 0)
- KNIFESIM.TextSize = 14
- KNIFESIM.MouseButton1Down:connect(function()
- local plrs = game:service("Players")
- local ms = plrs.LocalPlayer:GetMouse()
- local nearest = function()
- local plr,dist = nil,5000
- for k,l in pairs(plrs:GetPlayers()) do
- local pos = l.Character:GetPrimaryPartCFrame().p
- local len = (ms.Hit.p - pos).Magnitude
- if len <= dist then
- plr = l
- dist = len
- end
- end
- return plr.Character:GetPrimaryPartCFrame().p
- end
- workspace.CurrentCamera.trash.ChildAdded:connect(function(c)
- c.CFrame = CFrame.new(nearest())
- end)
- end)
- HILTON.Name = "HILTON"
- HILTON.Parent = Extras
- HILTON.BackgroundColor3 = Color3.new(1, 1, 1)
- HILTON.BorderColor3 = Color3.new(0.760784, 0.760784, 0.760784)
- HILTON.Position = UDim2.new(0.355603427, 0, 0.473498672, 0)
- HILTON.Size = UDim2.new(0, 147, 0, 29)
- HILTON.Font = Enum.Font.SourceSans
- HILTON.Text = " Hilton Hotels GUI"
- HILTON.TextColor3 = Color3.new(0, 0, 0)
- HILTON.TextSize = 14
- HILTON.MouseButton1Down:connect(function()
- loadstring(game:GetObjects("rbxassetid://1049551978")[1].Source)()
- end)
- CBRO.Name = "CBRO"
- CBRO.Parent = Extras
- CBRO.BackgroundColor3 = Color3.new(1, 1, 1)
- CBRO.BorderColor3 = Color3.new(0.760784, 0.760784, 0.760784)
- CBRO.Position = UDim2.new(0.357758611, 0, 0.0834986567, 0)
- CBRO.Size = UDim2.new(0, 147, 0, 29)
- CBRO.Font = Enum.Font.SourceSans
- CBRO.Text = "Cbro Aimbot, -. RALT, RCTRL"
- CBRO.TextColor3 = Color3.new(0, 0, 0)
- CBRO.TextSize = 14
- CBRO.MouseButton1Down:connect(function()
- -- @Lilith.lua
- -- author: lenny
- local f_print, printing = print, true
- local function print ( ... )
- if printing then
- f_print("[Lilith] - ", ...)
- end
- end
- print "Version 1.4b, official release;"
- print "Aimbot will not work in every game, such as Phantom Forces."
- -- configuration:
- local settings = {
- -- hotkeys:
- commandbar_Hotkey = "Minus",
- esp_Hotkey = "RightAlt",
- aimbot_Hotkey = "RightControl";
- -- defaults:
- esp_boxColor = "Bright red",
- esp_boxTransparent = true,
- esp_useTeamColorIfApplicable = true,
- esp_showDistance = true,
- esp_holdHotkey = false,
- esp_showCharacterEspd = true,
- aimbot_clickToLock = true,
- aimbot_clickToLockDistanceOverride = true,
- aimbot_maxDistance = 250,
- aimbot_aimFor = "Head";
- -- ignores:
- esp_ignoreTeam = true,
- esp_dont_ignoreSelf = false,
- aimbot_ignoreWalls = false,
- aimbot_ignoreTeam = false;
- }
- -- mainscript:
- local Players = game:GetService("Players")
- local Teams = game:GetService("Teams")
- local RunService = game:GetService("RunService")
- local UserInputService = game:GetService("UserInputService")
- local localPlayer = Players.LocalPlayer
- local Mouse = localPlayer:GetMouse()
- local CoreGui = game:GetService("CoreGui")
- local function findFirstChild (obj, name, sensitive)
- local children = obj:GetChildren()
- for i = 1, #children do
- local objN = children[i].Name
- if not sensitive then
- objN, name = objN:lower(), name:lower()
- end
- if objN:sub(1, name:len()) == name then
- return children[i]
- end
- end
- end
- local function setHotkey (section, keyName)
- if Enum.KeyCode[keyName] then
- settings[section .. '_Hotkey'] = Enum.KeyCode[keyName]
- print ("Sucessfully set " .. section .. "'s hotkey to " .. keyName)
- end
- end setHotkey("esp", settings.esp_Hotkey); setHotkey("aimbot", settings.aimbot_Hotkey); setHotkey("commandbar", settings.commandbar_Hotkey)
- local function splitString (str, delimeter)
- local strParts = {}
- local pattern = ("([^%s]+)"):format(delimeter)
- str:gsub(pattern, function(section)
- strParts[#strParts + 1] = section
- end)
- return strParts
- end
- local function isHumanoidAlive (character)
- if character then
- local humanoid = character:FindFirstChildOfClass("Humanoid")
- if humanoid and humanoid.Health > 0 then
- return character, humanoid
- end
- end
- end
- local function getCharacterFromPart (obj) -- made this in haste, so its unorganized!
- while (obj ~= game and obj ~= workspace) and (obj.Parent and not Players:GetPlayerFromCharacter(obj.Parent)) do
- obj = obj.Parent
- end
- return obj
- end
- local function viewNotObstructed (lookingAt, parent)
- local character, _ = isHumanoidAlive(localPlayer.Character)
- if character then
- local headPos = character.Head.CFrame.p
- local viewRay = Ray.new(headPos, (lookingAt.CFrame.p - headPos).unit *
- settings.aimbot_maxDistance)
- local object = workspace:FindPartOnRay(viewRay, character, true, true)
- if object then
- return object:IsDescendantOf(parent)
- end
- end
- end
- local function setColor (color)
- return select(2, pcall(function()
- if typeof(color) == "BrickColor" then
- color = color.Color
- elseif typeof(color) == "string" then
- color = BrickColor.new(color).Color
- end
- return color
- end))
- end
- -- @create objects
- local ESPOBJF do
- ESPOBJF = findFirstChild(CoreGui, "ESPOBJF")
- if not ESPOBJF then
- ESPOBJF = Instance.new("Folder", CoreGui)
- ESPOBJF.Name = "ESPOBJF"
- end
- end
- local Box, espText, aimbotText
- local commandBar do
- commandBar = Instance.new("ScreenGui")
- commandBar.Name = "%$#@$!&"
- local frame = Instance.new("Frame", commandBar)
- frame.BackgroundTransparency = 1; frame.Size, frame.Position = UDim2.new(0.221, 0,0.111, 0), UDim2.new(0.407, 0,0.644, 0); frame.Draggable = true; frame.Active = true
- local textlabel = Instance.new("TextLabel", frame)
- textlabel.BackgroundTransparency = 1; textlabel.TextSize = 16; textlabel.TextColor3 = Color3.fromRGB(255, 255, 255); textlabel.Font = Enum.Font.SourceSansLight; textlabel.Position, textlabel.Size = UDim2.new(0.132, 0,0.1, 0), UDim2.new(0.75, 0, 0.201, 0); textlabel.ZIndex = 1; textlabel.Text = "[Lilith]"
- Box = Instance.new("TextBox", frame)
- Box.BackgroundColor3 = Color3.fromRGB(58, 58, 58); Box.BackgroundTransparency = 0.5; Box.BorderSizePixel = 0; Box.TextSize = 16; Box.TextColor3 = Color3.fromRGB(255, 255, 255); Box.Font = Enum.Font.SourceSansItalic; Box.ClipsDescendants = true; Box.ZIndex = 1; Box.Text = "press to `-` to type"; Box.Size, Box.Position = UDim2.new(0.922, 0,0.402, 0), UDim2.new(0.026, 0,0.402, 0) ; Box.TextTransparency = 0.5
- aimbotText = textlabel:Clone()
- aimbotText.Size, aimbotText.Position =UDim2.new(0.079, 0,0.201, 0), UDim2.new(0.74, 0,0.1, 0); aimbotText.TextColor3, aimbotText.Font = Color3.fromRGB(48, 48, 48), Enum.Font.SourceSansBold; aimbotText.Text = "bot"; aimbotText.Parent = frame
- espText = textlabel:Clone()
- espText.Size, espText.Position =UDim2.new(0.079, 0,0.201, 0), UDim2.new(0.184, 0,0.1, 0); espText.TextColor3, espText.Font = Color3.fromRGB(48, 48, 48), Enum.Font.SourceSansBold; espText.Text = "esp"; espText.Parent = frame
- end
- local active_espObjects = {}
- local function clear_active_espObjects (ofParent)
- if not ofParent then
- ESPOBJF:ClearAllChildren()
- local a = 1
- while active_espObjects[a] do
- if active_espObjects[a] then
- active_espObjects[a]:Destroy()
- end
- active_espObjects[a] = nil
- a = a + 1
- end
- else
- local j = 1
- while active_espObjects[j] do
- local espObj = active_espObjects[j]
- if espObj and espObj:IsDescendantOf(ofParent) or ((espObj:IsA("BoxHandleAdornment") or espObj:IsA("BillboardGui")) and espObj.Adornee and espObj.Adornee:IsDescendantOf(ofParent)) then
- espObj:Destroy()
- espObj = nil
- end
- j = j + 1
- end
- end
- end
- local function createEspBoxOnObj (obj, color)
- local espBox do
- espBox = Instance.new("BoxHandleAdornment")
- espBox.AlwaysOnTop = true
- espBox.ZIndex = 10
- espBox.Color3 = BrickColor.new(settings.esp_boxColor).Color
- end
- local color = setColor(color)
- if color then
- espBox.Color3 = color
- end
- if settings.esp_boxTransparent then
- espBox.Transparency = 0.8
- end
- espBox.Size = obj.Size
- espBox.Adornee = obj
- espBox.Parent = ESPOBJF
- active_espObjects[#active_espObjects + 1] = espBox
- return espBox
- end
- local function getDistanceFrom (object)
- if localPlayer.Character and localPlayer.Character.Head then
- return math.floor((object.Position - localPlayer.Character.Head.Position).magnitude)
- else
- return "err"
- end
- end
- local function createDistTagOnCharacter (character, removeTag, color)
- local _, humanoid = isHumanoidAlive(character)
- if humanoid then
- humanoid.Died:Connect(function()
- clear_active_espObjects(character)
- end)
- local head = character:FindFirstChild("Head")
- if head then
- if ESPOBJF:findFirstChild(character.Name) then
- ESPOBJF[character.Name]:Destroy()
- if removeTag then
- return
- end
- end
- local textLabel
- local distTag do
- distTag = Instance.new("BillboardGui")
- distTag.AlwaysOnTop = true
- distTag.Enabled = true
- distTag.Size = UDim2.new(0, 10,0, 50)
- textLabel = Instance.new("TextLabel", distTag)
- textLabel.Size = UDim2.new(0, 75,0, 25)
- textLabel.BackgroundColor3 = (color ~= nil and color) or Color3.fromRGB(48, 48, 48)
- textLabel.BackgroundTransparency = 0.5
- textLabel.Font = Enum.Font.SourceSansBold
- textLabel.TextSize = 18
- textLabel.TextColor3 = Color3.fromRGB(255, 255 ,255)
- textLabel.ClipsDescendants = true
- textLabel.BorderSizePixel = 0
- end
- distTag.Adornee = head
- distTag.Parent = ESPOBJF
- distTag.Name = character.Name
- textLabel.Text = character.Name
- active_espObjects[#active_espObjects + 1] = distTag
- coroutine.resume(coroutine.create(function()
- local now = tick()
- while isHumanoidAlive(character) and distTag do
- local t = tick() - now
- if t < 5 then
- if textLabel.Text ~= character.Name then
- textLabel.Text = character.Name
- end
- elseif t < 10 and t > 5 then
- textLabel.Text = getDistanceFrom(head)
- elseif t > 10 then
- now = tick()
- end
- wait()
- end
- end))
- return distTag
- end
- end
- end
- -- @esp component
- local function esp_getPlayers ()
- local players = {}
- for _, player in next, Players:GetPlayers() do
- if (not settings.esp_ignoreTeam and player.Team ~= localPlayer.Team) or settings.esp_ignoreTeam then
- if settings.esp_dont_ignoreSelf or player ~= localPlayer then
- players[#players + 1] = player
- end
- end
- end
- return players
- end
- function espCharacter (character, color, override)
- local alreadyESPdTag = character:FindFirstChild("AESPT")
- if alreadyESPdTag then
- if override then
- clear_active_espObjects(character)
- else
- return
- end
- end
- local _, humanoid = isHumanoidAlive(character)
- if humanoid then
- humanoid.Died:Connect(function()
- clear_active_espObjects(character)
- end)
- for _, part in next, character:GetChildren() do
- if part:IsA("BasePart") then
- createEspBoxOnObj(part, color)
- end
- end
- alreadyESPdTag = Instance.new("BoolValue", character)
- alreadyESPdTag.Name = "AESPT"
- active_espObjects[#active_espObjects + 1] = alreadyESPdTag
- end
- end
- local espEnabled = false
- local esp_Cache = {}
- function clear_esp_Cache ()
- local a = 1
- while esp_Cache[a] do
- esp_Cache[a]:Disconnect()
- esp_Cache[a] = nil
- a = a + 1
- end
- esp_Cache = {}
- end
- local function handle_Esp (character)
- local timeout = tick()
- if not isHumanoidAlive(character) then
- repeat wait() until isHumanoidAlive(character) or (tick() - timeout) >= 2
- if not isHumanoidAlive(character) then return end
- end
- local teamColor = Players:GetPlayerFromCharacter(character).TeamColor
- local color = (settings.esp_useTeamColorIfApplicable and teamColor) or settings.esp_boxColor
- color = setColor(color)
- if settings.esp_showCharacterEspd then
- espCharacter(character, color)
- end
- if settings.esp_showDistance then
- createDistTagOnCharacter(character, false, color)
- end
- local humanoid = character:FindFirstChildOfClass("Humanoid")
- humanoid.Died:Connect(function()
- clear_active_espObjects(character)
- end)
- end
- local function toggle_Esp (turnOff)
- if turnOff then
- clear_esp_Cache()
- clear_active_espObjects()
- espEnabled = false
- espText.TextColor3 = Color3.fromRGB(48, 48, 48)
- print "ESP successfully disabled"
- return
- elseif not turnOff and not espEnabled then
- print "Attempting to enabled ESP .."
- clear_esp_Cache()
- clear_active_espObjects()
- local players = esp_getPlayers()
- for _, player in next, players do
- local rbxScriptSignal = player.CharacterAdded:Connect(function(character)
- if (not espEnabled and rbxScriptSignal) then rbxScriptSignal:Disconnect(); rbxScriptSignal = nil return end
- handle_Esp(character)
- end); esp_Cache[#esp_Cache + 1] = rbxScriptSignal
- if player.Character and isHumanoidAlive(player.Character) then
- handle_Esp(player.Character)
- end
- end
- espText.TextColor3 = Color3.fromRGB(0, 255, 0)
- print "ESP successfully enabled"
- end
- end
- -- @aimbot component
- local targetPlayer, targetTeam, currentLock
- local function clickToTarget (target, override_maxDistance)
- if target and (override_maxDistance or (not override_maxDistance and getDistanceFrom(target) <= settings.aimbot_maxDistance)) then
- if target.Parent and isHumanoidAlive(target.Parent) then
- targetPlayer = game.Players:GetPlayerFromCharacter(target.Parent)
- return true
- end
- end
- end
- local function getClosestCharacter ()
- if isHumanoidAlive(localPlayer.Character) then
- local closestDist, chrctr
- if targetPlayer then
- chrctr, _ = isHumanoidAlive(targetPlayer.Character)
- if not chrctr then
- chrctr = targetPlayer.CharacterAdded:wait()
- end
- else
- local players = (targetTeam and targetTeam:GetPlayers()) or Players:GetPlayers()
- for i = 1, #players do
- if players[i] ~= localPlayer and (targetTeam or settings.aimbot_ignoreTeam or (not settings.aimbot_ignoreTeam and players[i].Team ~= localPlayer.Team)) then
- local player = players[i]
- if isHumanoidAlive(player.Character) then
- local bodyPart = player.Character:FindFirstChild(settings.aimbot_aimFor)
- if bodyPart then
- local distanceBetween = getDistanceFrom(bodyPart)
- if distanceBetween <= settings.aimbot_maxDistance and (not closestDist or distanceBetween < closestDist) then
- if (settings.aimbot_ignoreWalls or (not settings.aimbot_ignoreWalls and viewNotObstructed(bodyPart, player.Character))) then
- closestDist = distanceBetween
- chrctr = player.character
- end
- end
- end
- end
- end
- end
- end
- return chrctr
- end
- end
- local function targetCamera ()
- if isHumanoidAlive(localPlayer.Character) then
- local head = localPlayer.Character.Head
- local camera = workspace.CurrentCamera
- local character = (targetPlayer and isHumanoidAlive(targetPlayer.Character) and targetPlayer.Character) or getClosestCharacter()
- if character and character:FindFirstChild(settings.aimbot_aimFor) then
- currentLock = Players:GetPlayerFromCharacter(character)
- camera.CFrame = CFrame.new(camera.CFrame.p, character[settings.aimbot_aimFor].CFrame.p)
- end
- end
- end
- aimbotEnabled = false
- local function toggle_Aimbot ()
- aimbotEnabled = not aimbotEnabled
- print ("Aimbot successfully " .. ((aimbotEnabled and "enabled") or "disabled"))
- aimbotText.TextColor3 = (aimbotEnabled and Color3.fromRGB(0, 255, 0)) or Color3.fromRGB(48, 48, 48)
- end
- -- @commandbar component
- local function isSetting (settingName)
- for k in next, settings do
- if k:lower() == settingName:lower() then
- return k
- end
- end
- return nil
- end
- local function changeSetting (settingName, newValue, notBoolean)
- if typeof(newValue) == "string" and not notBoolean then
- if (newValue:lower() == "enable" or newValue:lower() == "true") then newValue = true
- elseif (newValue:lower() == "disable" or newValue:lower() == "false") then newValue = false end
- end
- local k = isSetting(settingName)
- if k then
- settings[k] = newValue
- print("changed", k, newValue)
- end
- end
- function execute_Command (contents)
- local section = contents[1]:lower()
- local command = contents[2] and contents[2]:lower()
- if (section == "enable" or section == "on") or (section == "disable" or section == "off") then
- if command == "aimbot" then
- aimbotEnabled = (section == "enable" or section == "on")
- print ("Aimbot successfully " .. ((aimbotEnabled and "enabled") or "disabled"))
- aimbotText.TextColor3 = (aimbotEnabled and Color3.fromRGB(0, 255, 0)) or Color3.fromRGB(48, 48, 48)
- elseif command == "esp" then
- toggle_Esp((section == "disable" or section == "off") and true)
- espEnabled = (section == "enable" or section == "on")
- end
- --
- elseif section == "esp" then
- if (command == "enable" or command == "on") or (command == "disable" or command == "off") then
- toggle_Esp((command == "disable" or command == "off") and true)
- espEnabled = (command == "enable" or command == "on")
- elseif command == "find" or command == "hide" or command:find("dist") then
- local plyr = findFirstChild(Players, contents[3]:lower())
- local color = (#contents > 4 and table.concat(contents, " ", 4)) or contents[4]
- if color == "" or color == " " then
- color = nil
- end
- if plyr then
- if command == "showdist" or command == "hidedist" then
- createDistTagOnCharacter(plyr.Character, command == "hidedist", color)
- return
- else
- if command == "find" then
- espCharacter(plyr.Character, color, true)
- espEnabled = true
- espText.TextColor3 = Color3.fromRGB(0, 255, 0)
- elseif command == "hide" then
- clear_active_espObjects(plyr.Character)
- end
- end
- end
- elseif command == "boxcolor" then
- local color = (#contents > 3 and table.concat(contents, " ", 3)) or contents[3]
- if color ~= " " and color ~= "" then
- changeSetting("esp_boxColor", color)
- toggle_Esp(true); toggle_Esp()
- print "Esp reset due to setting change."
- end
- elseif command == "ignoreteam" or command == "dontignoreself" or command == "showdistance" or command == "showcharacterespd" or command == "holdhotkey" or command == "useteamcolorifapplicable" or command == "boxtransparent" then
- local value = contents[3]:lower()
- if command ~= "holdhotkey" then
- if command == "ignoreteam" then
- changeSetting("esp_ignoreTeam", value)
- elseif command == "dontignoreself" then
- changeSetting("esp_dont_ignoreSelf", value)
- elseif command == "showdistance" then
- changeSetting("esp_showDistance", value)
- elseif command == "boxtransparent" then
- changeSetting("esp_boxTransparent", value)
- elseif command == "showcharacterespd" then
- changeSetting("esp_showCharacterEspd", value)
- elseif command == "useteamcolorifapplicable" then
- changeSetting("esp_useTeamColorIfApplicable", value)
- end
- toggle_Esp(true); toggle_Esp()
- print "Esp reset due to setting change."
- else
- changeSetting("esp_holdHotkey", value)
- if settings.esp_holdHotkey then
- print "Esp must now be activated by holding the hotkey."
- else
- print "Esp must now be toggled by pressing the hotkey."
- end
- toggle_Esp(true)
- print "Esp turned off due to activation change."
- end
- elseif command == "hotkey" or command == "sethotkey" then
- setHotkey("esp", contents[3])
- toggle_Esp(true)
- print "Esp turned off due to activation change."
- end
- --
- elseif section == "aimbot" then
- if (command == "enable" or command == "on") or (command == "disable" or command == "off") then
- aimbotEnabled = (command == "enable" or command == "on")
- aimbotText.TextColor3 = (aimbotEnabled and Color3.fromRGB(0, 255, 0)) or Color3.fromRGB(48, 48, 48)
- print ("Aimbot successfully " .. ((aimbotEnabled and "enabled") or "disabled"))
- elseif command == "target" then
- local content3 = contents[3]:lower()
- local plyr = findFirstChild(Players, content3)
- if not plyr then
- if content3 == "team" then
- local content4 = (#contents > 4 and table.concat(contents, " ", 4)) or contents[4]
- local team = findFirstChild(Teams, content4)
- if not team and (content4 == "disable" or content4 == "__disable") then
- targetTeam = nil
- aimbotEnabled = false
- aimbotText.TextColor3 = Color3.fromRGB(48, 48, 48)
- print "Aimbot disabled; target team removed."
- else
- targetTeam = team
- if aimbotEnabled then
- aimbotEnabled = false
- end
- aimbotEnabled = true
- aimbotText.TextColor3 = Color3.fromRGB(0, 255, 0)
- print "Aimbot enabled; target team set."
- end
- elseif content3 == "disable" or content3 == "__disable" then
- targetPlayer = nil
- aimbotEnabled = false
- aimbotText.TextColor3 = Color3.fromRGB(48, 48, 48)
- print "Aimbot disabled; target player removed."
- end
- else
- targetPlayer = plyr
- if aimbotEnabled then
- aimbotEnabled = false
- end
- aimbotEnabled = true
- aimbotText.TextColor3 = Color3.fromRGB(0, 255, 0)
- print "Aimbot target enabled; player set."
- end
- else
- if command == "maxdistance" then
- local number = tonumber(contents[3])
- if number then
- changeSetting("aimbot_maxDistance", number)
- end
- elseif (command == "ignorewalls" or command == "ignoreteam" or command == "aimfor" or command == "clicktolock" or command == "clicktolockdistanceoverride") then
- local value = contents[3]
- if command == "ignorewalls" then
- changeSetting("aimbot_ignoreWalls", value)
- elseif command == "ignoreteam" then
- changeSetting("aimbot_ignoreTeam", value)
- elseif command == "clicktolock" then
- changeSetting("aimbot_clickToLock", value)
- elseif command == "clicktolockdistanceoverride" then
- changeSetting("aimbot_clickToLockDistanceOverride", value)
- elseif command == "aimfor" then
- changeSetting("aimbot_aimFor", (#contents > 3 and table.concat(contents, " ", 3) or contents[3]), true)
- end
- aimbotEnabled = false; aimbotEnabled = "true"
- aimbotText.TextColor3 = Color3.fromRGB(0, 255, 0)
- print "Aimbot reset due to setting change."
- elseif command == "hotkey" or command == "sethotkey" then
- setHotkey("aimbot", contents[3])
- aimbotEnabled = false
- aimbotText.TextColor3 = Color3.fromRGB(48, 48, 48)
- print "Aimbot turned off due to activation change."
- end
- end
- -- @some flexiblity
- elseif section == "target" then
- execute_Command({"aimbot", "target", contents[2], contents[3]})
- elseif (section == "find" or section == "hide" or section:find("dist")) then
- execute_Command({"esp", section, contents[2], (#contents > 3 and table.concat(contents, " ", 3) or contents[3])})
- -- @basic fix
- elseif section == "resetcache" then
- clear_active_espObjects()
- elseif section == "terminate" then
- ESP_RBXScriptSignal:Disconnect()
- ESP_RBXScriptSignal = nil
- AIMBOT_RbxScriptSignal:Disconnect()
- AIMBOT_RbxScriptSignal = nil
- KEYS_RbxScriptSignal:Disconnect()
- KEYS_RbxScriptSignal = nil
- clear_esp_Cache()
- clear_active_espObjects()
- ESPOBJF:Destroy()
- commandBar:Destroy()
- end
- end
- local function on_FocusLost (enterPressed)
- local content = Box.Text
- Box.Text = "press `-` to type"
- Box.Font = Enum.Font.SourceSansItalic
- Box.TextTransparency = 0.5
- if enterPressed then
- if content ~= " " or content ~= "" then
- execute_Command(splitString(content, " "))
- end
- end
- end
- -- @endscript
- ESP_RBXScriptSignal = RunService.RenderStepped:Connect(function()
- if not script then
- return
- end
- if not settings.esp_holdHotkey then
- return
- end
- if not espEnabled and UserInputService:IsKeyDown(settings.esp_Hotkey) then
- toggle_Esp()
- espEnabled = true
- elseif espEnabled and not UserInputService:IsKeyDown(settings.esp_Hotkey) then
- toggle_Esp(true)
- end
- end)
- AIMBOT_RbxScriptSignal = RunService.RenderStepped:Connect(function()
- if aimbotEnabled then
- targetCamera()
- end
- end)
- KEYS_RbxScriptSignal = UserInputService.InputBegan:Connect(function(inputObj, gpe)
- local key = inputObj.KeyCode
- if (key == settings.esp_Hotkey) or (key == settings.aimbot_Hotkey) or (key == settings.commandbar_Hotkey) then
- if key == settings.commandbar_Hotkey and not gpe then
- Box:CaptureFocus()
- end
- if key == settings.aimbot_Hotkey then
- toggle_Aimbot()
- end
- if key == settings.esp_Hotkey then
- if espEnabled then
- toggle_Esp(true)
- else
- toggle_Esp()
- espEnabled = true
- end
- end
- end
- end)
- AIMBOTLOCK_RbxScriptSignal = Mouse.Button2Down:Connect(function()
- local t = Mouse.Target
- if not t then
- return
- end
- if not Players:GetPlayerFromCharacter(t.Parent) then
- local character = getCharacterFromPart(t)
- if not character then
- return
- else
- t = character:FindFirstChild("HumanoidRootPart")
- if not t then
- return
- end
- end
- end
- if not aimbotEnabled and settings.aimbot_clickToLock then
- local success = clickToTarget(t, settings.aimbot_clickToLockDistanceOverride)
- if success then
- currentLock = targetPlayer
- aimbotEnabled = true
- aimbotText.TextColor3 = Color3.fromRGB(0, 255, 0)
- print "Aimbot Enabled; target player set. [click to lock method]"
- end
- elseif aimbotEnabled then
- if currentLock and currentLock.Character and t:IsDescendantOf(currentLock.Character) then
- if targetPlayer ~= currentLock then
- targetPlayer = currentLock
- elseif targetPlayer == currentLock then
- targetPlayer, currentLock = nil, nil
- aimbotEnabled = false
- aimbotText.TextColor3 = Color3.fromRGB(48, 48, 48)
- print "Aimbot disabled; target player removed. [click to lock method]"
- end
- end
- end
- end)
- Box.FocusLost:Connect(on_FocusLost)
- Box.Focused:Connect(function()
- Box.Font = Enum.Font.SourceSans
- Box.TextTransparency = 0
- end)
- ESPOBJF.Parent = CoreGui
- commandBar.Parent = CoreGui
- end)
- APOC.Name = "APOC"
- APOC.Parent = Extras
- APOC.BackgroundColor3 = Color3.new(1, 1, 1)
- APOC.BorderColor3 = Color3.new(0.760784, 0.760784, 0.760784)
- APOC.Position = UDim2.new(0.0193965435, 0, 0.473498672, 0)
- APOC.Size = UDim2.new(0, 147, 0, 29)
- APOC.Font = Enum.Font.SourceSans
- APOC.Text = "Apoc Always Sprint"
- APOC.TextColor3 = Color3.new(0, 0, 0)
- APOC.TextSize = 14
- APOC.MouseButton1Down:Connect(function()
- game.Players.LocalPlayer.PlayerGui.HitEqualsYouDie.WalkspeedEdit:Remove()
- game.Players.LocalPlayer.PlayerGui.HitEqualsYouDie.JumpLimiter:Remove()
- game.Workspace.LocalPlayer.Humanoid.WalkSpeed.Value = 25
- end)
- EXTRAS.Name = "EXTRAS"
- EXTRAS.Parent = MainGUI
- EXTRAS.BackgroundColor3 = Color3.new(1, 1, 1)
- EXTRAS.BorderColor3 = Color3.new(0.760784, 0.760784, 0.760784)
- EXTRAS.Position = UDim2.new(0.706896544, 0, 0.825065374, 0)
- EXTRAS.Size = UDim2.new(0, 129, 0, 29)
- EXTRAS.Font = Enum.Font.SourceSans
- EXTRAS.Text = "Open Extras"
- EXTRAS.TextColor3 = Color3.new(0, 0, 0)
- EXTRAS.TextSize = 14
- EXTRAS.MouseButton1Down:connect(function()
- if Extras.Visible == true then
- Extras.Visible = false
- else
- if Extras.Visible == false then
- Extras.Visible = true
- end
- end
- end)
- Open.Name = "Open"
- Open.Parent = ScreenGui
- Open.BackgroundColor3 = Color3.new(1, 1, 1)
- Open.BorderColor3 = Color3.new(0.760784, 0.760784, 0.760784)
- Open.Position = UDim2.new(-0.000781010836, 0, -0.00140154362, 0)
- Open.Size = UDim2.new(0, 147, 0, 29)
- Open.Visible = false
- Open.Font = Enum.Font.SourceSans
- Open.Text = "Open"
- Open.TextColor3 = Color3.new(0, 0, 0)
- Open.TextSize = 14
- Open.MouseButton1Down:connect(function()
- MainGUI.Visible = true
- Open.Visible = false
- Close.Visible = true
- end)
- Close.Name = "Close"
- Close.Parent = ScreenGui
- Close.BackgroundColor3 = Color3.new(1, 1, 1)
- Close.BorderColor3 = Color3.new(0.760784, 0.760784, 0.760784)
- Close.Position = UDim2.new(-0.000781010836, 0, -0.00140154362, 0)
- Close.Size = UDim2.new(0, 147, 0, 29)
- Close.Font = Enum.Font.SourceSans
- Close.Text = "Close"
- Close.TextColor3 = Color3.new(0, 0, 0)
- Close.TextSize = 14
- Close.MouseButton1Down:connect(function()
- MainGUI.Visible = false
- Open.Visible = true
- Close.Visible = false
- end)
Add Comment
Please, Sign In to add comment