Need help to make head grow with different variables

Hello Developer forum, i’ve been working on a simulator game for a few months now and the key thing i still need done is making the head of the player bigger.

In my game you need to “read a book” to gain IQ and i wanted to make the player’s head grow as they get more IQ. to make the game more interesting. if anyone has any ideas how to please leave them below.
Thanks

  • catotron101
2 Likes

Roblox characters have a NumberValue inside their Humanoid that are in charge of keeping the scales of all the body parts of a character If you change the head scale number, you can make it increase the size of the players head:
https://gyazo.com/f0d507c6e9e6ccfb2959f678fd0963e3.gif

Script:

local Character = game.Players.LocalPlayer.Character
Character.Humanoid.HeadScale.Value = 2 -- 1 is the default size of the head.
4 Likes

So how would I script this?
I thought something like this

If IQ = 0 set head size to 2
If IQ = 10 (or) >19
If IQ = 20 (or) > 29
I don’t know the actual scripting terms for this just what I thought

1 Like
if iq >-1 and iq <10 -- 0-9
if iq > 9 and iq <20 --10-19
if iq > 19 and iq <30 --20-29
1 Like

where would the scripting be put. in a local script?

1 Like

in server script is more recomended, but good exploiter can make his head grow, also when it is in server script, because character is one of less thing, that can be replicated client>server, but when there is any buff, 100% in server script

1 Like

Thank you @mistr88 I’ll try this out

1 Like

thats what i said in the comment lol

1 Like

lol, sry, i did not saw the 1, so i thought there is 2 as the value you have there

1 Like