Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make players head grow when a tool is clicked?

Asked by 4 years ago
Edited 4 years ago

You see I made a strenght simulator a few days ago but today i thought of replacing it with a reading simulator,so I thought why don't I use the same scripts.The game is working perfectly fine but the size of the player grows when the tool is clicked instead I want the players head to only grow

Here is the script-----

-- makes you bigger everytime your strength increases

game.Players.PlayerAdded:connect(function(player)
    player.CharacterAdded:connect(function(Character)
        local Humanoid = Character:FindFirstChild("Humanoid") 
        player.Character.Humanoid.BodyDepthScale.Value = player.leaderstats.strength.Value/100 + 1
        player.Character.Humanoid.BodyHeightScale.Value = player.leaderstats.strength.Value/100 + 1
        player.Character.Humanoid.BodyWidthScale.Value = player.leaderstats.strength.Value/100 + 1
        player.Character.Humanoid.HeadScale.Value = player.leaderstats.strength.Value/100 + 1
    player.leaderstats.strength.Changed:connect(function()
        player.Character.Humanoid.BodyDepthScale.Value = player.leaderstats.strength.Value/100 + 1
        player.Character.Humanoid.BodyHeightScale.Value = player.leaderstats.strength.Value/100 + 1
        player.Character.Humanoid.BodyWidthScale.Value = player.leaderstats.strength.Value/100 + 1
        player.Character.Humanoid.HeadScale.Value = player.leaderstats.strength.Value/100 + 1
    end)
    end)
end)

Please state what should I do It would be really helpful

0
OK badimo3456p 114 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

This is yours:

-- makes you bigger everytime your strength increases

game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(Character) local Humanoid = Character:FindFirstChild("Humanoid") player.Character.Humanoid.BodyDepthScale.Value = player.leaderstats.strength.Value/100 + 1 player.Character.Humanoid.BodyHeightScale.Value = player.leaderstats.strength.Value/100 + 1 player.Character.Humanoid.BodyWidthScale.Value = player.leaderstats.strength.Value/100 + 1 player.Character.Humanoid.HeadScale.Value = player.leaderstats.strength.Value/100 + 1 player.leaderstats.strength.Changed:connect(function() player.Character.Humanoid.BodyDepthScale.Value = player.leaderstats.strength.Value/100 + 1 player.Character.Humanoid.BodyHeightScale.Value = player.leaderstats.strength.Value/100 + 1 player.Character.Humanoid.BodyWidthScale.Value = player.leaderstats.strength.Value/100 + 1 player.Character.Humanoid.HeadScale.Value = player.leaderstats.strength.Value/100 + 1 end) end) end)

This what you should do:

-- makes you bigger everytime your strength increases

game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(Character) local Humanoid = Character:FindFirstChild("Humanoid") player.Character.Humanoid.HeadDepthScale.Value = player.leaderstats.strength.Value/100 + 1 player.Character.Humanoid.HeadHeightScale.Value = player.leaderstats.strength.Value/100 + 1 player.Character.Humanoid.HeadWidthScale.Value = player.leaderstats.strength.Value/100 + 1 player.Character.Humanoid.HeadScale.Value = player.leaderstats.strength.Value/100 + 1 player.leaderstats.strength.Changed:connect(function() player.Character.Humanoid.HeadDepthScale.Value = player.leaderstats.strength.Value/100 + 1 player.Character.Humanoid.HeadHeightScale.Value = player.leaderstats.strength.Value/100 + 1 player.Character.Humanoid.HeadWidthScale.Value = player.leaderstats.strength.Value/100 + 1 player.Character.Humanoid.HeadScale.Value = player.leaderstats.strength.Value/100 + 1 end) end) end)

0
oh okay thanks so much RealXxEnderboy91xX 5 — 4y
Ad

Answer this question