-- Rayfield 라이브러리 불러오기
local Rayfield = loadstring(game:HttpGet('https://[Log in to view URL]'))()
local Players = game:GetService("Players")
local player = Players.LocalPlayer
-- 1. Stat 폴더 및 Value 가져오기 (로딩 대기)
local statFolder = player:WaitForChild("Stat")
local maxManaValue = statFolder:WaitForChild("MaxMana")
local manaValue = statFolder:WaitForChild("Mana")
-- 설정한 목표 마나 값을 저장할 변수
local targetMana = 100000
-- 2. Rayfield 창 생성
local Window = Rayfield:CreateWindow({
Name = "Mana Controller",
LoadingTitle = "Mana UI Loading...",
LoadingSubtitle = "by Assistant",
ConfigurationSaving = {
Enabled = false
},
KeySystem = false
})
-- 3. 탭 생성
local Tab = Window:CreateTab("Stats", 4483362458)
-- 4. 마나 조절 슬라이더 생성
local ManaSlider = Tab:CreateSlider({
Name = "Mana & MaxMana 조절",
Range = {0, 1000000000}, -- 최소값, 최대값 (원하는 범위로 수정 가능)
Increment = 1000, -- 조절 단위
Suffix = " Mana",
CurrentValue = targetMana,
Flag = "ManaSlider1",
Callback = function(Value)
targetMana = Value
-- 1) MaxMana 변경
maxManaValue.Value = Value
-- 2) Mana 변경
manaValue.Value = Value
end,
})
-- 5. 마나가 소비되어 줄어들었을 때 설정한 값(targetMana)으로 자동 복구
manaValue.Changed:Connect(function(newValue)
-- 마나가 설정값보다 작아지면 다시 설정값으로 원상복구
if newValue < targetMana then
manaValue.Value = targetMana
end
end)
To embed this project on your website, copy the following code and paste it into your website's HTML: