I'm trying to get a beam to tween to a different color when I click a button on my gui! I've tried multiple things with the color sequences and the script below is the one that seems to have the least errors, but it still doesn't work.
Script:
gui = script.Parent
ts = game:GetService("TweenService")
info = TweenInfo.new(
0.5,
Enum.EasingStyle.Quad,
Enum.EasingDirection.InOut,
0,
false,
0
)
local goal =
{
ColorSequence.new(Color3.new(color.r, color.g, color.b) = gui.Color.Value
}
gui.MouseButton1Down:connect(function()
ts:Create(game.workspace.Light.Beam,info,goal):Play()
end)
