RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"if I click a button its color fades so that I can customize what color it changes to"
-- Local script inside the button local button = script.Parent local tweenService = game:GetService("TweenService") local function fadeColor() local newColor = Color3.fromRGB(math.random(0, 255), math.random(0, 255), math.random(0, 255)) local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out) local tween = tweenService:Create(button, tweenInfo, {BackgroundColor3 = newColor}) tween:Play() end button.MouseButton1Click:Connect(fadeColor)