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 » Scripting Helpers
Home Search
 

Re: Why wont my function work?

Previous Thread :: Next Thread 
yelloball is not online. yelloball
Joined: 17 Feb 2010
Total Posts: 2749
22 Jul 2014 06:01 AM
Using the example from the robloxWiki, I dont get anny output online and in the studio. Using a localscript, could that be a problem.

script.Parent.character.MouseEnter:connect(function(x, y)
print("The user's mouse cursor has entered the GuiObject at position (" .. x .. ", " .. y .. ").")
end)



Thanks, A.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
22 Jul 2014 06:08 AM
It should be in a local script.

Make sure script.Parent.character exists and is a frame/textbutton/etc.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
22 Jul 2014 06:09 AM
Oh, make sure to check the client output, not the server one when online, since you are printing from a local script.
Report Abuse
yelloball is not online. yelloball
Joined: 17 Feb 2010
Total Posts: 2749
22 Jul 2014 07:58 AM
After some debugging I found out I got this error in game but not in studio.

character is not a valid member of ScreenGui
(line 9 wich is print(script.Parent.character.Name))
Report Abuse
yelloball is not online. yelloball
Joined: 17 Feb 2010
Total Posts: 2749
22 Jul 2014 09:17 AM
My script seems to work perfectly in studio but not online.
What's wrong?
Report Abuse
yelloball is not online. yelloball
Joined: 17 Feb 2010
Total Posts: 2749
22 Jul 2014 10:00 AM
Gentlemen?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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