So I'm testing about with tweenservice, here's my code.
local TS = game:GetService('TweenService')
local tweenInfo = TweenInfo.new(
2, -->> Tween time.
Enum.EasingStyle.Linear, -->> Tween style.
Enum.EasingDirection.Out, -->> Easing direction, don't recommend changing.
0, -->> How many times the tween repeats, don't recommend changing.
false, -->> Does the tween reverse? Don't recommend changing.
0 -->> How long does it take to tween?
)
local light = script.Parent.Light
script.Parent.ClickDetector.MouseClick:Connect(function()
local partProperties = {
Color = Color3.new(255,255,255)
}
local Tween = TS:Create(light,tweenInfo,partProperties)
Tween:Play()
end)
When I click the part, the light tweens the colour value to a specific number; (65025, 65025, 65025) for no reason, if I enter in another number, for example 255,0,0 it tweens to (65025, 0, 0), etc
How do I fix this?
Also, the lights look like this for some reason (I'm using future but I don't think that changes how the lighting engine itself works in a way that I would have to modify my code)

1 comment
Thanks, I had this issue before but it never actually tweened to an insane number, but instead just tweened to 0,0,0