I’m attempting to make a description popping out, when hovered, and contains that text that’s being used in the script - however, I’m facing issues with sizing the frame as intended. Hence, there’s no more to add on other than the frame and textlabel has offset in the size, it still doesn’t seem to scale right, what’s the issue in this scenario?
--[ Variables
local plr = game.Players.LocalPlayer
local mouse = plr:GetMouse()
local frame = script.Parent
local addLife = frame["Perk-AddLife"]
local boundary = frame.Boundary
local desc = boundary.Description
local entLife = false
--[ Setup
local function createBnd(txt)
boundary.Visible = true
desc.Text = txt
boundary.Size = UDim2.new(0, math.max(10, desc.TextBounds.X), 0, math.max(10, desc.TextBounds.Y))
end
addLife.Background.MouseEnter:Connect(function()
entLife = true
repeat wait()
createBnd("adds an extra life and brings you back after dead from the arena (stackable)")
until not entLife
end)
addLife.Background.MouseLeave:Connect(function()
entLife = false
end)
Result:
Expected: