I want to get the player when they touch a gem. So I know I could just do hit.Parent.Name to get the players name but that would not work if they touched it with any accessories like hair. So how would I accurately get the player?
Code:
for _, Gem in pairs(Gems) do
Gem.Touched:Connect(function(hit)
end)
end