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
Edit: This is how it’s formatted