Hello there.
I was just curious on how to get the following to work:
Make a way, so the game will check if you are in a certain part, if yes, something will happen, if no, nothing happens
I think you gotta use HeartBeat but I have no idea what to do rather then:
local RunService = game:GetService("RunService")
RunService.Heartbeat:Connect(function(step)
end)
Help is appreciated
I could just script.Parent.Touched:Connect(function(hit) but that’ll only work once you ENTER the part. I need a check if you are already IN the part.
Kaid3n22
(Kaiden)
#3
use part:GetTouchingParts()
and check if the part you are looking for is in the table.
You can use a region3 and then do FindPartsInRegion3
and see if the parts belong to a player and if so, do something
Or I think you can use ZonePlus v2, which already contains methods for zones which can be used to get players
you can use Touched
and TouchEnded
to get what you want