Why isnt my tween working?

I’ve played around with it but I just cant seem to find out where the issue is located.

local traveltime = 1

local r = game:GetService("ReplicatedStorage")
local row = r:WaitForChild("Arrow")


local uis = game:GetService("UserInputService")
local ts = game:GetService("TweenService")
local tweeninfo = TweenInfo.new(traveltime, Enum.EasingStyle.Back, Enum.EasingDirection.In, 0, false, 0)



script.Parent.Activated:Connect(function()
	
	
	local maus = game.Players.LocalPlayer:GetMouse()
	local arow = r.Arrow:Clone()
	arow.Parent = workspace
	arow.Position = script.Parent.Handle.Position
	print(maus.Hit.Position)
	local goal = {}
	goal.Position = Vector3.new(20,24,21)
	
	local tween = ts:Create(arow, tweeninfo, Vector3.new(5,5,5))
	
	
	tween:Play()
end)


Error code : Unable to cast to Dictionary - Client - LocalScript:24

but the mouse position always prints

Could you give me the line of code that errors (line 24)?

local tween = ts:Create(arow, tweeninfo, Vector3.new(5,5,5))

Try this

local tween = ts:Create(arow, tweeninfo, {Position = Vector3.new(5,5,5)})
2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.