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

How to emulate the effects of BodyHeightScale on NPCs?

Asked by 6 years ago

I was working on a Character Creation system that displayed a TestDummy on screen, and when the player was done customizing the TestDummy, it would apply their customizations to their character. One of the customization options is Height and Width, which both change BodyHeightScale and BodyWidthScale respectively;

When the script was run however, it errored saying that the scales don't exist. So I thought to myself, hey, maybe it just isn't creating the values since its an NPC; So I created NumberValues and renamed them just in case it just wasnt creating the scale values, but it still didn't do anything.

This (basically) means that I need a way to emulate the effects of BodyScale without actually using BodyScale, or find a way to get BodyScale to work on a NPC.

Any ideas? (feel free to ask for more info if I didnt clarify enough)

0
NOTE: The TestDummy I was talking about is not the character, in case it wasn't obvious enough. It is a Dummy that shows up on screen that you can customize, and when you're done, it will copy all of the customization values and store them in your data folder for use on another server. OrcaTheFish 95 — 6y
0
You should supply your scripts User#19524 175 — 6y
0
what did you name the numbervalues since they need to be called the scale name User#23365 30 — 6y
0
https://www.robloxdev.com/api-reference/class/Humanoid look at the R15 content section User#23365 30 — 6y
View all comments (7 more)
0
I named the NumberValues "BodyHeightScale", "BodyWidthScale", "BodyDepthScale" and "BodyHeadScale". OrcaTheFish 95 — 6y
0
are the characters R15 User#23365 30 — 6y
0
Maybe I just didn't do it right? I'll go back and take a look at the scripts I made. OrcaTheFish 95 — 6y
0
Also yes. OrcaTheFish 95 — 6y
0
then you probably misspelled something or added a space before you typed the name User#23365 30 — 6y
0
The head scale is just called "HeadScale", not "BodyHeadScale". User#19524 175 — 6y
0
Try copying your character into the Workspace (go in test, select your character in the Explorer tab, copy, exit text, paste), then copy the scripts (animation scripts in all, I am not in studio now, and not for another week or so), as well as the Humanoid and its children GamingZacharyC 152 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

Well personally I would recommend 1: getting a plugin to load in a players character 2: loading in game copy your character and paste it into workspace when you are out of run mode then just copy the humanoid of the character and replace it with the testdummy humanoid that worked for me Hope it helps

Ad

Answer this question