Obtenha o jogador que cliquei em clickdetecter roblox
-- I've explained how to use click detectors, go to the link i have sourced before reading this (if you get confused)
local clickdetector = script.Parent --(assuming you put the detector inside a part)
local part = clickdetector.Parent --(assuming again you have the detector inside a part)
clickdetector.MouseClick:Connect(function(userThatClicked)
print(userThatClicked.." has clicked this part!")
part:Destroy() -- deletes the part
end)
Opal