Right now, my script looks like this:
if script.Parent:GetTouchingParts(nil) then
end
But that doesn't work. How would I make it so that it works?
Right now, my script looks like this:
if script.Parent:GetTouchingParts(nil) then
end
But that doesn't work. How would I make it so that it works?
try to check if the length of the table that GetTouchingParts() is returning is equal to 0:
if #script.Parent:GetTouchingParts() == 0 then
end
local IfTouchingPart = script.Parent:GetTouchingParts()
if not IfTouchingPart then
-- Code if nothing is touching the part
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
I will try this