Hello. I’m trying to configure the Basic Admin Essentials Main Module script to make it so when the :h or :countdown command is used, it makes a GUI that would usually cover the hint/countdown disappear temporarily so it can be seen. This is working for the :h command (hints), but is making the GUI that I want to be removed flash on and off of screen when the :countdown command is used. I think this is because it makes a new GUI come up every time a second passes therefore I’d appreciate any help to fix this. Thanks.
Video:
Local Script:
elseif Type == "Hint" then
if baseClip:FindFirstChild('Hint Clone') then
local toRemove = baseClip:FindFirstChild('Hint Clone')
toRemove:TweenPosition(UDim2.new(0,0,0,-toRemove.AbsoluteSize.Y),'Out','Quint',0.3,true,function(Stat)
if Stat == Enum.TweenStatus.Completed then
toRemove:Destroy()
end
end)
end
local hintTemplate = baseClip:WaitForChild('Hint Template')
local hintClone = hintTemplate:Clone()
hintClone.Name = "Hint Clone"
local hintButton = hintClone:WaitForChild('TextButton')
local hintTop = hintClone:WaitForChild('Top')
local hintBody = hintClone:WaitForChild('Body')
local hintTitleText = hintTop:WaitForChild('Title')
local hintBodyText = hintBody:WaitForChild('To Name Later')
hintButton.MouseButton1Click:connect(function()
hintClone:TweenPosition(UDim2.new(0,0,0,-hintClone.AbsoluteSize.Y),'Out','Quint',0.3,true,function(Stat)
if Stat == Enum.TweenStatus.Completed then
hintClone:Destroy()
end
end)
end)
hintTitleText.Text = Data[1]
hintBodyText.Text = Data[2]
hintClone.Parent = baseClip
hintClone.Visible = true
hintClone.Position = UDim2.new(0,0,-1,0)
hintClone:TweenPosition(UDim2.new(0,0,0,0),'Out','Quint',0.3,true)
playerGui.GuiThing.TextButton.Visible = false
local waitTime = (#hintBodyText.Text*0.1)+1
if waitTime <= 1 then
waitTime = 2.5
elseif waitTime > 10 then
waitTime = 10
end
wait(waitTime)
playerGui.GuiThing.TextButton.Visible = true
pcall(function()
if hintClone then
hintClone:TweenPosition(UDim2.new(0,0,0,-hintClone.AbsoluteSize.Y),'Out','Quint',0.3,true,function(Stat)
if Stat == Enum.TweenStatus.Completed then
hintClone:Destroy()
end
end)
end
end)
end
end