Hi, is it possible to only execute a command once when a player enters a Region3?
I am thinking that ‘debounce’ wont work as it will only switch from true and on.
local part = script.Parent
local region = Region3.new(part.Position - part.Size/2, part.Position + part.Size/2)
while true do
game:GetService('RunService').Heartbeat:Wait()
local partsInRegion = workspace:FindPartsInRegion3(region, nil, 1000)
for i, part in pairs(partsInRegion) do
if part.Parent:FindFirstChild("Humanoid") ~= nil then
print("working")
end
end
end