Place this Script inside ServerScriptService . This controls the logic, detects movement, and handles the game loop.