for _, child in MainFrame:GetChildren() do if child:IsA("TextButton") then…
- User
for _, child in MainFrame:GetChildren() do if child:IsA("TextButton") then child.MouseEnter:Connect(function() if child:FindFirstChild("ButtonName") then child.ButtonName.Visible = true end end) child.MouseLeave:Connect(function() if child:FindFirstChild("ButtonName") then child.ButtonName.Visible = false end end) child.MouseButton1Click:Connect(function() onButtonClick(child) end) end end
i want to tween their transparency instead of using the .Visible tag
- Assistant
To tween their transparency instead of directly setting the
Visibleproperty, you need to use theTweenServiceto create smooth transitions (tweens). Here's how you can update your script to change the transparency of theButtonNameelement usingTweenService:- Create the
TweenInfo, which configures the duration and style of the tween.
- Create the