Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local RbxGui = LoadLibrary("RbxGui")
- local starterGui = game:GetService("StarterGui")
- starterGui:SetCore("ResetButtonCallback",false)
- local self = script.Parent
- local frame = self:WaitForChild("Frame")
- local player = game.Players.YuujiKazamiGrisaia
- local char = player.Character or player.CharacterAdded:wait()
- local humanoid = char:WaitForChild("Humanoid")
- humanoid:SetStateEnabled("Dead",false)
- local uniformScale = Instance.new("NumberValue",humanoid)
- uniformScale.Name = "UniformScale"
- uniformScale.Value = 1
- local sliderValues = {}
- local function onUniformScaleChanged(newValue)
- for _,label in pairs(frame:GetChildren()) do
- if label.Name ~= "UniformScale" then
- local sliderValue = sliderValues[label]
- if sliderValue then
- sliderValue.Value = math.floor(newValue*50)
- end
- end
- end
- end
- uniformScale.Changed:connect(onUniformScaleChanged)
- for _,label in pairs(frame:GetChildren()) do
- local value = humanoid:WaitForChild(label.Name)
- local slider,sliderVal = RbxGui.CreateSlider(500,200,UDim2.new(0,30,1.5,0))
- slider.Parent = label
- sliderVal.Value = 50
- local function update(newValue)
- value.Value = newValue/50
- if label.Name == "HeadScale" then
- local head = char:FindFirstChild("Head")
- if head then
- local mesh = head:FindFirstChild("Mesh")
- if mesh and mesh.MeshType.Name == "Head" then
- mesh.Scale = Vector3.new(1.25,1.25,1.25)
- end
- end
- end
- end
- update(50)
- sliderVal.Changed:connect(update)
- sliderValues[label] = sliderVal
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement