I want to make part that a rises until it reaches a certain point.
The issue is that I can’t figure out how the code is meant to work so I am having trouble. It’s probably a simple fix. I am new to scripting which is another reason I can’t figure out this code so please keep it simple.Whenever I run the code, it says “Vector3 is not a valid member of Vector 3” which is in the if statement. Just so you know that in the picture the Output menu is slightly incorrect because I changed it after I ran the code but the problem is still the same.
I have searched youtube tutorials on if statements and since this is a very specific problem I don’t know if I will be able to find it in the forum.
Thanks for helping! I am sure I am just not very smart and that this is a rookie mistake.
I am a modeller but not a scripter but I am trying to learn scripting Can you please tell me how to fix the if statement at the bottom of the script.
Edit: I fixed one part of the if statement but it still doesn’t work.
Whoops, I should have figured that out by myself. Thanks allot, it worked!!!
Thank you all so much for helping me, each and every comment helped me and made me learn something knew!
Like what @nicemike40 mentioned, you should only check the Y axis because that’s the only axis that you are moving in the script. Try something like this:
while DumbJuiceFlood.Position.Y ~= 2 do
DumbJuiceFlood.Position += Vector3.new(0,.1,0)
task.wait(.075)
end