Script: [script.Parent.MouseHoverEnter:connect(function(MHE) local Player = MHE local Mouse = Player:GetMouse()
local topText = "Sorry," -- the text that'll be shown in the top TextLabel local bottomText = "Can't enter without a code from our boss. His name is, ehhh imaginevrething?" -- the text that'll be shown in the bottom TextLabel if Player.PlayerGui:FindFirstChild("MouseTip") then Player.PlayerGui:WaitForChild("MouseTip").MainFrame:TweenSize(UDim2.new(0,250 , 0,125), "Out", "Quad", 0.2) Player.PlayerGui:WaitForChild("MouseTip").MainFrame.Top.Text = topText Player.PlayerGui:WaitForChild("MouseTip").MainFrame.Bottom.Text = bottomText else local MouseTip = script.MouseTip:Clone() MouseTip.Parent = Player.PlayerGui MouseTip.MainFrame:TweenSize(UDim2.new(0,250 , 0,125), "Out", "Quad", 0.2) MouseTip.MainFrame.Top.Text = topText MouseTip.MainFrame.Bottom.Text = bottomText end while wait() do Player.PlayerGui:WaitForChild("MouseTip").MainFrame.Position = UDim2.new(0,Mouse.X , 0,Mouse.Y) end
end)
script.Parent.MouseHoverLeave:connect(function(MHL) local Player = MHL local Mouse = Player:GetMouse()
Player.PlayerGui:WaitForChild("MouseTip").MainFrame:TweenSize(UDim2.new(0,0 , 0,0), "Out", "Quad", 0.2) Player.PlayerGui:WaitForChild("MouseTip").MainFrame.Position = UDim2.new(0,Mouse.X , 0,Mouse.Y) Player.PlayerGui:WaitForChild("MouseTip").MainFrame.Top.Text = "topText" Player.PlayerGui:WaitForChild("MouseTip").MainFrame.Bottom.Text = "bottomText"
end)]