
KeylessUniversal

-- rivals thing - esp aim fly (no dumb title)
-- e=esp q=aim f=fly (fly fast af)
local p=game:GetService("Players")
local r=game:GetService("RunService")
local i=game:GetService("UserInputService")
local w=game:GetService("Workspace")
local me=p.LocalPlayer
local cam=w.CurrentCamera
local m=me:GetMouse()
local esp=true
local aim=false
local fly=false
local flyspeed=50 -- fast fly
local bodyvel=nil
local esps={}
local function d(a,b)return(a-b).Magnitude end
-- esp box
local function box(plr)
if plr==me then return end
local c=plr.Character
if not c then return end
local root=c:FindFirstChild("HumanoidRootPart")
if not root then return end
if esps[plr] then esps[plr]:Destroy() end
local b=Instance.new("BillboardGui")
b.Name="espbox"
b.Adornee=root
b.Size=UDim2.new(0,6,0,3)
b.StudsOffset=Vector3.new(0,4,0)
b.AlwaysOnTop=true
b.Parent=root
local img=Instance.new("Frame")
img.Size=UDim2.new(4,0,6,0)
img.Position=UDim2.new(-0.5,0,-1.5,0)
img.BackgroundColor3=Color3.new(0,1,0)
img.BackgroundTransparency=0.4
img.BorderSizePixel=0
img.Parent=b
esps[plr]=b
end
local function db(plr)
if esps[plr] then
esps[plr]:Destroy()
esps[plr]=nil
end
end
-- closest aim
local function closest()
local best=nil
local dist=999
local myroot=me.Character and me.Character:FindFirstChild("HumanoidRootPart")
if not myroot then return nil end
for _,pl in pairs(p:GetPlayers())do
if pl~=me and pl.Character and pl.Character:FindFirstChild("Head")then
local dd=d(myroot.Position,pl.Character.Head.Position)
if dd<dist and dd<200 then
best=pl
dist=dd
end
end
end
return best
end
-- aimbot
local shooting=false
i.InputBegan:Connect(function(k)
if k.UserInputType==Enum.UserInputType.MouseButton1 then
shooting=true
end
end)
i.InputEnded:Connect(function(k)
if k.UserInputType==Enum.UserInputType.MouseButton1 then
shooting=false
end
end)
r.Heartbeat:Connect(function()
if not aim or not shooting then return end
local t=closest()
if t and t.Character and t.Character:FindFirstChild("Head")then
local head=t.Character.Head.Position
local sp=cam:WorldToScreenPoint(head)
local mx,my=m.X,m.Y
local dx=sp.X-mx
local dy=sp.Y-my
if math.abs(dx)<400 and math.abs(dy)<400 then
mousemoverel(dx*0.15,dy*0.15)
end
end
end)
-- fly
local function togglefly()
local char=me.Character
if not char then return end
local root=char:FindFirstChild("HumanoidRootPart")
if not root then return end
fly=not fly
if fly then
bodyvel=Instance.new("BodyVelocity")
bodyvel.MaxForce=Vector3.new(4000,4000,4000)
bodyvel.Velocity=Vector3.new(0,0,0)
bodyvel.Parent=root
else
if bodyvel then bodyvel:Destroy() end
bodyvel=nil
root.Velocity=Vector3.new(0,0,0)
end
end
r.Heartbeat:Connect(function()
if not fly or not me.Character or not bodyvel then return end
local root=me.Character.HumanoidRootPart
local move=Vector3.new(0,0,0)
if i:IsKeyDown(Enum.KeyCode.W)then move=move+cam.CFrame.LookVector end
if i:IsKeyDown(Enum.KeyCode.S)then move=move-cam.CFrame.LookVector end
if i:IsKeyDown(Enum.KeyCode.A)then move=move-cam.CFrame.RightVector end
if i:IsKeyDown(Enum.KeyCode.D)then move=move+cam.CFrame.RightVector end
local up=0
if i:IsKeyDown(Enum.KeyCode.Space)then up=1 end
if i:IsKeyDown(Enum.KeyCode.LeftShift)then up=-1 end
bodyvel.Velocity=(move*flyspeed)+(cam.CFrame.UpVector*up*flyspeed)
end)
-- keys
i.InputBegan:Connect(function(k)
if k.KeyCode==Enum.KeyCode.E then
esp=not esp
if esp then
for _,pl in pairs(p:GetPlayers())do box(pl) end
else
for _,pl in pairs(p:GetPlayers())do db(pl) end
end
elseif k.KeyCode==Enum.KeyCode.Q then
aim=not aim
elseif k.KeyCode==Enum.KeyCode.F then
togglefly()
end
end)
-- players
p.PlayerAdded:Connect(function(pl)
pl.CharacterAdded:Connect(function()
wait(1)
if esp then box(pl) end
end)
end)
p.PlayerRemoving:Connect(db)
for _,pl in pairs(p:GetPlayers())do
if pl.Character then box(pl) end
pl.CharacterAdded:Connect(function()wait(1)if esp then box(pl)end end)
end
-- gui no title
wait(1)
local gui=Instance.new("ScreenGui")
gui.Parent=me:WaitForChild("PlayerGui")
local boxx=Instance.new("Frame")
boxx.Size=UDim2.new(0,160,0,100)
boxx.Position=UDim2.new(0,5,0,5)
boxx.BackgroundColor3=Color3.new(0.05,0.05,0.05)
boxx.BorderSizePixel=1
boxx.BorderColor3=Color3.new(1,1,1)
boxx.Active=true
boxx.Draggable=true
boxx.Parent=gui
local ebtn=Instance.new("TextButton")
ebtn.Size=UDim2.new(0.85,0,0,25)
ebtn.Position=UDim2.new(0.075,0,0.15,0)
ebtn.BackgroundColor3=Color3.new(0,0.8,0)
ebtn.Text="ESP ON"
ebtn.TextColor3=Color3.new(1,1,1)
ebtn.Font=Enum.Font.SourceSans
ebtn.Parent=boxx
local abtn=Instance.new("TextButton")
abtn.Size=UDim2.new(0.85,0,0,25)
abtn.Position=UDim2.new(0.075,0,0.45,0)
abtn.BackgroundColor3=Color3.new(0.8,0,0)
abtn.Text="AIM OFF"
abtn.TextColor3=Color3.new(1,1,1)
abtn.Font=Enum.Font.SourceSans
abtn.Parent=boxx
local fbtn=Instance.new("TextButton")
fbtn.Size=UDim2.new(0.85,0,0,25)
fbtn.Position=UDim2.new(0.075,0,0.75,0)
fbtn.BackgroundColor3=Color3.new(0,0.5,1)
fbtn.Text="FLY OFF"
fbtn.TextColor3=Color3.new(1,1,1)
fbtn.Font=Enum.Font.SourceSans
fbtn.Parent=boxx
ebtn.MouseButton1Click:Connect(function()
esp=not esp
ebtn.Text="ESP "..(esp and "ON" or "OFF")
ebtn.BackgroundColor3=esp and Color3.new(0,0.8,0) or Color3.new(0.3,0.3,0.3)
if esp then
for _,pl in pairs(p:GetPlayers())do box(pl) end
else
for _,pl in pairs(p:GetPlayers())do db(pl) end
end
end)
abtn.MouseButton1Click:Connect(function()
aim=not aim
abtn.Text="AIM "..(aim and "ON" or "OFF")
abtn.BackgroundColor3=aim and Color3.new(0.8,0,0) or Color3.new(0.3,0.3,0.3)
end)
fbtn.MouseButton1Click:Connect(function()
togglefly()
fbtn.Text="FLY "..(fly and "ON" or "OFF")
fbtn.BackgroundColor3=fly and Color3.new(0,0.8,0) or Color3.new(0,0.5,1)
end)
print("rivals - e q f")No comments yet for this script.



