local TS = game:GetService("TweenService")
local Home = script.Parent.Home
local Username = Home.Username
local U_FOUTTween = TS:Create(Username, TweenInfo.new(1.5), {BackgroundColor3 = Color3.new(24, 24, 24)})
local U_FINTween = TS:Create(Username, TweenInfo.new(1.5), {BackgroundColor3 = Color3.new(48, 48, 48)})
Username.MouseEnter:Connect(function()
print("U Entered")
U_FOUTTween:Cancel()
U_FINTween:Play()
end)
Output:
Explorer:
Game:
I hover over the “Username” textbox, the script prints “U Entered”, and the background color doesn’t tween but rather instantly turns to the end color.
Maybe include in your solution that you used Color3.fromRGB instead of Color3.new to fix your problem since it could confuse other people reading your post.