Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadjerjawi authored Jul 6, 2024
1 parent 611453a commit 806c59a
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions fps-settings.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
@echo off

setlocal enabledelayedexpansion

:chooseMode
cls
echo Choose an option:
echo 1. Normal mode (FPS 60)
echo 2. AFK mode (FPS 10)
echo 3. Custom FPS value

set /p choice="Enter your choice (1, 2, or 3): "
if "%choice%"=="1" (
set "fpsValue=60"
) else if "%choice%"=="2" (
set "fpsValue=10"
) else if "%choice%"=="3" (
set /p customFps="Enter custom FPS value: "
set "fpsValue=!customFps!"
) else (
echo Invalid choice. Please select 1, 2, or 3.
timeout /t 2 /nobreak > nul
goto chooseMode
)

:: Set the target directory
set "targetDirectory=%LocalAppData%\Roblox\Versions"

:: Iterate through each version directory
for /d %%A in ("%targetDirectory%\version-*") do (
set "clientSettingsDirectory=%%A\ClientSettings"
if exist "!clientSettingsDirectory!" (
rmdir /s /q "!clientSettingsDirectory!"
)
mkdir "!clientSettingsDirectory!"
set "jsonFilePath=!clientSettingsDirectory!\ClientAppSettings.json"
(
echo {
echo "DFIntTaskSchedulerTargetFps": !fpsValue!
echo }
) > "!jsonFilePath!"
)

echo Settings updated with FPS value: !fpsValue!
pause
exit

0 comments on commit 806c59a

Please sign in to comment.