i have this fading dialog script, but theres 2 problems with it. the first is, it only fades in and then stays forever, it wont fade out. the second problem is it doesn't show text, it just shows a white screen (background transparency is set to 1 on frame and textlabel)
local TS = game:GetService("TweenService")
local Trigger = workspace.Trigger
local TextLabel = script.Parent
local debouce = false
local time = 1
local function onTouched(hit)
if not debounce then
if not hit then return end
debouce = true
TS:Create(TextLabel, TweenInfo.new(time, Enum.EasingStyle.Quad), {Transparency = 1}):Play()
wait()
TS:Create(TextLabel, TweenInfo.new(time, Enum.EasingStyle.Quad), {Transparency = 0}):Play()
end
end
Trigger.Touched:Connect(onTouched)
