Okay, 
I've changed it up again! But nothing happens at all now... 
function JoinHandler (player) 
    if player then  
        if isElement(player) then 
    spawnPlayer(player, x, y, z) 
    setCameraTarget(player, player) 
    fadeCamera(player, true) 
    outputChatBox("Welcome to our newest server, unfortunately, it is still under development. Please visit later.", player) 
        return 
        end 
    end 
end 
  
function settheTimer() 
    setTimer ( JoinHandler, 1000, 1 ) 
end 
addEventHandler("onPlayerJoin", root, settheTimer)