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

My part moving script gives an error?

It says that Position is not a valid member of part, except Position is a property of part. Help?

while wait(0.1) do
	script.Parent.Position = script.Parent.Positon + Vector3.new(0, 1, 0)
	if script.Parent.Position == Vector3.new(-12, 5.5, 28) then
		script.Parent.Position = Script.Parent.Position - Vector3.new(0, 1, 0)
	end
end

1 answer

You misspelled Position on line 02, remember to check your spelling when coding.

while wait(0.1) do
    script.Parent.Position = script.Parent.Position + Vector3.new(0, 1, 0)
    if script.Parent.Position == Vector3.new(-12, 5.5, 28) then
        script.Parent.Position = Script.Parent.Position - Vector3.new(0, 1, 0)
    end
end

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