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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 2749 |
|
| |
|