local rot = require("rotations_v3") local stop = false local player = require("player") rot.setRotationSpeed(12.0) registerCommand("setangle", function(commandName, args) if #args == 2 then local yaw = tonumber(args[1]) or 0 local pitch = tonumber(args[2]) or 0 if tonumber(args[1]) then if tonumber(args[2]) then stop = false rot.rotateToYawPitch(yaw, pitch) player.addMessage("§7[§6Hypixel Cry§7] §aRotating...") else player.addMessage("§7[§6Hypixel Cry§7] §c'Pitch' not 'Number'") end else player.addMessage("§7[§6Hypixel Cry§7] §c'Yaw' not 'Number'") end else player.addMessage("§7[§6Hypixel Cry§7] §cNeed 2 args: §e'Yaw' §fand §c'Pitch'") end end) registerWorldRenderer(function(ctx) if not stop then rot.update() end end) -- Example code showing how to use the function registerServerSideRotationEvent(function(yaw, pitch) if yaw and pitch then stop = true end end) -- Example code showing how to use the function registerServerSideTeleportEvent(function(x, y, z) if x and y and z then stop = true end end)