I understand that you can find the players name through the parameters. Like this:
script.Parent.Touched:connect(function(hit)
print(hit.Parent.Name)
end)
But can you find the player's name, store it in a table (not using data store), and reference(find) it when needed?
I have this:
local PlayerTable = {}
script.Parent.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then -- for checking purposes
if --[[DOESN'T FIND NAME IN TABLE--]] then
table.insert(PlayerTable,hit.Parent.Name)
end
end
end)
If there are any wiki pages on this please send the links

1 comment
Thank you so much!