I want to make a surface gui that tell how many people are touching a part at the moment
well part objects have the Touched and TouchEnded events. you could use this in your favor, like this:
part = workspace.Part people_standing = 0 -- amount of people on the part part.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then -- if a player has touched the part then people_standing = people_standing + 1 end end) part.TouchEnded:Connect(function(hit) if hit.Parent.FindFirstChild("Humanoid") then -- if a player has quit touching the part then people_standing = people_standing - 1 end end)