-- Create a table to track players who have clicked

local playersWhoClicked = {}

local function onPlayerClick(player)
	print(player.Name .. " clicked the object")
	-- Perform any actions you want when a player clicks
	playersWhoClicked[player.UserId] = true
end

partWithClickDetector.MouseButton1Down:Connect(onPlayerClick)
