i tried using this to move a part, but it would move, it just says there, if there are any errors can you please tell me, or etc
while true do
part.position = Vector3.new("0.05,10,-0")
wait(0.8)
part.position = Vector3.new("0.05,10.01,-0")
wait(0.8)
part.position = Vector3.new("0.05,10.02,-0")
wait(0.8)
part.position = Vector3.new("0.05,10.03,-10")
wait(0.8)
end
1 Like
i also put local part = game.Workspace before that
Yes. Do not add quotation marks to the coordinates, since quotation marks are only for strings, not Vector3 Values.
1 Like
sjr04
(uep)
April 4, 2020, 7:19pm
#4
You’re passing a string to Vector3.new
when no overload that takes a string exists. it takes 3 numbers.
while true do
part.Position = Vector3.new(0.05,10,-0)
wait(0.8)
part.Position = Vector3.new(0.05,10.01,-0)
wait(0.8)
part.Position = Vector3.new(0.05,10.02,-0)
wait(0.8)
part.Position = Vector3.new(0.05,10.03,-10)
wait(0.8)
end
1 Like
i tried that its still not working
I am new to programming, but i think you should remove those strings/quotation marks. Correct me if i’m wrong.
1 Like
sjr04
(uep)
April 4, 2020, 7:21pm
#7
What is not working? Don’t just say “it’s not working”, and give more details. What script type is it? Where is it? Is it disabled? Why not try debugging? Is the output saying anything?
yes youre right, but its still not working
it is a Workspace.part.script
script
sjr04
(uep)
April 4, 2020, 7:24pm
#10
Then do local part = script.Parent
at the top if the script is in the part. You said you had local part = game.Workspace
which isn’t right.
ok i will try that right now. thanks
Maybe try doing script.Parent on the beginning, and make sure the script is a child of the Part.
I see what you did. You’re suppose to Capitalize p in position. When coding, it is very important to call the object correctly.
2 Likes
thank you, that was such a newbie mistake i made