I tried using script.Parent.Touched but that doesn’t disable after the player leaves that area.
Yep. Works exactly as I wanted.
local Zone = require(game:GetService(“ReplicatedStorage”).Zone)
local zoneGroup = workspace.Area
local zone = Zone.new(zoneGroup)
zone.playerEntered:Connect(function(player)
print(“Player “…player.Name…” has entered the zone”)
end)
zone.playerExited:Connect(function(player)
print(“Player “…player.Name…” has exited the zone”)
end)