Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make a script that scales a model?

Here is the code I am currently trying it with:

local plr = game.Players.LocalPlayer.Character
script.Parent.MouseButton1Click:connect(function()
plr["Right Leg"].Size = Vector3.new(2.673, 5.347, 2.673)
plr["Left Leg"].Size = Vector3.new(2.673, 5.347, 2.673)
plr["Right Arm"].Size = Vector3.new(2.673, 5.347, 2.673)
plr["Left Arm"].Size = Vector3.new(2.673, 5.347, 2.673)
plr["ColorfulStrawHat"].Size = Vector3.new(3.743, 1.604, 5.347)
plr["Ultra-Fabulous Hair"].Size = Vector3.new(5.347, 5.347, 5.347)
plr["Right Leg"].Anchored = true
plr["Left Leg"].Anchored = true
plr["Right Arm"].Anchored = true
plr["Left Arm"].Anchored = true
end)

I am making a button that scales the player, but I need help.

2 answers

✓ Accepted answer

I found something on the devforum Here

Hope it helps :)

2 comments

0

That is a R15 Scaling tutorial, I am talking about in-game not with my avatar with code.

0

This IS ingame script. Scroll down and click example code :)

If that original script was a server script then ... You should've used a local script But if you wanted to use it with a Server script then I would do

local button = script.Parent
button.MouseButton1Click:Connect(function(hit) -- connect is depricated
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
local char = hit.Parent
char["Right Leg"].Size = Vector3.new(2.673, 5.347, 2.673)
char["Left Leg"].Size = Vector3.new(2.673, 5.347, 2.673)
char["Right Arm"].Size = Vector3.new(2.673, 5.347, 2.673)
char["Left Arm"].Size = Vector3.new(2.673, 5.347, 2.673)
char["ColorfulStrawHat"].Size = Vector3.new(3.743, 1.604, 5.347)
char["Ultra-Fabulous Hair"].Size = Vector3.new(5.347, 5.347, 5.347)
char["Right Leg"].Anchored = true
char["Left Leg"].Anchored = true
char["Right Arm"].Anchored = true
char["Left Arm"].Anchored = true
end)

Hopefully this fixes your problem :)

This discussion is preserved as it was. New answers, comments, and votes are closed.