PARKOUR Legacy
14.9k Views
61 Executions

Mark bags distance

PARKOUR Legacy
Konethorix
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 yet

No 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

  1. Script edited: Update script

  2. Script edited: Update script

  3. Script edited: Update script

  4. Script edited: Update script

  5. Script edited: Update script

View Raw
-- 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


Comments

1
Log in to join the conversation. Login
trojaty's profile picture
trojaty2 years ago(edited)

works but when you grab the bag the numbers dont disappear

1

More PARKOUR Legacy scripts

See all
PARKOUR Legacy
134.1k
64
3 years ago
PARKOUR Legacy
130.4k
74
3 years ago
PARKOUR Legacy
1.2k
2.0k
Bumped 1 month ago
Key System
PARKOUR Legacy
1.7k
3.1k
2 months ago
PARKOUR Legacy
9.1k
403
2 years ago
PARKOUR Legacy
10.2k
130
2 years ago