TweenService:Create no property named 'Position' for object 'UI'

Hello Developers!

I’m back again with another issue, this one is a odd one.

code:

local TweenService = game:GetService("TweenService")
local plr = game.Players.LocalPlayer

script.Parent.Equipped:Connect(function(mouse)
	local targetPosition = UDim2.new(0, 54, 0, 290)
	local tweenInfo = TweenInfo.new(0.5, Enum.EasingStyle.Back, Enum.EasingDirection.In)

	local tween = TweenService:Create(script.Parent.UI, tweenInfo, {Position = targetPosition})

	tween:Play()
end)

The issue is in the title, when equipping the tool I get TweenService:Create no property named 'Position' for object 'UI' and I can’t find out why it’s happening and how to make it work.

Thanks guys!

Obviously because there’s no property called ‘Position’ in the instance that you wanted to tween

I just now realized it was because I did .UI instead of .UI.Frame

I’m an idiot-

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