IsGuiDisplayed=script.Parent.IsDisplayed IsHiddenByOtherGUI=script.Parent.IsHiddenByOtherGUI SpawnNotification=game.ReplicatedStorage.ClientStorage.SpawnNotification SmallHint=script.Parent.SmallHint HasShownLargeHint=false function Update()SmallHint.Visible=not IsGuiDisplayed.Value if not HasShownLargeHint and(not IsGuiDisplayed.Value and not IsHiddenByOtherGUI.Value)then HasShownLargeHint=true local t=SpawnNotification:Invoke("\072\111\118\101\114 \109\111\117\115\101 \116\111 \115\104\111\119 \112\097\110\101\108\046",nil,-1)SmallHint.ImageTransparency=0 t.TextStrokeColor3=Color3.new(.7,.7,.7)local a=game.TweenService:Create(SmallHint,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,math.huge),{ImageTransparency=.85})a.Parent=SmallHint a:Play()local R=game.TweenService:Create(t,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,math.huge),{TextStrokeColor3=Color3.new(0,0,0)})R.Parent=t R:Play()local P=false local function H()if not P then if t.Parent~=nil then t.LifetimeLeft.Value=0 end a:Cancel()a:Destroy()SmallHint.ImageTransparency=.85 P=true end end delay(10,H)IsGuiDisplayed.Changed:Wait()H()end end IsGuiDisplayed.Changed:Connect(Update)Update()


IsGuiDisplayed = script.Parent.IsDisplayed
IsHiddenByOtherGUI = script.Parent.IsHiddenByOtherGUI
SpawnNotification = game.ReplicatedStorage.ClientStorage.SpawnNotification
SmallHint = script.Parent.SmallHint

HasShownLargeHint = false

function Update()
	SmallHint.Visible = not IsGuiDisplayed.Value
	
	if not HasShownLargeHint and not IsGuiDisplayed.Value and not IsHiddenByOtherGUI.Value then
		HasShownLargeHint = true
		
		local notification =
			SpawnNotification:Invoke("Hover mouse to show panel.", nil, -1)
		SmallHint.ImageTransparency = 0
		notification.TextStrokeColor3 = Color3.new(0.7, 0.7, 0.7)
		
		local tween = game.TweenService:Create(
			SmallHint,
			TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, math.huge),
		{ImageTransparency = 0.85})
		tween.Parent = SmallHint
		tween:Play()
		local tween2 = game.TweenService:Create(
			notification,
			TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, math.huge),
			{TextStrokeColor3 = Color3.new(0, 0, 0)})
		tween2.Parent = notification
		tween2:Play()
		
		local hintCleanedUp = false
		local function cleanupHint()
			if not hintCleanedUp then
				if notification.Parent ~= nil then
					notification.LifetimeLeft.Value = 0
				end
				tween:Cancel()
				tween:Destroy()
				SmallHint.ImageTransparency = 0.85
				
				hintCleanedUp = true
			end
		end
		
		delay(10, cleanupHint)
		IsGuiDisplayed.Changed:Wait()
		cleanupHint()
	end
end

IsGuiDisplayed.Changed:Connect(Update)

Update()
