You can use this to check if a player is in an area and disable the script if so:
local Part = script.Parent -- invisible part which indicates the area
Part.Touched:Connect(function() end) -- Just for a TouchInterest to occur on a CanCollide false part
local Character = nil -- the players character
local Script = workspace.Script -- script to disable
function PlayerIsInArea(Part,Character)
local touching = Part:GetTouchingParts()
for i=1,#touching do
if touching[i] == Character.HumanoidRootPart then
return true
end
end
return false
end
if PlayerIsInArea(Part, Character) then
Script.Disabled = true
end
(most of the code is from the topic I sent)