Why does my script say "table: 0xaaaf0a511f845103", when I try to put my username into a table?
Asked by
5 years ago Edited 5 years ago
Here is my code:
01 | game.Workspace.School.DuelingDoor.DoorPart.Touched:Connect( function (hit) |
03 | print ( "Class Locked!" ) |
05 | local humanoidRootPart = game.Workspace:WaitForChild(hit.Parent.Name):WaitForChild( "HumanoidRootPart" ) |
06 | humanoidRootPart.CFrame = CFrame.new(game.Workspace.School.Dueling.DuelSpawn.Position + Vector 3. new( 0 , 3 , 0 )) |
07 | table.insert(playersInClass, #playersInClass+ 1 ,hit.Parent.Name) |
(This is running on the server)
This code is just for testing. I hope somebody can tell me, why it doesn't work. :( - Toby