|
| 20 Sep 2015 05:46 PM |
for i,v in pairs(script.Parent:GetChildren()) do Gui = v:FindFirstChild("TextLabel") Gui.Position = UDim2.new(0,0,0,0) local delta = UDim2.new(0, Gui.AbsolutePosition.X, 0, Gui.AbsolutePosition.Y) if Gui then v.MouseEnter:connect(function() Gui.Visible = true script.Parent.MouseMoved:connect(function() Gui.Position = UDim2.new(0, mouse.X, 0, mouse.Y) - delta end) -- v.MouseLeave:connect(function() Gui.Visible = false script.Parent.MouseMoved:connect(function() Gui.Position = UDim2.new(0,0,0,0) end) end) end) end end
None of the textlabels that it's supposed to detect are showing |
|
|
| Report Abuse |
|
Oaktin
|
  |
| Joined: 01 Sep 2013 |
| Total Posts: 119 |
|
| |
|
| 20 Sep 2015 06:28 PM |
| LocalScript:43: attempt to index global 'Gui' (a nil value) |
|
|
| Report Abuse |
|
|
| 20 Sep 2015 06:28 PM |
That's this line
Gui.Position = UDim2.new(0,0,0,0) |
|
|
| Report Abuse |
|
| |