I am making a map voting system, where there are 3 voting pads, and it should count the number of players standing on each one. I'm just wondering how I can do that.
By the way, please don't just send me some script or send me a whole map voting system script without explaining, as I would like to understand how they work :)
Basically all I want to know is how I can get a count of the number of players touching a part at any given moment.
Thanks
With touched event you can use simple script, it may not be perfect but you can adjust it, its just an example:
local touching = false local part = script.Parent -- part part.Touched:Connect(function(hit) -- when touched if hit.Parent:FindFirstChild("Humanoid") then -- if human then touching = true -- touching end end) part.TouchEnded:Connect(function() -- when touch ended touching = false -- not touching end) while wait(1) do print(touching) end