im making a day night cycle and im making an animation for a textlabel
script:
game.Players.LocalPlayer.PlayerScripts.hello.Sound.Played:Connect(function()
script.Parent.Value.Value += 1
script.Parent.Text = "DAY "..script.Parent.Value.Value
local tweenservice = game:GetService("TweenService")
local twoon = game.Lighting
local goals = {Position = {0.445, 0},{0.04, 0}, TextSize = 32, TextTransparency = 0}
local info = TweenInfo.new(
300,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out,
0,
false,
0
)
local tween = tweenservice:Create(twoon, info, goals)
end)
** You are now Level 3! **