How to know if a player is in a part?

Do you still want this problem to be fixed? because later today im able to fix this for u.

1 Like

Yes, I’m already stuck I’ve learn Region3 and after I’ve trie and it does not work …

Put this local script inside of startergui

local plr = game.Players.LocalPlayer
local regions = workspace:WaitForChild("Region")
regions = regions:GetChildren()

local regionManagement = {}

for _,region in pairs(regions) do
	local info = {}
	local region3 = Region3.new(region.Position-(region.Size/2),region.Position+(region.Size/2))
	info.Region = region3
	table.insert(regionManagement,info)
end

game:GetService("RunService").RenderStepped:Connect(function()
	for _,regioninfo in pairs(regionManagement) do
		local region = regioninfo.Region
		local parts = workspace:FindPartsInRegion3WithWhiteList(region,plr.Character:GetDescendants())

		if #parts > 0 then
			-- stuff
		else
			-- stuff
		end
	end
end)

you could put print inside of them to detect if they’re inside of The part.

Make a folder in workspace named “Regions”
and put a part and make it whatever color. Turn off cancollide.


This can be made simply by modifying YouTube tutorials !