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

Why wont my script make my size bigger? Size Sim Game. LOCAL

Asked by 5 years ago
script.Parent.MouseButton1Click:Connect(function(Player)
    local Character = Player.Character
    local Humanoid = Character:FindFirstChild('Humanoid')
    if Humanoid then
        local BDS = Humanoid:FindFirstChild('BodyDepthScale')
        local BHS = Humanoid:FindFirstChild('BodyWidthScale')
        if BDS and BHS then
            BDS.Value = BDS.Value +0.5
            BHS.Value = BHS.Value +0.5
        end

    end
end)

1 answer

Log in to vote
0
Answered by 5 years ago

The MouseButton1Click event has NO parameters. Since you used a LocalScript, just get the player like this:

local plr = game:GetService([[Players]]).LocalPlayer

Any events that pass a player as a parameter are server side only.

Ad

Answer this question