Use the WorldEdit Player class instead of LocalPlayer