This script works, it automatically makes a gui with it too, though recently, in some games, this script has been acting up and killing the player besides of resizing them.
Code:
003 | function giant(p, size) |
004 | local pchar = p.Character |
006 | local function scale(chr,scl) |
008 | for _,v in pairs (pchar:GetChildren()) do |
011 | v.Parent = game.Lighting |
015 | local Head = chr [ 'Head' ] |
016 | local Torso = chr [ 'Torso' ] |
017 | local LA = chr [ 'Left Arm' ] |
018 | local RA = chr [ 'Right Arm' ] |
019 | local LL = chr [ 'Left Leg' ] |
020 | local RL = chr [ 'Right Leg' ] |
021 | local HRP = chr [ 'HumanoidRootPart' ] |
033 | Head.Size = Vector 3. new(scl * 2 , scl, scl) |
034 | Torso.Size = Vector 3. new(scl * 2 , scl * 2 , scl) |
035 | LA.Size = Vector 3. new(scl, scl * 2 , scl) |
036 | RA.Size = Vector 3. new(scl, scl * 2 , scl) |
037 | LL.Size = Vector 3. new(scl, scl * 2 , scl) |
038 | RL.Size = Vector 3. new(scl, scl * 2 , scl) |
039 | HRP.Size = Vector 3. new(scl * 2 , scl * 2 , scl) |
041 | local Motor 1 = Instance.new( 'Motor6D' , Torso) |
044 | Motor 1. C 0 = CFrame.new( 0 , 1 * scl, 0 ) * CFrame.Angles(- 1.6 , 0 , 3.1 ) |
045 | Motor 1. C 1 = CFrame.new( 0 , - 0.5 * scl, 0 ) * CFrame.Angles(- 1.6 , 0 , 3.1 ) |
048 | local Motor 2 = Instance.new( 'Motor6D' , Torso) |
051 | Motor 2. C 0 = CFrame.new(- 1 * scl, 0.5 * scl, 0 ) * CFrame.Angles( 0 , - 1.6 , 0 ) |
052 | Motor 2. C 1 = CFrame.new( 0.5 * scl, 0.5 * scl, 0 ) * CFrame.Angles( 0 , - 1.6 , 0 ) |
053 | Motor 2. Name = "Left Shoulder" |
055 | local Motor 3 = Instance.new( 'Motor6D' , Torso) |
058 | Motor 3. C 0 = CFrame.new( 1 * scl, 0.5 * scl, 0 ) * CFrame.Angles( 0 , 1.6 , 0 ) |
059 | Motor 3. C 1 = CFrame.new(- 0.5 * scl, 0.5 * scl, 0 ) * CFrame.Angles( 0 , 1.6 , 0 ) |
060 | Motor 3. Name = "Right Shoulder" |
062 | local Motor 4 = Instance.new( 'Motor6D' , Torso) |
065 | Motor 4. C 0 = CFrame.new(- 1 * scl, - 1 * scl, 0 ) * CFrame.Angles( 0 , - 1.6 , 0 ) |
066 | Motor 4. C 1 = CFrame.new(- 0.5 * scl, 1 * scl, 0 ) * CFrame.Angles( 0 , - 1.6 , 0 ) |
067 | Motor 4. Name = "Left Hip" |
069 | local Motor 5 = Instance.new( 'Motor6D' , Torso) |
072 | Motor 5. C 0 = CFrame.new( 1 * scl, - 1 * scl, 0 ) * CFrame.Angles( 0 , 1.6 , 0 ) |
073 | Motor 5. C 1 = CFrame.new( 0.5 * scl, 1 * scl, 0 ) * CFrame.Angles( 0 , 1.6 , 0 ) |
074 | Motor 5. Name = "Right Hip" |
076 | local Motor 6 = Instance.new( 'Motor6D' , HRP) |
079 | Motor 6. C 0 = CFrame.new( 0 , 0 , 0 ) * CFrame.Angles(- 1.6 , 0 , - 3.1 ) |
080 | Motor 6. C 1 = CFrame.new( 0 , 0 , 0 ) * CFrame.Angles(- 1.6 , 0 , - 3.1 ) |
085 | pchar.Humanoid.WalkSpeed = 15 * size |
087 | for _,v in pairs (game.Lighting:GetChildren()) do |
095 | local plr = game.Players.LocalPlayer |
101 | local sgui = Instance.new( "ScreenGui" , game.Players.LocalPlayer.PlayerGui) |
102 | local base = Instance.new( "Frame" , sgui) |
103 | base.BackgroundTransparency = 1 |
104 | base.Size = UDim 2. new( 0 , 110 , 0 , 200 ) |
105 | base.Position = UDim 2. new( 1 , - 120 , 1 , - 180 ) |
106 | local indicator = Instance.new( "TextLabel" , base) |
107 | indicator.Size = UDim 2. new( 1 , 0 , 0 , 25 ) |
108 | indicator.TextColor 3 = Color 3. new( 1 , 1 , 1 ) |
109 | indicator.BackgroundTransparency = 0 |
110 | indicator.FontSize = Enum.FontSize.Size 18 |
111 | indicator.Font = Enum.Font.SourceSans |
112 | indicator.Text = "Current Size: 3" |
113 | local PlusOne = Instance.new( "TextButton" , base) |
114 | PlusOne.BackgroundColor 3 = Color 3. new( 214 / 255 , 214 / 255 , 214 / 255 ) |
115 | PlusOne.Position = UDim 2. new( 0 , 0 , 0 , 40 ) |
116 | PlusOne.Size = UDim 2. new( 1 , 0 , 0.5 , - 50 ) |
117 | PlusOne.BorderSizePixel = 2 |
118 | PlusOne.Font = Enum.Font.SourceSansBold |
119 | PlusOne.FontSize = Enum.FontSize.Size 24 |
120 | PlusOne.Text = "+.1 Size" |
121 | local MinusOne = Instance.new( "TextButton" , base) |
122 | MinusOne.BackgroundColor 3 = Color 3. new( 214 / 255 , 214 / 255 , 214 / 255 ) |
123 | MinusOne.Position = UDim 2. new( 0 , 0 , 0.5 , 10 ) |
124 | MinusOne.Size = UDim 2. new( 1 , 0 , 0.5 , - 50 ) |
125 | MinusOne.Text = "-.1 Size" |
126 | MinusOne.BorderSizePixel = 2 |
127 | MinusOne.Font = Enum.Font.SourceSansBold |
128 | MinusOne.FontSize = Enum.FontSize.Size 24 |
130 | PlusOne.MouseButton 1 Down:connect( function () |
133 | indicator.Text = "Current Size: " .. tostring (csize) |
136 | MinusOne.MouseButton 1 Down:connect( function () |
139 | indicator.Text = "Current Size: " .. tostring (csize) |