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

Vector3 expected, got CFrame?

This is quite literally the stupidest thing I have seen. This line of code has been annoying me for 2 hours, and I don't know how to fix it. So I turned to you all.

Workspace.Script:89: bad argument #2 to '?' (Vector3 expected, got CFrame)

Script

for i, v in pairs (game.Workspace.Rubble:GetChildren())do
TweenInf = TweenInfo.new(6,Enum.EasingStyle.Bounce,Enum.EasingDirection.Out,0,true,0)
	
Properties={
	CFrame = v.CFrame + CFrame.new(0,30,0)--Error occurs. 
	}
	
Tween = TweenService:Create(v, TweenInf, Properties)
	Tween:Play()
end

I tried changing CFrame.new to Vector3.new but it returns another error.

1 answer

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