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
 

Script Type Help?

Previous Thread :: Next Thread 
Vaulcus is not online. 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 is not online. Vaulcus
Joined: 06 Nov 2012
Total Posts: 380
30 May 2014 07:51 PM
bump
Report Abuse
Brickman2010 is not online. Brickman2010
Joined: 20 Nov 2009
Total Posts: 5547
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 is not online. 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 is not online. Vaulcus
Joined: 06 Nov 2012
Total Posts: 380
30 May 2014 08:06 PM
bump
Report Abuse
Vaulcus is not online. Vaulcus
Joined: 06 Nov 2012
Total Posts: 380
30 May 2014 08:17 PM
bump2
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