So I use this script, and it will be called by a remote event
local TweenService = game:GetService("TweenService")
local player = game.Players.LocalPlayer
local TransitionEvent = game.ReplicatedStorage.Remotes.TransitionEvent
local ScreenGui = player.PlayerGui.MainGui
local Transition = ScreenGui.Transition
TransitionEvent.OnClientEvent:Connect(function(Text)
local goal_start = {}
local goal_end = {}
local goal_start2 = {}
local goal_end2 = {}
Transition.TextLabel.Text = Text
goal_start.BackgroundTransparency = 0
goal_start2.TextTransparency = 0
goal_end.BackgroundTransparency = 1
goal_end2.TextTransparency = 1
local tweenInfo = TweenInfo.new(2) -- add N time
local tween_start = TweenService:Create(Transition, tweenInfo, goal_start, goal_start2)
local tween_end = TweenService:Create(Transition, tweenInfo, goal_end, goal_end2)
tween_start:Play()
wait(7)
tween_end:Play()
end)
the fade backgroundTransparency does work, but the textTransparency doesnt work, can anyone help me? Thanks!