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.
CFrame.p
is a Vector3, if you want to move something 30 studs upwards you can do
CFrame = v.CFrame + Vector3.new(0,30,0)