RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make it so that the frame smoothly fades in"
-- local script local TweenService = game:GetService("TweenService") local button1 = script.Parent.Parent.Credits local button2 = script.Parent.Parent.Settings local button3 = script.Parent.Parent.Play local frame = script.Parent.Parent.Parent.Credits local function onClick() local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) local button1Goal = {Position = UDim2.new(0, 0, 0.5, 0)} local button2Goal = {Position = UDim2.new(0, 0, 0.6, 0)} local button3Goal = {Position = UDim2.new(0, 0, 0.7, 0)} local frameGoal = {BackgroundTransparency = 0} -- Set the frame's transparency to 0 to make it visible local button1Tween = TweenService:Create(button1, tweenInfo, button1Goal) local button2Tween = TweenService:Create(button2, tweenInfo, button2Goal) local button3Tween = TweenService:Create(button3, tweenInfo, button3Goal) local frameTween = TweenService:Create(frame, tweenInfo, frameGoal) -- Create the frame's tween frameTween:Play() -- Play the frame's tween button1Tween:Play() button2Tween:Play() button3Tween:Play() button1Tween.Completed:Wait() button2Tween.Completed:Wait() button3Tween.Completed:Wait() end script.Parent.MouseButton1Click:Connect(onClick)