I wanna keep this simple.
I am having issues with a modulescript which allows tweening for a imagelabel.
It’s giving out errors when I try to do a quick test run.
Code:
local EF = {}
local TS = game:GetService('TweenService')
local Im = script.Parent["."]
local sound = script.Sound
local In = TweenInfo.new(
10, -- time
Enum.EasingStyle.Sine,
Enum.EasingDirection.In,
false,
0
)
local Out = TweenInfo.new(
10, -- time
Enum.EasingStyle.Sine,
Enum.EasingDirection.Out,
false,
0
)
local _in = {
ImageTransparency = 0
}
local _out = {
ImageTransparency = 1
}
local Index = ''
local _START = TS:Create(Im,In,_in)
local _END = TS:Create(Im,Out,_out)
function EF:Intake()
_START:Play()
sound:Play()
local z = sound.Ended:Connect(function()
sound:Play()
end)
wait(10)
_END:Play()
z:disconnect()
end
return EF
Solutions will be very helpful.
Related issues that might be the problem: Issue with Chat CoreGui