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

Curtain Vector3 And Position Not Working?

Asked by 6 years ago

I have scripted this Moving Curtain With Vector3, I was not understanding how the second curtain worked and this curtain did not move (Curtain1), (Curtain2 Is In a Different Script). I was just not sure, ever since I had put line 12 (Curtain And StageFind Position), it had stopped working like it was suppose to be. The "StageFind1" is used so that the curtain is put into the right position.

Curtain1 = game.Workspace.StageCurtain
Curtain2 = game.Workspace.StageCurtain2
StageFind11 = game.Workspace.StageFind1

script.Parent.Parent.CLOSE.MouseButton1Click:connect(function()

    for i = 3.21, 31.56, .01 do
        Curtain1.CanCollide = false
        Curtain1.Size = Vector3.new(i,27,0.23)
    end
    wait(0.1)
    Curtain1.Position = StageFind11.Position
    wait(1)
    Curtain1.CanCollide = true
end)


Thanks!

1
There's no wait in your for loop theCJarmy7 1293 — 6y
0
Try CFrames instead of positions, setting the position of something might place it somewhere unintended BlizzardBan 15 — 6y

Answer this question