-- spawn a random ore

local oreName = oreBank[math.random(1,#oreBank)]
		
GU.SpawnItem(oreName,1,root.CFrame*CFrame.new(0,1,0))

end
end)
AttitudeCoroutine()


while true do
if mode == "charLock" then
targetLocation = (charRoot.CFrame*CFrame.new(-3,-2.6,1)).p
targetLook = charRoot.CFrame*CFrame.new(charRoot.CFrame.lookVector*1000)
end
bg.CFrame = targetLook
bp.Position = targetLocation
wait()
end




