Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Door spawns one stud tall when it should animate to be like that after 10 seconds?

Asked by
CDXKIE 130
3 years ago

Hey, so I made this script:

game.Players.PlayerAdded:Connect(function()
    local monsterSpawnDoor = script.Parent
    wait(10)
    local endScale = Vector3.new(22,1,2)
    repeat
        monsterSpawnDoor.Size = Vector3.new(22, monsterSpawnDoor.Size.Y - 1, 2)
    until monsterSpawnDoor.Size == endScale
end)

And its supposed to be so that 10 seconds after the player spawns, this door opens by rolling up until its only 1 stud tall. Instead, when I spawn its 1 stud tall, and in the wrong position. Though I'm okay if the position isn't fixed!

Answer this question