2012-01-26 17:44:37 -05:00
|
|
|
function HandleTopCommand( Split, Player )
|
|
|
|
local World = Player:GetWorld()
|
|
|
|
|
|
|
|
local PlayerPos = Player:GetPosition()
|
|
|
|
local Height = World:GetHeight( math.floor(PlayerPos.x), math.floor(PlayerPos.z) )
|
2013-06-28 14:43:29 -04:00
|
|
|
SetBackCoordinates( Player )
|
2012-01-26 17:44:37 -05:00
|
|
|
Player:TeleportTo( PlayerPos.x, Height+1, PlayerPos.z )
|
|
|
|
Player:SendMessage("Teleported to the top block")
|
|
|
|
|
|
|
|
return true
|
|
|
|
end
|