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)
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.