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

How do I make a script that scales a model?

Asked by
OldBo5 30
7 years ago

Here is the code I am currently trying it with:

01local plr = game.Players.LocalPlayer.Character
02script.Parent.MouseButton1Click:connect(function()
03plr["Right Leg"].Size = Vector3.new(2.673, 5.347, 2.673)
04plr["Left Leg"].Size = Vector3.new(2.673, 5.347, 2.673)
05plr["Right Arm"].Size = Vector3.new(2.673, 5.347, 2.673)
06plr["Left Arm"].Size = Vector3.new(2.673, 5.347, 2.673)
07plr["ColorfulStrawHat"].Size = Vector3.new(3.743, 1.604, 5.347)
08plr["Ultra-Fabulous Hair"].Size = Vector3.new(5.347, 5.347, 5.347)
09plr["Right Leg"].Anchored = true
10plr["Left Leg"].Anchored = true
11plr["Right Arm"].Anchored = true
12plr["Left Arm"].Anchored = true
13end)

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

2 answers

Log in to vote
0
Answered by
HLVM 27
7 years ago

I found something on the devforum Here

Hope it helps :)

0
That is a R15 Scaling tutorial, I am talking about in-game not with my avatar with code. OldBo5 30 — 7y
0
This IS ingame script. Scroll down and click example code :) HLVM 27 — 7y
Ad
Log in to vote
0
Answered by 7 years ago

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

01local button = script.Parent
02button.MouseButton1Click:Connect(function(hit) -- connect is depricated
03local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
04local char = hit.Parent
05char["Right Leg"].Size = Vector3.new(2.673, 5.347, 2.673)
06char["Left Leg"].Size = Vector3.new(2.673, 5.347, 2.673)
07char["Right Arm"].Size = Vector3.new(2.673, 5.347, 2.673)
08char["Left Arm"].Size = Vector3.new(2.673, 5.347, 2.673)
09char["ColorfulStrawHat"].Size = Vector3.new(3.743, 1.604, 5.347)
10char["Ultra-Fabulous Hair"].Size = Vector3.new(5.347, 5.347, 5.347)
11char["Right Leg"].Anchored = true
12char["Left Leg"].Anchored = true
13char["Right Arm"].Anchored = true
14char["Left Arm"].Anchored = true
15end)

Hopefully this fixes your problem :)

Answer this question