I can’t change the size of my player’s legs, what am I doing wrong?
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: