
14.9k Views
61 Executions
Mark bags distance
PARKOUR Legacy
KonethorixFirst script
3 years ago
Please login to perform these actions:Mark bags distance is a PARKOUR Legacy script for Roblox, uploaded to ScriptBlox on Nov 6, 2023.
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
display the distances of all bags on screen, and highlight ones that are near you (text turn green)
Updates
Script edited: Update script
Script edited: Update script
Script edited: Update script
Script edited: Update script
Script edited: Update script
-- special thanks to: https://scriptblox.com/script/PARKOUR-Halloween-bag-auto-farm-9167
-- to refresh the texts, simply rerun the script
wait(1)
SPECIFIC_NAME = "Konethorix"
plr = game.Players:FindFirstChild(SPECIFIC_NAME) or game.Players.LocalPlayer
oldcontainer = workspace:FindFirstChild("MARKERTAINER")
if oldcontainer then oldcontainer:Destroy() end
container = Instance.new("Folder")
container.Name = "MARKERTAINER"
container.Parent = workspace
--//////////////////////////////////////
function checkValid(bag)
-- check if the bag is touching anything and not floating in mid air or deep inside a building
local params = OverlapParams.new()
params.FilterType = Enum.RaycastFilterType.Exclude
params.FilterDescendantsInstances = {bag}
local cf,size = bag:GetBoundingBox()
local touchers = workspace:GetPartBoundsInBox(cf, size + Vector3.new(2,2,2), params)
for _,v in pairs(touchers) do
if v.CanCollide and v.Size.Magnitude >= 30 then
local size = v.Size
local relcf = v.CFrame:ToObjectSpace(cf)
local relX = relcf.X
local checkX = relX <= -size.X / 2 or relX >= size.X / 2
local relZ = relcf.Z
local checkZ = relZ <= -size.Z / 2 or relZ >= size.Z / 2
local relY = relcf.Y
local checkY = relY <= -size.Y / 2 or relY >= size.Y / 2
if not checkX and not checkZ and not checkY then return false end
end






works but when you grab the bag the numbers dont disappear