Hello,
I have created a script which tweens a UI to make it disseapear/reapear when you go to a certain area, but currently it doesn’t work. The code is as follows:
local PlazaEvent = script.Parent
local PlazaRemote = game.ReplicatedStorage.Plaza
UIStart = TweenInfo.new(1,Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0, false, 0)
UIEnd = TweenInfo.new(1,Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0, false, 0)
TextTransparency = game.StarterGui.NewAreas.AreaUI.TextTransparency
UIeventStart = game:GetService("TweenService"):Create(AreaUI, UIStart, {transparency = 0})
UIeventEnd = game:GetService("TweenService"):Create(AreaUI, UIEnd, {transparency = 1})
print("got past code")
AreaUI = game.StarterGui.NewAreas.AreaUI
while true do
UIeventStart:Play()
UIeventEnd:Play()
print("looped!!!")
wait(0.1)
end