local playing = {}

workspace.PLAYERSINROUND.Touched:Connect(function(hit)
 if hit.Parent:FindFirstChild("Humanoid") then
        table.insert(playing, hit.Parent.Name)
        print("Joined the Table: "..hit.Parent.Name)
        print("Currently players in the table are: "..table.concat(playing, (", ")))
end
end)

So Basically, when you touch the script, you are supposed to get into the table, however I get no error, neither any output Print

6 comments

0

Make sure it in a server script.

0

why it should be in server script, There a lot of other script i have written on that one script

0

The only thing I changed was replacing workspace.PLAYERISROUND to script.Parent when testing and putting the script inside a part. It seems to work fine.

0

Thing is that, I'm on another game, and i tested it and it works, this is so strange...?

0

What do you mean another game?

0

Like, I created a new empty Roblox Studio, and it worked there