So i’m trying to make a simple UI that moves to the screen when a button is activated. I’ve done the a million times, but it seems like i forgot it, because i have an error that’s saying : "TweenService:Create no property named 'Position' for object 'BuyCoins' "
Well i don’t know what is the problem so here is my script :
local openedPosition = UDim2.new(0.175, 0,0.328, 0)
local closedPosition = UDim2.new(-0.35, 0,0.328, 0)
local CoinsFrame = script.Parent.BuyCoins
local TweenService = game:GetService("TweenService")
local Info = TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 0, false)
local isOpened = false
script.Parent.Activated:Connect(function()
if isOpened == false then
TweenService:Create(CoinsFrame, Info, {Position = openedPosition}):Play()
isOpened = true
elseif isOpened == true then
TweenService:Create(CoinsFrame, Info, {Position = closedPosition}):Play()
isOpened = false
end
end)
NOOOOOOO DONT TELLL ME IM GONNA SEE MODULES OFF “TweEnPosItion”
but like why isnt it deprecated in rblx studio? it doesnt say that- am i late or something?