Here is my code:
game.Workspace.School.DuelingDoor.DoorPart.Touched:Connect(function(hit) --Touched door to enter dueling
if duelingLocked then
print("Class Locked!")
else
local humanoidRootPart = game.Workspace:WaitForChild(hit.Parent.Name):WaitForChild("HumanoidRootPart")
humanoidRootPart.CFrame = CFrame.new(game.Workspace.School.Dueling.DuelSpawn.Position + Vector3.new(0,3,0))
table.insert(playersInClass, #playersInClass+1,hit.Parent.Name)
print(playersInClass)
end
end)
(This is running on the server) This code is just for testing. I hope somebody can tell me, why it doesn't work. :( - Toby

1 comment
Woah.... Let me just see, if this works.