Vaulcus
|
  |
| Joined: 06 Nov 2012 |
| Total Posts: 380 |
|
|
| 30 May 2014 07:44 PM |
| Okay, so I'm having a bit of trouble with script types. In my game, whenever I play solo, all the scripts work, but when I play online, they don't. To try and fix this problem I tried to switch my local scripts to normal scripts. Anyways the problem is I'm using the ':GetMouse' method, but this must be in a local script since 'mouse' is a client-side object. How can I get the player mouse in a normal script? This is not a tool, it's a GUI button. |
|
|
| Report Abuse |
|
|
Vaulcus
|
  |
| Joined: 06 Nov 2012 |
| Total Posts: 380 |
|
| |
|
|
| 30 May 2014 07:52 PM |
| make sure all of your "Local" scripts are inside a descendant of the player (The character, Starter GUI, or the player itself. :GetMouse() only works with local scripts, but they cannot run outside of the places I mentioned. |
|
|
| Report Abuse |
|
|
Vaulcus
|
  |
| Joined: 06 Nov 2012 |
| Total Posts: 380 |
|
|
| 30 May 2014 07:53 PM |
| Yeah, all of my scripts are descendants of PlayerGui, but some of them didn't work, so I was forced to change them to normal scripts. |
|
|
| Report Abuse |
|
|
Vaulcus
|
  |
| Joined: 06 Nov 2012 |
| Total Posts: 380 |
|
| |
|
Vaulcus
|
  |
| Joined: 06 Nov 2012 |
| Total Posts: 380 |
|
| |
|