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
 

Re: What is the difference between scripts and local scripts?

Previous Thread :: Next Thread 
donnchad100 is not online. donnchad100
Joined: 19 Mar 2011
Total Posts: 1794
30 Dec 2014 03:26 PM
What's dah difference?



We need more lemurs.
Report Abuse
Grantastrophe is not online. Grantastrophe
Joined: 04 May 2013
Total Posts: 5
30 Dec 2014 03:38 PM
Local Scripts are better used to make changes to the client, while a normal Script is better used to make changes to the server.

Some methods can only be executed by a Local Script or normal Script, also.
Report Abuse
iiEssence is not online. iiEssence
Joined: 18 Jun 2014
Total Posts: 3467
30 Dec 2014 03:40 PM
Local scripts have a guy on the script

Scripts don't
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
30 Dec 2014 03:41 PM
Local scripts are used for client stuff (each player), server scripts are used for server stuff (not player)
Report Abuse
crazyman32 is not online. crazyman32
Joined: 13 Apr 2008
Total Posts: 18027
30 Dec 2014 03:50 PM
Script: On the server
Local: On the client

The difference:

When you play an online game, a "server" acts as the host of the game. All the players of the game are the "client"

Any "client" code (LocalScript) actually runs ON the client (player)'s computer.

Any server code (Script) runs on the server itself, not the clients.
Report Abuse
donnchad100 is not online. donnchad100
Joined: 19 Mar 2011
Total Posts: 1794
30 Dec 2014 04:48 PM
So if I want to teleport all players I use local?

And If I wanted to make a certain player do something I would also use local?



We need more lemurs.
Report Abuse
512GB is not online. 512GB
Joined: 19 Apr 2012
Total Posts: 4271
30 Dec 2014 04:55 PM
> So if I want to teleport all players I use local?
no
> And If I wanted to make a certain player do something I would also use local?
no


Local scripts ONLY affect the ONE person that they're inside. You'll usually use them to hook into the player's mouse events, create effects or such in their GUIs, or modify that player's camera.

Server scripts can affect ALL players. You'll want to use a server script to teleport users around.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
30 Dec 2014 04:56 PM
Well, SHOULD only affect the one client, but if filtering is not enabled you can basically do whatever.
Report Abuse
512GB is not online. 512GB
Joined: 19 Apr 2012
Total Posts: 4271
30 Dec 2014 04:57 PM
Actually let me add onto this:

> Local scripts ONLY affect the ONE person that they're inside
-- only when FilteringEnabled is true
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