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
 

Why does this not work? (Gui Visible)

Previous Thread :: Next Thread 
BuriedBlock is not online. BuriedBlock
Joined: 14 Dec 2009
Total Posts: 3091
09 Dec 2014 07:15 PM
Everything works but the Name gui doesn't change its visible from false to true

Error: 20:13:53.681 - Players.Player.PlayerGui.stats.Open.LocalScript:35: attempt to index field 'Name' (a string value)





script.Parent.MouseEnter:connect(function()
enter = true
script.Parent.Parent.Line1.Size = UDim2.new(0,50,0,2)
wait()
script.Parent.Parent.Line1.Size = UDim2.new(0,60,0,2)
wait()
script.Parent.Parent.Line1.Size = UDim2.new(0,70,0,2)
wait()
script.Parent.Parent.Line1.Size = UDim2.new(0,80,0,2)
wait()
script.Parent.Parent.Line1.Size = UDim2.new(0,90,0,2)
wait()
script.Parent.Parent.Line1.Size = UDim2.new(0,100,0,2)
wait()
script.Parent.Parent.Line1.Size = UDim2.new(0,110,0,2)
wait()
script.Parent.Parent.Line1.Size = UDim2.new(0,120,0,2)
wait()
script.Parent.Parent.Line1.Size = UDim2.new(0,130,0,2)
wait()
script.Parent.Parent.Line1.Size = UDim2.new(0,140,0,2)
wait()
script.Parent.Parent.Line1.Size = UDim2.new(0,150,0,2)
wait()
script.Parent.Parent.Line1.Size = UDim2.new(0,160,0,2)
wait()
script.Parent.Parent.Line1.Size = UDim2.new(0,170,0,2)
wait()
script.Parent.Parent.Line1.Size = UDim2.new(0,180,0,2)
wait()
script.Parent.Parent.Line1.Size = UDim2.new(0,190,0,2)
wait()
script.Parent.Parent.Line1.Size = UDim2.new(0,200,0,2)
wait(1)
script.Parent.Parent.Name.Visible = true
if not enter then
script.Parent.Parent.Line1.Size = UDim2.new(0,50,0,2)
end
end)
wait(1)

script.Parent.MouseLeave:connect(function()
enter = false
script.Parent.Parent.Name.Visible = false
script.Parent.Parent.Line1.Size = UDim2.new(0,50,0,2)

end)



Report Abuse
sidekick601 is not online. sidekick601
Joined: 27 Feb 2012
Total Posts: 8734
09 Dec 2014 07:17 PM
omg the inefficiency!!111
Report Abuse
BuriedBlock is not online. BuriedBlock
Joined: 14 Dec 2009
Total Posts: 3091
09 Dec 2014 07:21 PM
ik ik but i'm fine with it like this i just need the visible part fixed k
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
09 Dec 2014 07:22 PM
Name is a string value. If you absolutely MUST have a descendant named "Name" (Which you really should never do) then use FindFirstChild.
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