Change player legs size issues

I can’t change the size of my player’s legs, what am I doing wrong? :frowning:

local uis = game:GetService("UserInputService")
local runService = game:GetService('RunService')

local camera = workspace.CurrentCamera

local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:wait()
local humanoid = char:WaitForChild("Humanoid")

local isActive = false

player.CameraMode = Enum.CameraMode.LockFirstPerson
player.Character.Humanoid.CameraOffset = Vector3.new(0, -0.4, -0.2)

uis.InputBegan:Connect(function(input)
	if input.KeyCode == Enum.KeyCode.E and isActive == false then
		player.CameraMode = Enum.CameraMode.Classic
		char.Parent:FindFirstChild("Left Leg").size = Vector3.new(1,3,1)
		char.Parent:FindFirstChild("Right Leg").size = Vector3.new(1,3,1)
		print('Classic Mode')
		isActive = true
	elseif input.KeyCode == Enum.KeyCode.E and isActive == true then
		player.CameraMode = Enum.CameraMode.LockFirstPerson
		player.Character.Humanoid.CameraOffset = Vector3.new(0, -0.4, -0.2)
		char.Parent:FindFirstChild("Left Leg").size = Vector3.new(1,2,1)
		char.Parent:FindFirstChild("Right Leg").size = Vector3.new(1,2,1)
		print('LockFirstPerson Mode')
		isActive = false
	end
end)

My output:

image

uis.InputBegan:Connect(function(input)
	if input.KeyCode == Enum.KeyCode.E and isActive == false then
		player.CameraMode = Enum.CameraMode.Classic
		char.Parent:FindFirstChild("Left Leg").size = Vector3.new(1,3,1)
		char.Parent:FindFirstChild("Right Leg").size = Vector3.new(1,3,1)
		print('Classic Mode')
		isActive = true
	elseif input.KeyCode == Enum.KeyCode.E and isActive == true then
		player.CameraMode = Enum.CameraMode.LockFirstPerson
		player.Character.Humanoid.CameraOffset = Vector3.new(0, -0.4, -0.2)
		char.Parent:FindFirstChild("Left Leg").size = Vector3.new(1,2,1)
		char.Parent:FindFirstChild("Right Leg").size = Vector3.new(1,2,1)
		print('LockFirstPerson Mode')
		isActive = false
	end
end)

You type char.Parent:FindFirstChild(“Left Leg”)
char.Parent = workspace
You cannot find left leg in workspace as its in player’s character

Also make sure you type Size instead of size

1 Like

Oh thank you very much! now it works

local character = player.Character
character:FindFirstChild("Left Leg").Size = Vector3.new(1,3,1)
character:FindFirstChild("Right Leg").Size = Vector3.new(1,3,1)