Tween gui transparency

this should make the transparency go from 1 to 0 but it doesn’t.
(server script)
i’m a little too tired to tell the issue, anyone help?

local prox = script.Parent
local info = TweenInfo.new(0.5,Enum.EasingStyle.Linear)
prox.Triggered:Connect(function(player)
	print("Working") -- this prints
	local gui = player.PlayerGui:FindFirstChild("Elevator"):FindFirstChild("Frame")
	player.Character.HumanoidRootPart.Anchored = true
	gui.Visible = true
	game:GetService("TweenService"):Create(gui,info,{BackgroundTransparency = 0})
    print("this prints too")
end)

image

you didnt play the tween

local prox = script.Parent
local info = TweenInfo.new(0.5,Enum.EasingStyle.Linear)
prox.Triggered:Connect(function(player)
	print("Working") -- this prints
	local gui = player.PlayerGui:FindFirstChild("Elevator"):FindFirstChild("Frame")
	player.Character.HumanoidRootPart.Anchored = true
	gui.Visible = true
	game:GetService("TweenService"):Create(gui,info,{BackgroundTransparency = 0}):Play()
    print("this prints too")
end)
2 Likes