Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local screenGui = Instance.new("ScreenGui")
- screenGui.Name = "SizeChanger"
- screenGui.ResetOnSpawn = false
- screenGui.Parent = player:WaitForChild("PlayerGui")
- local frame = Instance.new("Frame")
- frame.Size = UDim2.new(0, 250, 0, 100)
- frame.Position = UDim2.new(0.5, -125, 0.5, -50)
- frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- frame.Parent = screenGui
- local textBox = Instance.new("TextBox")
- textBox.Size = UDim2.new(1, -20, 0, 30)
- textBox.Position = UDim2.new(0, 10, 0, 10)
- textBox.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
- textBox.TextColor3 = Color3.fromRGB(255, 255, 255)
- textBox.Font = Enum.Font.SourceSans
- textBox.TextSize = 18
- textBox.Text = "Enter size (e.g. 1.5)"
- textBox.Parent = frame
- local button = Instance.new("TextButton")
- button.Size = UDim2.new(1, -20, 0, 30)
- button.Position = UDim2.new(0, 10, 0, 50)
- button.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
- button.TextColor3 = Color3.fromRGB(255, 255, 255)
- button.Font = Enum.Font.SourceSans
- button.TextSize = 56
- button.Text = "Set Size"
- button.Parent = frame
- local function setCharacterSize(scale)
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- if humanoid.RigType ~= Enum.HumanoidRigType.R15 then
- warn("[SizeChanger] This character is R6 and can't be scaled.")
- return
- end
- local bodyDepth = character:WaitForChild("BodyDepthScale", 5)
- local bodyWidth = character:WaitForChild("BodyWidthScale", 5)
- local bodyHeight = character:WaitForChild("BodyHeightScale", 5)
- local headScale = character:WaitForChild("HeadScale", 5)
- if bodyDepth and bodyWidth and bodyHeight and headScale then
- bodyDepth.Value = scale
- bodyWidth.Value = scale
- bodyHeight.Value = scale
- headScale.Value = scale
- print("[SizeChanger] Scaled character to:", scale)
- else
- warn("[SizeChanger] Could not locate all required scale instances.")
- end
- end
- button.MouseButton1Click:Connect(function()
- local scale = tonumber(textBox.Text)
- if scale and scale > 0 then
- setCharacterSize(scale)
- else
- warn("[SizeChanger] Invalid size entered.")
- end
- end)
- print("[SizeChanger] Loaded! Enter a number and click the button.")
Advertisement
Advertisement