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

Why's this tweening code gets an error "Unable to cast dictionary"?

The code (server script):

local TweenService = game:GetService("TweenService")
local PickupTweenInfo = TweenInfo.new(
	.3,
	Enum.EasingStyle.Linear,
	Enum.EasingDirection.In,
	0,
	false,
	0)

local FinishingLocation = char.HumanoidRootPart

local Tween = TweenService:Create(item, PickupTweenInfo, {
			Transparency == 1,Size == Vector3.new(0,0,0),CFrame = FinishingLocation
})

Tween:Play()

Can somebody explain and solve this for me?

1 answer

HumanoidRootPart must add .CFrame Changed :

local Tween = TweenService:Create(item, PickupTweenInfo, {
Transparency == 1,Size == Vector3.new(0,0,0),CFrame =
FinishingLocation.CFrame
})

Tween:Play()

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