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!