Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How can you tell if a player is NOT touching a part in a script?

I know how to tell if they are , but I can't seem to figure out how to tell when they stop touching it or when they aren't

2 answers

-- Edit

Wait nvm that wont help one moment

1 comment

0

congrats.

Nothing happens when they don't touch it however if you want to do something when they stop touching it, there is an event called TouchEnded

local Part = script.Parent

Part.TouchEnded:Connect(function(PartThatStoppedTouchingIt)
	--Do stuff here.
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.