How to make a zone system

Hello, I wanted to create an area where when the player enters a screengui appears, I already tried to do it using a touch part but the touch gives a bug and I would like to know if there is any way to do this using coordinates or something similar.

1 Like

I did something similar using an invisible part to act as the bounding box.
Note that you’ll want to add some checks to decrease script activity.

local part = game:GetService("Workspace"):WaitForChild("Part") --Invisible Part

while wait(1) do
    local inside = game.Workspace:GetPartBoundsInBox(part.CFrame, part.Size)

    for i,v in pairs(inside) do
        if v.Name == "HumanoidRootPart" then
              --Player is in Area
         end
    end
end
1 Like