My frame is not tweening

This is not a long script but I just want to know why it’s not working
image
image

local frame = script.Parent.Frame 


frame:TweenSize(UDim2.new(0.514, 0,0.803, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Back,0.1)
1 Like

Something like that:

local TS = game:GetService("TweenService") -- set the TweenService
local frame = script.Parent.Frame -- your frame

local targetPosition = UDim2.new(0.514, 0,0.803, 0) -- set position to anything you want
local easingDirection = Enum.EasingDirection.Out -- set direction
local easingStyle = Enum.EasingStyle.Back -- set style
local duration = 1 -- duration

local tweenInfo = TweenInfo.new(duration, easingStyle, easingDirection) -- set info

TS:Create(frame, tweenInfo, {Position = targetPosition}):Play() -- play it

Also you can read TweenService | Documentation - Roblox Creator Hub

1 Like

Nvm I just realized I had to play the game in order to see the tween not run it

1 Like

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