of     1   

CloneTrooper1019
#63708123Friday, March 02, 2012 9:00 PM GMT

function tweenCFrame(part,oldPos,newPos,Speed) local XCal = newPos.X - oldPos.X local YCal = newPos.Y - oldPos.Y local ZCal = newPos.Z - oldPos.Z for i = 1,((newPos.CFrame-oldPos.CFrame).magnitude) do part.CFrame = CFrame.new( (xCal/Speed)*(i*(1/wait()) , (yCal/Speed)*(i*(1/wait()) , (zCal/Speed)*(i*(1/wait()) ) wait(Speed/wait()) end end
CloneTrooper1019
#63708157Friday, March 02, 2012 9:01 PM GMT

Forgot to say the output. Workspace.Script:6: ')' expected near ','
shaythegoon
#63709509Friday, March 02, 2012 9:27 PM GMT

i'm not to good at scripting so don't kill me if i'm wrong but when i see i = 1 it is surrounded by [] so... i = [] , not sure if that only works for collecting values
CloneTrooper1019
#63709812Friday, March 02, 2012 9:33 PM GMT

@shay. The problem is on line 6. Not line 5. :)
shaythegoon
#63709915Friday, March 02, 2012 9:34 PM GMT

lol :) i was testing you
shaythegoon
#63710010Friday, March 02, 2012 9:36 PM GMT

thats alot of brackets you've got yourself there. may i have one JKs, can't see a problem?
CloneTrooper1019
#63710423Friday, March 02, 2012 9:42 PM GMT

Im not sure what is wrong with it. But the output is wise. The goal of this function is to smoothly move the position of one block to the other position.

    of     1