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)
✓ ANSWER ACCEPTED
Why wont my script make my size bigger? Size Sim Game. LOCAL
1 answer
✓ Accepted answer
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.
This discussion is preserved as it was. New answers, comments, and votes are closed.
