.touchended triggers randomly (PLEASE HELP)

alright, I just tried zoneplus, doesn’t work unless i did it wrong
it had to have the part be a descendent of the model
AND touchexited doesn’t work at all
bruh.rbxl (96.3 KB)

1 Like

yes, but getpartsinpart cannot detect if the part LEFT or not, so i can’t do anything to it if it left

1 Like

is it possible to “blacklist” the player somehow? i tried cantouch but it doesn’t work

1 Like

Its odd how it exactly plays after 4 seconds, evne though the animation plays way earlier

1 Like

Yes it does. Have you not seen the fact that I added a return false statement. You can simply use a bool value like so and see if part left or not:

local Status = Instance.new("BoolValue")
local Part = workspace.Part
local function SeeParts()
    for _,part in pairs(workspace:GetPartsInPart(Part)) do
        if part.Name == "Box" then
            Status.Value = true
            return true
        end
    end
    Status.Value = false
    return false
end

Status.Changed:Connect(function()
    if not Status.Value then
        print("Part has left the box")
    end
end)

while Part do
    SeeParts()
    task.wait(1)
end
1 Like

no, it just means the box isn’t inside, I have no way of knowing if it just left or not and apply scripts to it,

1 Like