Hello, so as the title explains, the transparency won’t change when a button is clicked.
Code:
local ts = game:GetService("TweenService")
local unit = game.StarterGui.IfYesHit.Guide
local goal = {}
goal.Transparency = 0
local tw = ts:Create(unit,TweenInfo.new(1,Enum.EasingStyle.Quint,Enum.EasingDirection.Out,0,false,0),goal)
game.StarterGui.IfYesHit.Enabled = true
function hi ()
tw:Play()
script.Parent.Parent.Enabled = false
end
script.Parent.MouseButton1Click:Connect(hi)
There are no errors in output.
I’m very sorry if there is alot of missing information, just tell me if there is. Thank You.
local ts = game:GetService("TweenService")
local unit = game.StarterGui.IfYesHit.Guide
local goal = {}
goal.Transparency = 0
local tw = ts:Create(unit,TweenInfo.new(1,Enum.EasingStyle.Quint,Enum.EasingDirection.Out,0,false,0),goal)
game.StarterGui.IfYesHit.Enabled = true
function hi ()
tw:Play()
tw.Completed:Wait()
script.Parent.Parent.Enabled = false
game.StarterGui.IfYesHit.Enabled = true
end
script.Parent.MouseButton1Click:Connect(hi)