0% found this document useful (0 votes)
63 views3 pages

Roblox ESP and Sprint Script

The document contains a Lua script for a game that implements an ESP (Extra Sensory Perception) system to highlight specific objects like pallets, generators, and windows in the game environment. It also includes a speed modification feature allowing players to sprint or moonwalk based on key inputs. The script continuously rescans the game map for these objects and updates their visibility on the screen while managing player movement speed based on user input.

Uploaded by

goodgay448
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
63 views3 pages

Roblox ESP and Sprint Script

The document contains a Lua script for a game that implements an ESP (Extra Sensory Perception) system to highlight specific objects like pallets, generators, and windows in the game environment. It also includes a speed modification feature allowing players to sprint or moonwalk based on key inputs. The script continuously rescans the game map for these objects and updates their visibility on the screen while managing player movement speed based on user input.

Uploaded by

goodgay448
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

memory.set_write_strength(0.

001)

-- pallet, gen and window esp


local RunService = game:GetService("RunService")
local CurrentCamera = [Link]
local mapFolder = workspace:FindFirstChild("Map")
local espObjects = {}

local function makeText(label, color)


local text = [Link]("Text")
[Link] = label
[Link] = 12
[Link] = true
[Link] = false
[Link] = color
[Link] = false
return text
end

local function getTargets(container, results)


for _, obj in ipairs(container:GetChildren()) do
if [Link] == "Model" then
if [Link] == "Palletwrong" then
local hrp = obj:FindFirstChild("HumanoidRootPart")
if hrp then
[Link](results, {part = hrp, label = "P", offset = 8,
color = [Link](255,200,0)})
end
elseif [Link] == "Generator" then
local hitbox = obj:FindFirstChild("HitBox")
if hitbox then
[Link](results, {part = hitbox, label = "G", offset = 5,
color = [Link](0,200,255)})
end
elseif [Link] == "Window" then
local bottom = obj:FindFirstChild("Bottom")
if bottom then
[Link](results, {part = bottom, label = "W", offset = 5,
color = [Link](0,255,0)})
end
end
getTargets(obj, results)
elseif [Link] == "Folder" then
getTargets(obj, results)
end
end
end

local function rescan()


local found = {}
if mapFolder and [Link] then
getTargets(mapFolder, found)
end
local foundSet = {}
for _, item in ipairs(found) do
local part = [Link]
foundSet[part] = true
if not espObjects[part] then
espObjects[part] = { text = makeText([Link], [Link]), offset =
[Link] }
end
end
for part, data in pairs(espObjects) do
if not foundSet[part] or not [Link] then
[Link]:Remove()
espObjects[part] = nil
end
end
end

rescan()

[Link](function()
while true do
[Link](2)
rescan()
end
end)

[Link]:Connect(function()
for part, data in pairs(espObjects) do
if part and [Link] then
local worldPos = [Link] + [Link](0, [Link], 0)
local pos, visible = CurrentCamera:WorldToScreenPoint(worldPos)
if visible then
[Link] = [Link](pos.X, pos.Y)
[Link] = true
else
[Link] = false
end
else
[Link] = false
end
end
end)

-- speed/moonwalk
[Link](function()
local sprintSettings = {
Speed = 25,
NormalKey = "XButton2",
ReverseKey = "XButton1"
}

while true do
[Link]()
local player = [Link]
local character = player and [Link]
if not character then continue end
local humanoidRootPart = character:FindFirstChild("HumanoidRootPart")
local camera = [Link]
if not (humanoidRootPart and camera) then continue end

local heldKeys = {}
for _, key in ipairs(getpressedkeys()) do
heldKeys[key] = true
end
local isNormalSprint = heldKeys[[Link]]
local isReverseSprint = heldKeys[[Link]]
if not (isNormalSprint or isReverseSprint) then continue end

local look = [Link]


local flatLookVector = [Link]([Link](look.x, 0, look.z))
local flatRightVector = [Link]([Link]([Link](0, 1,
0), flatLookVector))
local moveDirection = [Link](0, 0, 0)

if isReverseSprint then
if heldKeys["W"] then moveDirection = moveDirection + flatLookVector
end
if heldKeys["S"] then moveDirection = moveDirection - flatLookVector
end
if heldKeys["D"] then moveDirection = moveDirection + flatRightVector
end
if heldKeys["A"] then moveDirection = moveDirection - flatRightVector
end
elseif isNormalSprint then
if heldKeys["W"] then moveDirection = moveDirection - flatLookVector
end
if heldKeys["S"] then moveDirection = moveDirection + flatLookVector
end
if heldKeys["D"] then moveDirection = moveDirection + flatRightVector
end
if heldKeys["A"] then moveDirection = moveDirection - flatRightVector
end
end

if [Link](moveDirection) > 0 then


moveDirection = [Link](moveDirection)
local targetVelocity = moveDirection * [Link]
[Link] = {targetVelocity.x, nil, targetVelocity.z}
end
end
end)

You might also like