local function Teleport() local OldPosition = _G.Momentum.Entity.position local Success = _G.Momentum.Entity.teleport(_G.Momentum.Position) local NewPosition = _G.Momentum.Entity.position Logging("Teleport Success: " .. serpent.line(Success) .. "\nTeleported " .. serpent.line(_G.Momentum.Entity) .. " from " .. serpent.line(OldPosition) .. " to " .. serpent.line(NewPosition) ) _G.Momentum.Position = NewPosition --[[ if Success then _G.Momentum.Delta.VX = _G.Momentum.VX * _G.Momentum.Friction _G.Momentum.Delta.VY = _G.Momentum.VY * _G.Momentum.Friction Logging("New Delta: " .. serpent.block(_G.Momentum.Delta)) end ]] end return Teleport