[SOLVED] Wondering why this script to make my GUI change colors isn't working?

Hey, I’m lastborn and I’m trying to achieve a script that changes a frames color automatically. I’m using TweenService to do this but some reason it’s not working, and I was wondering if anyone could help.

I was also wondering if the reason could maybe be because it’s a local script?
The Code:
local tweenService = game:GetService(“TweenService”)
local frame = script.Parent
local tweenInfo = TweenInfo.new(
1,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out,
-1,
false,
0.2)

local tween = tweenService:Create(frame, tweenInfo, {BackgroundColor3 = Color3.fromRGB(0, 0, 0)})

Thanks :slight_smile:
Edit: This is how it’s formatted

You never call tween:Play().

1 Like

Lol thanks :joy:
been a while since i’ve used tweens

1 Like