So, I can define by player by this

local playersInRound = {}
script.Touched:Connect(function(hit)
table.insert(playersInRound, hit.Parent)
If hit.Parent == playersInRound[1] then
print("This is player one")

But Is there a way to define it without an event?

1 comment

0

If you're in a LocalScript which I think you are since you are using a touched event, you can use game.Players.LocalPlayer. Then you can add LocalPlayer.Name to the table.