|
| 08 Jul 2015 11:59 AM |
dL = script.Parent.DescLabel button = script.Parent
if button:IsA("TextButton") then button.MouseMoved:connect(function(x, y) dL.Position = UDim2.new(0, x, 0, y) dL.Text.Value = button.Description.Value dL.Size = UDim2.new(0, 8 * button.Description.Value:len() + 40, 0, 20) dL.Visible = true end) button.MouseLeave:connect(function() dL.Visible = false end) end |
|
|
| Report Abuse |
|
|
| 08 Jul 2015 12:12 PM |
Whens setting the text of a text label, you do not need to put .Value
You need to change the line dL.Text.Value = button.Description.Value to dL.Text = button.Description.Value
Fixed code: dL = script.Parent.DescLabel button = script.Parent
if button:IsA("TextButton") then button.MouseMoved:connect(function(x, y) dL.Position = UDim2.new(0, x, 0, y) dL.Text = button.Description.Value dL.Size = UDim2.new(0, 8 * button.Description.Value:len() + 40, 0, 20) dL.Visible = true end) button.MouseLeave:connect(function() dL.Visible = false end) end |
|
|
| Report Abuse |
|