function BugFix()
local x = 2153
local y = 1012
local z = 12
spawnPlayer(source, x, y, z)
fadeCamera(source, true)
setCameraTarget(source, source)
outputChatBox("Welcome to the #00FF00 TBG Server!#0000ff Press F1 for info,etc", source, 255, 0, 0, true)
end
addEventHandler("onPlayerJoin", getRootElement(), BugFix)
'source' is the player who just joined.
thePlayer is not defined.