generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: what's wrong with this code?

Previous Thread :: Next Thread 
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
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 is not online. Oaktin
Joined: 01 Sep 2013
Total Posts: 119
20 Sep 2015 06:00 PM
Whats the error?
Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
20 Sep 2015 06:28 PM
LocalScript:43: attempt to index global 'Gui' (a nil value)
Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
20 Sep 2015 06:28 PM
That's this line

Gui.Position = UDim2.new(0,0,0,0)
Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
20 Sep 2015 06:38 PM
b
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image