If you just wan't to move YesPart then do this, This will only move YesPart only once.
local PartYes = script.Parent
PartYes.Position = PartYes.Position + Vector3.new(35.05,0,0)
PartYes.Position = PartYes.Position + Vector3.new(0,0.6,0)
PartYes.Position = PartYes.Position + Vector3.new(0,0,50.10)
or
local PartYes = script.Parent
PartYes.Position = PartYes.Position + Vector3.new(35.05,0.6,50.10)
If you want to constantly move YesPart then do this instead, This will move the YesPart every 5 second.
local PartYes = script.Parent
while true do
PartYes.Position = PartYes.Position + Vector3.new(35.05,0,0)
PartYes.Position = PartYes.Position + Vector3.new(0,0.6,0)
PartYes.Position = PartYes.Position + Vector3.new(0,0,50.10)
wait(5)
end
or
local PartYes = script.Parent
while true do
PartYes.Position = PartYes.Position + Vector3.new(35.05,0.6,50.10)
wait(5)
end
2 comments
Do you want to rapidly set the Position of your part to that or do you want to move it rapidly? Remember too the delay at the end!
Position is a Vector3. Vector3's X, Y, and Z values are readonly. Assign the Position to another Vector3 value if you want to change it. PartYes.Position = Vector3.new(35.05, 0.6, 50.10). Also, why is that inside a loop?