Region3 Frame Opening/Closing

Hello everyone developers, i want to make if you walked into region3 it opens a gui, if you out of the region3 frame was disappear.
Who can help please help!

1 Like

I would use ZonePlus. You can find the documentation here: Zone - ZonePlus

Specifically, check out the following:

fromRegion
playerEntered
playerExited

Region3 Docs

For example:

local ZonePlus = require(game:GetService("ReplicatedStorage").Zone)

local region = --your region3
local zone = ZonePlus.fromRegion(region.CFrame, region.Size)

zone.playerEntered:Connect(function(player)
--show gui
end)

zone.playerExited:Connect(function(player)
--hide gui
end)