Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why isnt this part position script working properly?

This script is placed inside a part with the goal of making this part move up one stud per second:

local xValue = 0
local yValue = 1
local zValue = 0
while true do
	script.Parent.Position = Vector3(xValue, yValue + 1, zValue)
	wait(1)
end

However, this error keeps popping up: Workspace.Part.#2:7: attempt to call global 'Vector3' (a table value) Any idea what is wrong?

1 answer

✓ Accepted answer

Change Vector3 on line 5 to Vector3.new and that will fix the problem.

1 comment

0

Thanks!

This discussion is preserved as it was. New answers, comments, and votes are closed.