Hey guys! Hope you are doing well.
Few minutes ago I was trying to make a smoothly text color tween, but something went wrong and now I have no idea what to do.
If you guys have some ideas, please let me know.
Here is the code:
local TweenService = game:GetService("TweenService") local TweeningObject = script.Parent local TweenInformation = TweenInfo.new( .5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 753475938457843579348573, true, 0 ) local oldTween script.Parent.MouseEnter:Connect(function() if oldTween then oldTween:Cancel() end oldTween = TweenService:Create(TweeningObject, TweenInformation, {Color = Color3.fromRGB(213, 115, 61)}) oldTween:Play() end) script.Parent.MouseLeave:Connect(function() if oldTween then oldTween:Cancel() end oldTween = TweenService:Create(TweeningObject, TweenInformation, {Color = Color3.fromRGB(255,255,255)}) oldTween:Play() end)