So uhh, the Color correction contrast isnt changing by this script and I dont know what the error meant in the output but heres the code
local TweenService = game:GetService("TweenService")
local TweenAnimation = TweenInfo.new(5, Enum.EasingStyle.Liner)
wait(5)
print("regen and then negative")
local tween = TweenService:Create(CC, TweenAnimation, {Contrast = -2})
tween:Play()
wait(20)
local tween2 = TweenService:Create(CC,TweenAnimation,{Contrast = 0})
tween2:Play()
any help?
1 Like
Does it print any errors, if not, then trying printing to check where the script stops?
1 Like
The error printed “Liner is not an EnumItem”
local CC= game.Lighting.ColorCorrection
local TweenService = game:GetService("TweenService")
local TweenAnimation = TweenInfo.new(5, Enum.EasingStyle.Liner)
wait(5)
print("regen and then negative")
local tween = TweenService:Create(CC, TweenAnimation, {Contrast = -2})
tween:Play()
wait(8)
print("tween2 playing")
local tween2 = TweenService:Create(CC,TweenAnimation,{Contrast = 0})
tween2:Play()
print("Tween successfully played")
Should be Enum.EasingStyle.Linear
.
4 Likes
Huh, I thought I haven’t spelled Linear wrong but yeaah, thanks for correcting n have a great day
lol No problem happens to everyone I don’t even play a tween sometime and say that the code is bugged
1 Like