This is not a long script but I just want to know why it’s not working
local frame = script.Parent.Frame
frame:TweenSize(UDim2.new(0.514, 0,0.803, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Back,0.1)
This is not a long script but I just want to know why it’s not working
local frame = script.Parent.Frame
frame:TweenSize(UDim2.new(0.514, 0,0.803, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Back,0.1)
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
Nvm I just realized I had to play the game in order to see the tween not run it
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.