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

I want the value to be just 1 instead of adding 1 but it can't figure it out?

Asked by 5 years ago

Here is my script~~~~~~~~~~~~~~~~~game.Players.PlayerAdded:Connect(function(player) player.Chatted:Connect(function(msg) local character = player.Character local hum = character.Humanoid

    local BodyDepthScale = hum.BodyDepthScale
    local BodyHeightScale = hum.BodyHeightScale
    local BodyTypeScale = hum.BodyTypeScale
    local BodyWidthScale = hum.BodyWidthScale
    local HeadScale = hum.HeadScale
    if msg == "!WeirdMe 1" then
    local   BodyDepthScale.Value = BodyDepthScale.Value + 1
    end
end)

end)

~~~~~~~~~~~~~~~~~ I don't want the value to keep on adding on I just want it to be 1 but if I put = it would error.

0
remove the local behind it Fad99 286 — 5y
0
and remove = BodyDepthScale.Value + 1 and put = 1 instead Gameplayer365247v2 1055 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago
    if msg == "!WeirdMe 1" then
    BodyDepthScale.Value = 1

this is how it should look like at the end

0
sets the value to 1 instead of adding 1 Gameplayer365247v2 1055 — 5y
0
In other words, remove the "local" from line 7 Torren_Mr 334 — 5y
Ad

Answer this question