Hi, I recently posted a question here on how to code a part to change size in 1 direction. I was given the answer to use the "resize" function. The problem I'm having is that I do not know how to use the function, the wiki didn't have any examples either.
This is my script:
local MDoor = script.Parent
local handle = script.Parent.Parent.Handle
game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(msg)
if msg == "Open Door" then
repeat
MDoor.Size = MDoor.Size - Vector3.new(0, 1, 0)
handle.Position = handle.Position - Vector3.new(0, 1, 0)
wait(0.4)
until
MDoor.Size == Vector3.new(36, 1, 2)
and handle.Position == Vector3.new(1406, 16, 644.5)
end
end)
end)
I will greatly appreciate any form of help, Thanks!

1 comment
Thanks, I'm a very difficult learner I suppose that's why I found the Wiki unhelpful.