I am trying to tween multiple parts at once but I keep getting the error “Unable to cast to dictionary”.
Does anyone know how to solve this tedious problem?
I am in no way a scripter but am learning so I can make solo projects if I want to.
Any help would be appreciated.
Heres my tween script that gives me the error:
local tweenService = game:GetService(“TweenService”)
You’re getting this error because TweenService:Create takes three arguments, the third of which should be a dictionary. Since the third argument is Wave3, a part, the error is saying it can’t make a part function as the dictionary it needs.
Where do I put this:
Tween(Wave1, .5, “Quad”, “InOut”, true, {Size = *250)
Tween(Wave2, .5, “Quad”, “InOut”, true, {Size = *250)
Tween(Wave3, .5, “Quad”, “InOut”, true, {Size = *250)
Can you put it where it’s supposed to go?
Isn’t right. There should only be 3 arguments (Things in the parenthesis.) The first argument is the instance you want the tween to act on, the second argument is the tweeninfo you want the tween to use. The third argument is a table containing the new properties it should change to.
I think this might work.
local tween1 = tweenService:Create( wave1, tweenInformation, partInfo)
local tween2 = tweenService:Create( wave2, tweenInformation, partInfo)
local tween3 = tweenService:Create( wave3, tweenInformation, partInfo)
tween1:Play()
tween2:Play()
tween3:Play()
Also,
Makes no sense either.Vector3 should have 3 arguments, the X size, the Y size, and the Z size. You gave it like 9 arguments.
Just pass in multiple arguments such as: local a =tween:Create(script.Parent.as, TweenInfo.new(1), {Position = Vector3.new(20.69, 177.39, -22.1), Orientation = Vector3.new(0, 90, 90)})