Run it
Copy the script and paste it into your executor.
Players = :()
RunService = :()
UserInputService = :()
player = Players.LocalPlayer
camera = .CurrentCamera
Rayfield = (:())()
Window = Rayfield:({
Name = ,
LoadingTitle = ,
LoadingSubtitle = ,
ConfigurationSaving = {
Enabled = ,
FolderName = ,
FileName =
},
Discord = {
Enabled = ,
},
KeySystem =
})
settings = {
lockEnabled = ,
snapLock = ,
lockDistance = ,
lockSmoothness = ,
ignoreTeammates = ,
toggleKey = .KeyCode.Q,
fovEnabled = ,
fovAngle = ,
espEnabled = ,
espShowNames = ,
espShowDistance = ,
espShowHealth = ,
espBoxes = ,
espCrosshair = ,
espMaxDistance = ,
espHealthBars = ,
showTargetCircle = ,
targetCircleColor = .(, , )
}
lockOnState = {
currentTarget = ,
targetCircle = ,
espObjects = {},
fovCircle =
}
LockOnTab = Window:(, )
LockOnTab:()
LockOnTab:()
LockToggle = LockOnTab:({
Name = ,
CurrentValue = ,
Flag = ,
Callback = (Value)
settings.lockEnabled = Value
Value
lockOnState.currentTarget =
,
})
SnapLockToggle = LockOnTab:({
Name = ,
CurrentValue = ,
Flag = ,
Callback = (Value)
settings.snapLock = Value
,
})
FOVToggle = LockOnTab:({
Name = ,
CurrentValue = ,
Flag = ,
Callback = (Value)
settings.fovEnabled = Value
,
})
LockOnTab:({
Name = ,
Range = {, },
Increment = ,
Suffix = ,
CurrentValue = ,
Flag = ,
Callback = (Value)
settings.fovAngle = Value
,
})
LockOnTab:({
Name = ,
Range = {, },
Increment = ,
Suffix = ,
CurrentValue = ,
Flag = ,
Callback = (Value)
settings.lockDistance = Value
,
})
LockOnTab:({
Name = ,
Range = {, },
Increment = ,
Suffix = ,
CurrentValue = ,
Flag = ,
Callback = (Value)
settings.lockSmoothness = Value
,
})
IgnoreTeammatesToggle = LockOnTab:({
Name = ,
CurrentValue = ,
Flag = ,
Callback = (Value)
settings.ignoreTeammates = Value
,
})
LockOnTab:({
Name = ,
CurrentKeybind = ,
HoldToInteract = ,
Flag = ,
Callback = (Keybind)
settings.toggleKey = Keybind
,
})
ESPTab = Window:(, )
ESPToggle = ESPTab:({
Name = ,
CurrentValue = ,
Flag = ,
Callback = (Value)
settings.espEnabled = Value
Value
_, v (lockOnState.espObjects)
v v.Parent
(() v:() )
lockOnState.espObjects = {}
,
})
ESPNamesToggle = ESPTab:({
Name = ,
CurrentValue = ,
Flag = ,
Callback = (Value)
settings.espShowNames = Value
,
})
ESPDistanceToggle = ESPTab:({
Name = ,
CurrentValue = ,
Flag = ,
Callback = (Value)
settings.espShowDistance = Value
,
})
ESPHealthToggle = ESPTab:({
Name = ,
CurrentValue = ,
Flag = ,
Callback = (Value)
settings.espShowHealth = Value
,
})
ESPHealthBarsToggle = ESPTab:({
Name = ,
CurrentValue = ,
Flag = ,
Callback = (Value)
settings.espHealthBars = Value
,
})
ESPBoxesToggle = ESPTab:({
Name = ,
CurrentValue = ,
Flag = ,
Callback = (Value)
settings.espBoxes = Value
,
})
ESPCrosshairToggle = ESPTab:({
Name = ,
CurrentValue = ,
Flag = ,
Callback = (Value)
settings.espCrosshair = Value
,
})
ESPTab:({
Name = ,
Range = {, },
Increment = ,
Suffix = ,
CurrentValue = ,
Flag = ,
Callback = (Value)
settings.espMaxDistance = Value
,
})
VisualsTab = Window:(, )
TargetCircleToggle = VisualsTab:({
Name = ,
CurrentValue = ,
Flag = ,
Callback = (Value)
settings.showTargetCircle = Value
Value lockOnState.targetCircle
lockOnState.targetCircle:()
lockOnState.targetCircle =
,
})
VisualsTab:()
UserInputService.InputBegan:((input, processed)
processed
input.KeyCode == settings.toggleKey
settings.lockEnabled = settings.lockEnabled
LockToggle:(settings.lockEnabled)
)
(targetPosition)
settings.fovEnabled
character = player.Character
character
rootPart = character:()
rootPart
cameraPos = camera.CFrame.Position
cameraForward = camera.CFrame.LookVector
directionToTarget = (targetPosition - cameraPos).Unit
angle = .(.(cameraForward:(directionToTarget), -, ))
angleInDegrees = .(angle)
angleInDegrees <= (settings.fovAngle / )
(head)
character = player.Character
character
rootPart = character:()
rootPart
origin = rootPart.Position
direction = (head.Position - origin)
rayParams = RaycastParams.()
rayParams.FilterDescendantsInstances = {character}
rayParams.FilterType = .RaycastFilterType.Exclude
result = :(origin, direction, rayParams)
result
hitInstance = result.Instance
hitCharacter = hitInstance:()
hitCharacter hitCharacter:()
hitCharacter == head.Parent
()
character = player.Character
character
rootPart = character:()
rootPart
nearest =
nearestDist = settings.lockDistance
_, otherPlayer (Players:())
otherPlayer == player
otherChar = otherPlayer.Character
otherChar
settings.ignoreTeammates otherPlayer.Team == player.Team
humanoid = otherChar:()
head = otherChar:()
humanoid humanoid.Health <= head
(head.Position)
dist = (rootPart.Position - head.Position).Magnitude
dist < nearestDist (head)
nearest = head
nearestDist = dist
nearest
()
lockOnState.targetCircle
lockOnState.targetCircle:()
circle = .()
circle.Size = .(, , , )
circle.MaxDistance = settings.lockDistance *
circle.Adornee = lockOnState.currentTarget
frame = .()
frame.Size = .(, , , )
frame.BackgroundTransparency =
frame.Parent = circle
corner = .()
corner.CornerRadius = .(, )
corner.Parent = frame
stroke = .()
stroke.Thickness =
stroke.Color = settings.targetCircleColor
stroke.Parent = frame
circle.Parent =
lockOnState.targetCircle = circle
(otherPlayer)
otherChar = otherPlayer.Character
otherChar
head = otherChar:()
head
espContainer = .()
espContainer.Name = .. otherPlayer.UserId
espContainer.Parent =
espGui = .()
espGui.MaxDistance = settings.espMaxDistance
espGui.Size = .(, , , )
espGui.Adornee = head
mainFrame = .()
mainFrame.BackgroundTransparency =
mainFrame.BackgroundColor3 = .(, , )
mainFrame.Size = .(, , , )
mainFrame.Parent = espGui
corner = .()
corner.CornerRadius = .(, )
corner.Parent = mainFrame
stroke = .()
stroke.Thickness =
stroke.Color = .(, , )
stroke.Parent = mainFrame
textLabel = .()
textLabel.BackgroundTransparency =
textLabel.TextColor3 = .(, , )
textLabel.TextSize =
textLabel.Font = .Font.GothamBold
textLabel.Size = .(, , , )
textLabel.Position = .(, , , )
textLabel.TextWrapped =
textLabel.Parent = mainFrame
healthBarBg = .()
healthBarBg.BackgroundColor3 = .(, , )
healthBarBg.Size = .(, , , )
healthBarBg.Position = .(, , , )
healthBarBg.Parent = mainFrame
healthBarFill = .()
healthBarFill.BackgroundColor3 = .(, , )
healthBarFill.Size = .(, , , )
healthBarFill.Parent = healthBarBg
espGui.Parent = espContainer
crosshairGui = .()
crosshairGui.MaxDistance = settings.espMaxDistance
crosshairGui.Size = .(, , , )
crosshairGui.Adornee = head
crossFrame = .()
crossFrame.BackgroundTransparency =
crossFrame.Size = .(, , , )
crossFrame.Parent = crosshairGui
crossH = .()
crossH.BackgroundColor3 = .(, , )
crossH.Size = .(, , , )
crossH.Position = .(, , , )
crossH.Parent = crossFrame
crossV = .()
crossV.BackgroundColor3 = .(, , )
crossV.Size = .(, , , )
crossV.Position = .(, , , )
crossV.Parent = crossFrame
crosshairGui.Parent = espContainer
lockOnState.espObjects[otherPlayer.UserId] = {
container = espContainer,
mainGui = espGui,
textLabel = textLabel,
healthBarFill = healthBarFill,
crosshairGui = crosshairGui,
humanoid = otherChar:()
}
humanoid = otherChar:()
humanoid
humanoid.HealthChanged:(()
humanoid.Health <=
lockOnState.espObjects[otherPlayer.UserId]
lockOnState.espObjects[otherPlayer.UserId].container:()
lockOnState.espObjects[otherPlayer.UserId] =
)
RunService.RenderStepped:(()
character = player.Character
character
rootPart = character:()
rootPart
settings.lockEnabled
lockOnState.currentTarget = ()
lockOnState.currentTarget
settings.snapLock
camera.CFrame = .(camera.CFrame.Position, lockOnState.currentTarget.Position)
currentCFrame = camera.CFrame
lookAt = .(currentCFrame.Position, lockOnState.currentTarget.Position)
camera.CFrame = currentCFrame:(lookAt, settings.lockSmoothness)
settings.showTargetCircle
lockOnState.currentTarget
lockOnState.targetCircle
()
lockOnState.targetCircle.Adornee = lockOnState.currentTarget
lockOnState.targetCircle
lockOnState.targetCircle:()
lockOnState.targetCircle =
settings.espEnabled
_, otherPlayer (Players:())
otherPlayer == player
otherChar = otherPlayer.Character
otherChar otherChar:()
humanoid = otherChar.Humanoid
humanoid.Health <=
head = otherChar:()
head
lockOnState.espObjects[otherPlayer.UserId]
(otherPlayer)
espData = lockOnState.espObjects[otherPlayer.UserId]
espData espData.container.Parent
distance = (rootPart.Position - head.Position).Magnitude
espText =
settings.espShowNames
espText = espText .. otherPlayer.Name ..
settings.espShowDistance
espText = espText .. .(, distance)
espData.textLabel.Text = espText
settings.espHealthBars espData.humanoid
healthPercent = .(espData.humanoid.Health / espData.humanoid.MaxHealth, , )
espData.healthBarFill.Size = .(healthPercent, , , )
healthPercent >
espData.healthBarFill.BackgroundColor3 = .(, , )
healthPercent >
espData.healthBarFill.BackgroundColor3 = .(, , )
espData.healthBarFill.BackgroundColor3 = .(, , )
espData.crosshairGui.Enabled = settings.espCrosshair
)
player.CharacterAdded:(()
lockOnState.targetCircle
lockOnState.targetCircle:()
lockOnState.targetCircle =
lockOnState.currentTarget =
_, v (lockOnState.espObjects)
v v.container v.container.Parent
v.container:()
lockOnState.espObjects = {}
)
Players.PlayerRemoving:((leavingPlayer)
lockOnState.espObjects[leavingPlayer.UserId]
lockOnState.espObjects[leavingPlayer.UserId].container
lockOnState.espObjects[leavingPlayer.UserId].container:()
lockOnState.espObjects[leavingPlayer.UserId] =
)
Rayfield:()Loads code from the internet. It downloads more code when it runs (loadstring + HttpGet), which can change after it was posted. From: sirius.menu.
ANTI BAN UNIVERSAL AIMBOT AND ESP KEYLESS SCRIPT MADE BY:FLAME_YT277

Universal