I am trying to make a little part that when you click it, it makes your character smaller, so that you can fit under a bed and talk to smaller NPCs or “toy soldiers” as referenced to in the game.
What happens when you press the button
script.Parent.MouseClick:Connect(function(plr)
local parts = plr.Character:GetChildren()
for i,v in pairs(parts) do
if v:IsA("BasePart") then
v.Size *= Vector3.new(.5,.5,.5)
end
if v:IsA("Accessory") then
v.Handle *= Vector3.new(.5,.5,.5)
end
end
end)
What am I doing wrong? I have a general idea, because I know the parts have to be repositioned but I’m not sure how to and I can’t find any source on how to either.