#Where would i write a script checking if im in a block for the least lag
1 messages · Page 1 of 1 (latest)
You should put it in the parts and use a touched event that puts the player in a inPart table and do the rest of ur logic from there and remove them from the table on a touch ended event
Touch isn't very reliable but it should work
Use touch only if you want to check when you player touches the part, not when they are actively touching the part. If you want something like a zone that always knows when the player is inside it, use heartbeat + spatial query and run it from the part rather than the player.
I want it checking if the player is inside but what is spatial query
Is spatial query the same as GetPartsInPart()
getpartsinpart is a spatial query