Run it
Copy the script and paste it into your executor.
Rayfield = (:())()
Players = :()
ReplicatedStorage = ReplicatedStorage :()
Workspace = :()
UserInputService = :()
VirtualUser = :()
RunService = :()
player = Players.LocalPlayer
Config = {
MaxGrabAttempts = ,
TeleportOffset = .(, , ),
SuccessCooldown = ,
RetryCooldown = ,
EscapeHealthThreshold = ,
EnemyDangerRadius = ,
TracerHeightOffset = .(, , ),
}
State = {
isRunning = ,
isBusy = ,
instantPromptsActive = ,
espActive = ,
emergencyTpActive = ,
}
blacklistedLeafModels = {}
promptConnections = {}
activeHighlights = {}
tracerLines = {}
()
remotes = ReplicatedStorage:(, )
remotes
playerRemotes = remotes:()
(remotes:() remotes.Remotes:())
playerRemotes
playerRemotes:()
grabRemote = ()
player.Idled:(()
VirtualUser:()
VirtualUser:(.())
)
(p)
p.Character p.Character.Parent == Workspace
p.Character
(char)
char
char:() char.PrimaryPart
(otherPlayer)
otherPlayer == player
player.Team otherPlayer.Team player.Team == otherPlayer.Team
(targetPos)
_, p (Players:())
p ~= player (p)
enemyChar = (p)
enemyRoot = (enemyChar)
enemyRoot
(enemyRoot.Position - targetPos).Magnitude <= Config.EnemyDangerRadius
(character)
State.emergencyTpActive
humanoid = character:()
hrp = (character)
humanoid hrp
humanoid.Health <= Config.EscapeHealthThreshold humanoid.Health >
_, p (Players:())
(p) p ~= player
allyChar = (p)
allyHrp = (allyChar)
allyHrp
distToAlly = (hrp.Position - allyHrp.Position).Magnitude
distToAlly <= (allyHrp.Position)
farthestAllyHrp =
maxDistance = -
_, p (Players:())
(p) p ~= player
allyChar = (p)
allyHrp = (allyChar)
allyHrp
dist = (hrp.Position - allyHrp.Position).Magnitude
dist > maxDistance
maxDistance = dist
farthestAllyHrp = allyHrp
farthestAllyHrp
hrp.AssemblyLinearVelocity = .(, , )
hrp.CFrame = farthestAllyHrp.CFrame + Config.TeleportOffset
.()
(prompt)
prompt:() prompt.Name ~=
State.instantPromptsActive
prompt.HoldDuration =
conn = prompt.PromptShown:(()
State.instantPromptsActive
(() (prompt) )
)
.(promptConnections, conn)
_, descendant (Workspace:())
descendant:() descendant.Name ==
(descendant)
Workspace.DescendantAdded:((descendant)
descendant:() descendant.Name ==
(descendant)
)
()
consumables = Workspace:()
detritus = consumables consumables:()
detritus
validLeaves = {}
i = ,
leafModelName = .. i
leafModel = detritus:(leafModelName)
leafModel
isBlacklisted =
_, blacklistedModel (blacklistedLeafModels)
blacklistedModel == leafModel
isBlacklisted =
isBlacklisted
leafPart = leafModel:(leafModelName)
leafPart leafPart:()
.(validLeaves, {model = leafModel, part = leafPart})
#validLeaves == ,
chosen = validLeaves[.(, #validLeaves)]
chosen.part, chosen.model
(character)
character
jaw = character:()
jaw jaw:()
character:(, ) ~=
()
State.isBusy
State.isBusy =
grabRemote = grabRemote ()
character = (player)
humanoidRootPart = (character)
humanoidRootPart
State.isBusy =
(character)
(character)
grabRemote (() grabRemote:() )
.()
targetPart, targetModel = ()
targetPart targetModel
State.isBusy =
originalCFrame = humanoidRootPart.CFrame
successGrabbed =
attempts =
attempts = attempts +
humanoidRootPart.AssemblyLinearVelocity = .(, , )
humanoidRootPart.AssemblyAngularVelocity = .(, , )
humanoidRootPart.CFrame = targetPart.CFrame + Config.TeleportOffset
.()
grabRemote (() grabRemote:(targetPart) )
.()
humanoidRootPart.AssemblyLinearVelocity = .(, , )
humanoidRootPart.AssemblyAngularVelocity = .(, , )
humanoidRootPart.CFrame = originalCFrame
.()
(character) successGrabbed =
successGrabbed attempts >= Config.MaxGrabAttempts
successGrabbed
grabRemote
.()
(() grabRemote:() )
targetModel
.(blacklistedLeafModels, targetModel)
targetModel.AncestryChanged:((_, parent)
parent
i, model (blacklistedLeafModels)
model == targetModel
.(blacklistedLeafModels, i)
)
.()
State.isBusy =
successGrabbed
()
_, p (Players:())
p ~= player (p)
char = (p)
State.espActive char
highlight = activeHighlights[p]
highlight
highlight = .()
highlight.Adornee = char
highlight.FillColor = .(, , )
highlight.OutlineColor = .(, , )
highlight.FillTransparency =
highlight.Parent = char
activeHighlights[p] = highlight
rootPart = (char)
myChar = (player)
myRoot = (myChar)
rootPart myRoot
tracer = tracerLines[p]
tracer
tracer = .()
tracer.Anchored =
tracer.CanCollide =
tracer.Material = .Material.Neon
tracer.Color = .(, , )
tracer.Size = .(, , )
tracer.Parent = Workspace
tracerLines[p] = tracer
p1 = myRoot.Position + Config.TracerHeightOffset
p2 = rootPart.Position + Config.TracerHeightOffset
distance = (p1 - p2).Magnitude
tracer.Size = .(, , distance)
tracer.CFrame = .(p1, p2) * .(, , -distance / )
tracer.Transparency =
tracerLines[p] tracerLines[p].Transparency =
activeHighlights[p]
activeHighlights[p]:()
activeHighlights[p] =
tracerLines[p]
tracerLines[p]:()
tracerLines[p] =
activeHighlights[p]
activeHighlights[p]:()
activeHighlights[p] =
tracerLines[p]
tracerLines[p]:()
tracerLines[p] =
RunService.RenderStepped:(updateESP)
.(()
.()
State.emergencyTpActive
character = (player)
character
(character)
)
Window = Rayfield:({
Name = ,
LoadingTitle = ,
LoadingSubtitle = ,
ConfigurationSaving = {
Enabled = ,
},
KeySystem = ,
})
MainTab = Window:(, )
VisualsTab = Window:(, )
MiscTab = Window:(, )
MainTab:()
MainTab:({
Name = ,
Callback = ()
State.isRunning
.(performGrabSequence)
,
})
MainTab:({
Name = ,
CurrentValue = ,
Flag = ,
Callback = (Value)
State.isRunning = Value
.(()
State.isRunning
success = ()
.(success Config.SuccessCooldown Config.RetryCooldown)
)
,
})
MainTab:()
MainTab:({
Name = ,
CurrentValue = ,
Flag = ,
Callback = (Value)
State.instantPromptsActive = Value
_, descendant (Workspace:())
descendant:() descendant.Name ==
descendant.HoldDuration = State.instantPromptsActive
,
})
MainTab:({
Name = ,
CurrentValue = ,
Flag = ,
Callback = (Value)
State.emergencyTpActive = Value
,
})
VisualsTab:()
VisualsTab:({
Name = ,
CurrentValue = ,
Flag = ,
Callback = (Value)
State.espActive = Value
State.espActive
_, highlight (activeHighlights)
highlight:()
activeHighlights = {}
_, tracer (tracerLines)
tracer:()
tracerLines = {}
,
})
MiscTab:()
MiscTab:({
Name = ,
Callback = ()
(()
(:())()
)
,
})
MiscTab:({
Name = ,
Callback = ()
(()
(:())()
)
,
})
MiscTab:({
Name = ,
Callback = ()
(()
(:())()
)
,
})
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, raw.githubusercontent.com, rawscripts.net.
This was rushed, so I used ai, autofarm grab leaf kingdom of the termites FIRST SCRIPT FOR KINGDOM OF THE TERMITES Added auto eat feed
Stay safe
Never paste your .ROBLOSECURITY cookie anywhere, and use an alt account with scripts.