RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"when I click the button a frame tweens up from the bottom middle"
-- local script local button = script.Parent local frame = script.Parent.Parent.Frame local tweenService = game:GetService("TweenService") local function onClick() local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) local targetPosition = UDim2.new(0.5, 0, 0.5, 0) local tween = tweenService:Create(frame, tweenInfo, {Position = targetPosition}) tween:Play() end button.MouseButton1Click:Connect(onClick)