Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(0.2)
- game.StarterGui:SetCore("SendNotification", {
- Title = "Headless Scripts [FPS]",
- Text = "Made by HeadlessExploits",
- Icon = "rbxassetid://3837426995",
- Duration = 23
- })
- local a = Instance.new("ScreenGui")
- local b = Instance.new("Frame")
- local c = Instance.new("Frame")
- local d = Instance.new("Frame")
- local e = Instance.new("TextButton")
- local f = Instance.new("UIListLayout")
- local g = Instance.new("TextButton")
- local h = Instance.new("TextButton")
- local i = Instance.new("TextButton")
- local j = Instance.new("TextLabel")
- a.Parent = game.CoreGui
- a.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- b.Name = "Main"
- b.Parent = a
- b.BackgroundColor3 = Color3.new(1, 1, 1)
- b.BorderSizePixel = 0
- b.Position = UDim2.new(0, 0, 0.292329967, 0)
- b.Size = UDim2.new(0, 180, 0, 26)
- c.Parent = b
- c.BackgroundColor3 = Color3.new(0.262745, 0.262745, 0.262745)
- c.BackgroundTransparency = 0.15000000596046
- c.BorderSizePixel = 0
- c.Position = UDim2.new(0, 0, 1, 0)
- c.Size = UDim2.new(0, 180, 0, 123)
- d.Parent = c
- d.BackgroundColor3 = Color3.new(0.262745, 0.262745, 0.262745)
- d.BackgroundTransparency = 0.5
- d.BorderSizePixel = 0
- d.Position = UDim2.new(0, 0, 0.0780795366, 0)
- d.Size = UDim2.new(0, 180, 0, 107)
- e.Name = "esp"
- e.Parent = d
- e.BackgroundColor3 = Color3.new(1, 1, 1)
- e.BackgroundTransparency = 1
- e.BorderSizePixel = 0
- e.Position = UDim2.new(0, 0, 0.0584795177, 0)
- e.Size = UDim2.new(0, 180, 0, 25)
- e.Font = Enum.Font.SourceSansBold
- e.Text = "ESP"
- e.TextColor3 = Color3.new(1, 1, 1)
- e.TextScaled = true
- e.TextSize = 14
- e.TextStrokeTransparency = 0
- e.TextWrapped = true
- e.MouseButton1Click:connect(function()
- ALLYCOLOR = {150, 255}
- ENEMYCOLOR = {0, 0, 255}
- TRANSPARENCY = 0.5
- HEALTHBAR_ACTIVATED = true
- function createFlex()
- players = game:GetService("Players")
- faces = {"Front", "Back", "Bottom", "Left", "Right", "Top"}
- currentPlayer = nil
- lplayer = players.LocalPlayer
- players.PlayerAdded:Connect(function(k)
- currentPlayer = k
- k.CharacterAdded:Connect(function(l)
- createESP(l)
- end)
- end)
- function checkPart(m)
- if (m:IsA("Part") or m:IsA("MeshPart")) and m.Name ~= "HumanoidRootPart" then return true end
- end
- function actualESP(m)
- for n = 0, 5 do
- surface = Instance.new("SurfaceGui", m)
- surface.Face = Enum.NormalId[faces[n + 1]]
- surface.AlwaysOnTop = true
- frame = Instance.new("Frame", surface)
- frame.Size = UDim2.new(1, 0, 1, 0)
- frame.BorderSizePixel = 0
- frame.BackgroundTransparency = TRANSPARENCY
- if currentPlayer.Team == players.LocalPlayer.Team then
- frame.BackgroundColor3 = Color3.new(ALLYCOLOR[1], ALLYCOLOR[2], ALLYCOLOR[3])
- else
- frame.BackgroundColor3 = Color3.new(ENEMYCOLOR[1], ENEMYCOLOR[2], ENEMYCOLOR[3])
- end
- end
- end
- function createHealthbar(o)
- board = Instance.new("BillboardGui", o)
- board.Name = "total"
- board.Size = UDim2.new(1, 0, 1, 0)
- board.StudsOffset = Vector3.new(3, 1, 0)
- board.AlwaysOnTop = true
- bar = Instance.new("Frame", board)
- bar.BackgroundColor3 = Color3.new(255, 0, 0)
- bar.BorderSizePixel = 0
- bar.Size = UDim2.new(0.2, 0, 4, 0)
- bar.Name = "total2"
- health = Instance.new("Frame", bar)
- health.BackgroundColor3 = Color3.new(0, 255, 0)
- health.BorderSizePixel = 0
- health.Size = UDim2.new(1, 0, o.Parent.Humanoid.Health / 100, 0)
- o.Parent.Humanoid.Changed:Connect(function(p)
- o.total.total2.Frame.Size = UDim2.new(1, 0, o.Parent.Humanoid.Health / 100, 0)
- end)
- end
- function createESP(q)
- bugfix = q:WaitForChild("Head")
- for n, r in pairs(q:GetChildren()) do
- if checkPart(r) then
- actualESP(r)
- end
- end
- if HEALTHBAR_ACTIVATED then
- createHealthbar(q:WaitForChild("HumanoidRootPart"))
- end
- end
- for n, s in pairs(players:GetChildren()) do
- if s ~= players.LocalPlayer then
- currentPlayer = s
- createESP(s.Character)
- s.CharacterAdded:Connect(function(l)
- createESP(l)
- end)
- end
- end
- end
- createFlex()
- end)
- f.Parent = d
- f.SortOrder = Enum.SortOrder.LayoutOrder
- g.Name = "aimbot"
- g.Parent = d
- g.BackgroundColor3 = Color3.new(1, 1, 1)
- g.BackgroundTransparency = 1
- g.BorderSizePixel = 0
- g.Position = UDim2.new(0.111111112, 0, 0.208012223, 0)
- g.Size = UDim2.new(0, 180, 0, 25)
- g.Font = Enum.Font.SourceSansBold
- g.Text = "AIMBOT"
- g.TextColor3 = Color3.new(1, 1, 1)
- g.TextScaled = true
- g.TextSize = 14
- g.TextStrokeTransparency = 0
- g.TextWrapped = true
- g.MouseButton1Click:connect(function()
- local t = game:GetService('Players').LocalPlayer
- local u = workspace.CurrentCamera
- local v = game:GetService('Players')
- local w = v.LocalPlayer
- local x = w:GetMouse()
- local y = t:GetMouse()
- local z = v
- function FindNearest(A)
- local B = 1000000
- local C = nil
- for n, r in pairs(v:GetPlayers()) do
- if r.Character and r.Name ~= t.Name and r.Character:FindFirstChild('UpperTorso') then
- local D, E = u:WorldToScreenPoint(r.Character.UpperTorso.Position)
- local F = y.UnitRay:Distance(r.Character.UpperTorso.Position)
- if F < B and E then
- B = F
- C = r
- end
- end
- end
- return C
- end
- x.Button2Down:Connect(function(G)
- targplr = FindNearest(Vector3.new(y.UnitRay.Origin, y.UnitRay.Direction))
- rightClick = true
- end)
- x.Button2Up:Connect(function(G)
- rightClick = false
- end)
- x.Button1Down:Connect(function(G)
- targplr = FindNearest(Vector3.new(y.UnitRay.Origin, y.UnitRay.Direction))
- end)
- function AimAt(x, y)
- local cam = workspace:FindFirstChildOfClass("Camera") or workspace.Camera or workspace.CurrentCamera
- local vps = cam.ViewportSize
- local vpsx = vps.X
- local vpsy = vps.Y
- local screencenterx = vpsx/2
- local screencentery = vpsy/2
- local aimatx
- local aimaty
- if x ~= 0 then
- if x < screencenterx then
- aimatx = -(screencenterx - x)
- aimatx = aimatx
- if aimatx + screencenterx > screencenterx * 2 then
- aimatx = 0
- end
- end
- if x > screencenterx then
- aimatx = x - screencenterx
- aimatx = aimatx
- if aimatx + screencenterx < 0 then
- aimatx = 0
- end
- end
- end
- if y ~= 0 then
- if y > screencentery then
- aimaty = -(screencentery - y)
- aimaty = aimaty
- if aimaty + screencentery > screencentery * 2 then
- aimaty = 0
- end
- end
- if y < screencentery then
- aimaty = y - screencentery
- aimaty = aimaty
- if aimaty + screencentery < 0 then
- aimaty = 0
- end
- end
- end
- --aimatx = aimatx + ((game.Players.LocalPlayer.Character.HumanoidRootPart.Position - ))
- return aimatx, aimaty
- end
- --[[_G.xoff = 25
- _G.LA = game:service'RunService'.Stepped:Connect(function()
- if rightClick and t.Character then
- if targplr.Character and targplr.Character:FindFirstChild('Head') then
- local cf = CFrame.new(Workspace.CurrentCamera.CFrame.Position, targplr.Character.Head.Position)
- local fix = CFrame.new(Workspace.CurrentCamera.CFrame.Position, cf.LookVector - Vector3.new(_G.xoff, 0, 0))
- u.CFrame = fix
- end
- end
- end)]]--
- local mt = getrawmetatable(game);
- local oldIndex = mt.__index;
- local oldNamecall = mt.__namecall;
- if setreadonly then setreadonly(mt, false); else make_writeable(mt, true); end;
- local namecallMethod = getnamecallmethod or get_namecall_method;
- local newClose = newcclosure or function(f) return f; end;
- mt.__namecall = newClose(function(...) [nonamecall]
- local method = namecallMethod();
- local args = {...};
- if tostring(method) == "FindPartOnRayWithIgnoreList" and getfenv(2).script.Name == "Weapon_Handle" then
- local closest = targplr;
- if closest then
- local origin = args[2].Origin;
- closest = (closest.Character["Head"]);
- return oldNamecall(workspace, Ray.new(origin, (closest.Position - origin).Unit * 1000), args[3]);
- end;
- end;
- return oldNamecall(...);
- end);
- if setreadonly then setreadonly(mt, true); else make_writeable(mt, false); end;
- end)
- h.Name = "Speed"
- h.Parent = d
- h.BackgroundColor3 = Color3.new(1, 1, 1)
- h.BackgroundTransparency = 1
- h.BorderSizePixel = 0
- h.Position = UDim2.new(0, 0, 0.0584795177, 0)
- h.Size = UDim2.new(0, 180, 0, 25)
- h.Font = Enum.Font.SourceSansBold
- h.Text = "SPEED [x]"
- h.TextColor3 = Color3.new(1, 1, 1)
- h.TextScaled = true
- h.TextSize = 14
- h.TextStrokeTransparency = 0
- h.TextWrapped = true
- h.MouseButton1Click:connect(function()
- down = false
- velocity = Instance.new("BodyVelocity")
- velocity.maxForce = Vector3.new(100000, 0, 100000)
- local H = 180
- gyro = Instance.new("BodyGyro")
- gyro.maxTorque = Vector3.new(100000, 0, 100000)
- local I = game.Players.LocalPlayer.Character.Humanoid
- function onButton1Down(y)
- down = true
- velocity.Parent = game.Players.LocalPlayer.Character.UpperTorso
- velocity.velocity = I.MoveDirection * H
- gyro.Parent = game.Players.LocalPlayer.Character.UpperTorso
- while down do
- if not down then break end
- velocity.velocity = I.MoveDirection * H
- local J = gyro.Parent.Position + (gyro.Parent.Position - workspace.CurrentCamera.CoordinateFrame.p).unit * 5
- gyro.cframe = CFrame.new(gyro.Parent.Position, Vector3.new(J.x, gyro.Parent.Position.y, J.z))
- wait(0.1)
- end
- end
- function onButton1Up(y)
- velocity.Parent = nil
- gyro.Parent = nil
- down = false
- end
- function onSelected(y)
- y.KeyDown:connect(function(K)
- if K:lower() == "k" then
- onButton1Down(y)
- end
- end)
- y.KeyUp:connect(function(K)
- if K:lower() == "k" then
- onButton1Up(y)
- end
- end)
- end
- onSelected(game.Players.LocalPlayer:GetMouse())
- end)
- i.Name = "fly"
- i.Parent = d
- i.BackgroundColor3 = Color3.new(1, 1, 1)
- i.BackgroundTransparency = 1
- i.BorderSizePixel = 0
- i.Position = UDim2.new(0, 0, 0.0584795177, 0)
- i.Size = UDim2.new(0, 180, 0, 25)
- i.Font = Enum.Font.SourceSansBold
- i.Text = "FLY [E]"
- i.TextColor3 = Color3.new(1, 1, 1)
- i.TextScaled = true
- i.TextSize = 14
- i.TextStrokeTransparency = 0
- i.TextWrapped = true
- i.MouseButton1Click:connect(function()
- repeat
- wait()
- until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("UpperTorso") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
- local y = game.Players.LocalPlayer:GetMouse()
- repeat
- wait()
- until y
- local z = game.Players.LocalPlayer
- local L = z.Character.UpperTorso
- local M = true
- local N = true
- local O = {
- f = 0,
- b = 0,
- l = 0,
- r = 0
- }
- local P = {
- f = 0,
- b = 0,
- l = 0,
- r = 0
- }
- local Q = 50
- local H = 0
- function Fly()
- local R = Instance.new("BodyGyro", L)
- R.P = 9e4
- R.maxTorque = Vector3.new(9e9, 9e9, 9e9)
- R.cframe = L.CFrame
- local S = Instance.new("BodyVelocity", L)
- S.velocity = Vector3.new(0, 0.1, 0)
- S.maxForce = Vector3.new(9e9, 9e9, 9e9)
- repeat
- wait()
- z.Character.Humanoid.PlatformStand = true
- if O.l + O.r ~= 0 or O.f + O.b ~= 0 then
- H = H + .5 + H / Q
- if H > Q then
- H = Q
- end
- elseif not (O.l + O.r ~= 0 or O.f + O.b ~= 0) and H ~= 0 then
- H = H - 1
- if H < 0 then
- H = 0
- end
- end
- if O.l + O.r ~= 0 or O.f + O.b ~= 0 then
- S.velocity = (game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (O.f + O.b) + game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(O.l + O.r, (O.f + O.b) * .2, 0).p - game.Workspace.CurrentCamera.CoordinateFrame.p) * H
- P = {
- f = O.f,
- b = O.b,
- l = O.l,
- r = O.r
- }
- elseif O.l + O.r == 0 and O.f + O.b == 0 and H ~= 0 then
- S.velocity = (game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (P.f + P.b) + game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(P.l + P.r, (P.f + P.b) * .2, 0).p - game.Workspace.CurrentCamera.CoordinateFrame.p) * H
- else
- S.velocity = Vector3.new(0, 0.1, 0)
- end
- R.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((O.f + O.b) * 50 * H / Q), 0, 0)
- until not M
- O = {
- f = 0,
- b = 0,
- l = 0,
- r = 0
- }
- P = {
- f = 0,
- b = 0,
- l = 0,
- r = 0
- }
- H = 0
- R:Destroy()
- S:Destroy()
- z.Character.Humanoid.PlatformStand = false
- end
- y.KeyDown:connect(function(G)
- if G:lower() == "l" then
- if M then
- M = false
- else
- M = true
- Fly()
- end
- elseif G:lower() == "w" then
- O.f = 1
- elseif G:lower() == "s" then
- O.b = -1
- elseif G:lower() == "a" then
- O.l = -1
- elseif G:lower() == "d" then
- O.r = 1
- end
- end)
- y.KeyUp:connect(function(G)
- if G:lower() == "w" then
- O.f = 0
- elseif G:lower() == "s" then
- O.b = 0
- elseif G:lower() == "a" then
- O.l = 0
- elseif G:lower() == "d" then
- O.r = 0
- end
- end)
- Fly()
- end)
- j.Parent = b
- j.BackgroundColor3 = Color3.new(1, 1, 1)
- j.BackgroundTransparency = 1
- j.BorderSizePixel = 0
- j.Position = UDim2.new(0.0611111112, 0, 0, 0)
- j.Size = UDim2.new(0, 158, 0, 26)
- j.Font = Enum.Font.SourceSansBold
- j.Text = "Headless Scripts [FPS]"
- j.TextColor3 = Color3.new(1, 1, 1)
- j.TextScaled = true
- j.TextSize = 14
- j.TextStrokeTransparency = 0
- j.TextWrapped = true
- function SCRIPT_XXHK66_FAKESCRIPT()
- local T = Instance.new('Script')
- T.Parent = b
- repeat
- for U = 0, 1, .01 do
- T.Parent.Parent.Main.BackgroundColor3 = Color3.fromHSV(U, 1, 1)
- wait()
- end
- for U = 1, 0 - .01 do
- T.Parent.Parent.Main.BackgroundColor3 = Color3.fromHSV(U, 1, 1)
- wait()
- end
- until nil
- end
- coroutine.resume(coroutine.create(SCRIPT_XXHK66_FAKESCRIPT))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement