RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make it tween the size of the button to {0.144, 0},{0.072, 0} and tween the frame size to 0,0,0,0"
-- roblox script local button = script.Parent.Parent.Parent.CAC local actualbutton = script.Parent local frame = script.Parent.Parent local click = script.Parent.Click local hover = script.Parent.Hover local tweenService = game:GetService("TweenService") local buttonTweenInfo = TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) local buttonGoal = {Size = UDim2.new(0.144, 0, 0.072, 0)} local frameTweenInfo = TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) local frameGoal = {Size = UDim2.new(0, 0, 0, 0)} actualbutton.MouseButton1Click:Connect(function() button.Visible = true frame.Visible = false local buttonTween = tweenService:Create(actualbutton, buttonTweenInfo, buttonGoal) buttonTween:Play() local frameTween = tweenService:Create(frame, frameTweenInfo, frameGoal) frameTween:Play() end) actualbutton.MouseEnter:Connect(function() hover:Play() end)