Advertisement
Dragos2K11

roblox size changer

Jun 22nd, 2025 (edited)
292
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.31 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local screenGui = Instance.new("ScreenGui")
  3. screenGui.Name = "SizeChanger"
  4. screenGui.ResetOnSpawn = false
  5. screenGui.Parent = player:WaitForChild("PlayerGui")
  6.  
  7. local frame = Instance.new("Frame")
  8. frame.Size = UDim2.new(0, 250, 0, 100)
  9. frame.Position = UDim2.new(0.5, -125, 0.5, -50)
  10. frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  11. frame.Parent = screenGui
  12.  
  13. local textBox = Instance.new("TextBox")
  14. textBox.Size = UDim2.new(1, -20, 0, 30)
  15. textBox.Position = UDim2.new(0, 10, 0, 10)
  16. textBox.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
  17. textBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  18. textBox.Font = Enum.Font.SourceSans
  19. textBox.TextSize = 18
  20. textBox.Text = "Enter size (e.g. 1.5)"
  21. textBox.Parent = frame
  22.  
  23. local button = Instance.new("TextButton")
  24. button.Size = UDim2.new(1, -20, 0, 30)
  25. button.Position = UDim2.new(0, 10, 0, 50)
  26. button.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
  27. button.TextColor3 = Color3.fromRGB(255, 255, 255)
  28. button.Font = Enum.Font.SourceSans
  29. button.TextSize = 56
  30. button.Text = "Set Size"
  31. button.Parent = frame
  32.  
  33. local function setCharacterSize(scale)
  34.     local character = player.Character or player.CharacterAdded:Wait()
  35.     local humanoid = character:WaitForChild("Humanoid")
  36.  
  37.     if humanoid.RigType ~= Enum.HumanoidRigType.R15 then
  38.         warn("[SizeChanger] This character is R6 and can't be scaled.")
  39.         return
  40.     end
  41.  
  42.     local bodyDepth = character:WaitForChild("BodyDepthScale", 5)
  43.     local bodyWidth = character:WaitForChild("BodyWidthScale", 5)
  44.     local bodyHeight = character:WaitForChild("BodyHeightScale", 5)
  45.     local headScale = character:WaitForChild("HeadScale", 5)
  46.  
  47.     if bodyDepth and bodyWidth and bodyHeight and headScale then
  48.         bodyDepth.Value = scale
  49.         bodyWidth.Value = scale
  50.         bodyHeight.Value = scale
  51.         headScale.Value = scale
  52.         print("[SizeChanger] Scaled character to:", scale)
  53.     else
  54.         warn("[SizeChanger] Could not locate all required scale instances.")
  55.     end
  56. end
  57.  
  58. button.MouseButton1Click:Connect(function()
  59.     local scale = tonumber(textBox.Text)
  60.     if scale and scale > 0 then
  61.         setCharacterSize(scale)
  62.     else
  63.         warn("[SizeChanger] Invalid size entered.")
  64.     end
  65. end)
  66.  
  67. print("[SizeChanger] Loaded! Enter a number and click the button.")
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement