For some reason, the code I wrote is not working. Please review it and tell me what did I do wrong.
local TweenService = game:GetService("TweenService")
local part = game.Workspace.Part
part.Transparency = 0
local tweeninfo = TweenInfo.new(5)
local goal = {}
goal.Transparency = 1
local tween = TweenService:Create(part, goal, tweeninfo)
tween:Play()