RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"script where clicking UI makes another UI size tween"
-- local script local TweenService = game:GetService("TweenService") local UserInputService = game:GetService("UserInputService") local button = script.Parent local otherUI = script.Parent.Parent.OtherUI -- replace with the actual path to the other UI local function onClick() local tweenInfo = TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) local goal = {Size = UDim2.new(1, 0, 1, 0)} -- replace with the desired size local tween = TweenService:Create(otherUI, tweenInfo, goal) tween:Play() end button.MouseButton1Click:Connect(onClick)