"Unable to cast to Dictionary"

  1. What do you want to achieve? Keep it simple and clear!
    This error keeps coming up when i try to use TweenService

  2. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    Yes i tried all sulutions NONE of them are working

while wait(16) do
local TweenService = game:GetService("TweenService")
	local part = script.Parent 
	local tweenInfo = TweenInfo.new(6)
	TweenService:Create(part, tweenInfo, {Vector3.new(-138.93,0.185,160.81)}):Play() --ERROR LINE
	wait(9)
	TweenService:Create(part, tweenInfo, {Vector3.new(-138.93,67.345,160.81)}):Play()
	end

https://gyazo.com/638b485a22d2d480932271576b2b978e

Vector3 is used for all sorts of stuff like scaling, moving, etc.
What exactly are you trying to do with it?

Moving a part (30 charsssssssss)

If you’re moving a part, you need to do {Position = Vector3.new(-138.93,0.185,160.81)}

1 Like

omg im so dumbi thought the api is broken… thanks

Maybe do something like
pos = part.Position=part.Position+Vector3.new(something,something,something)
and then putting “pos” into the Tween?

Sorry nevermind, not exactly like that. But yeah, other guy answered, so you know what to do.

1 Like