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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Sending Data Between Scripts and Local Scripts

Previous Thread :: Next Thread 
MPaarker is not online. MPaarker
Joined: 29 Jun 2015
Total Posts: 10
01 Aug 2015 08:14 PM
I am trying to use a Data Store in a script to load a table and Mouse:Data() in a local script to change that data and send it back to save it. Do you have any ideas on how to do this?
Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
01 Aug 2015 08:15 PM
http://wiki.roblox.com/index.php?title=RemoteFunction_and_RemoteEvent_Tutorial
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
01 Aug 2015 08:15 PM
RemoteFunction/RemoteEvent

Although you don't use Data Store in a local script, that's crazy talk.
Report Abuse
Aceylos is not online. Aceylos
Joined: 26 Feb 2010
Total Posts: 8266
01 Aug 2015 08:16 PM
I posted an example of this somewhere else, but I'll post it here:

RemoteEvent Example:

Server:

function printOnServer(str)
print(str)
end

event.OnServerEvent:connect(printOnServer)

Client:

event:FireServer("Hello World!")

RemoteFunction Example:

Server:

function invertBool(bool)
return not bool
end

func.OnServerInvoke = invertBool

Client:

local newBool = func:InvokeServer(true)
print(newBool)

Hopefully this helps,
You can pm me if you have any questions.


- Ace
Report Abuse
MPaarker is not online. MPaarker
Joined: 29 Jun 2015
Total Posts: 10
01 Aug 2015 08:19 PM
Thank you. I also said that I was using a Data Store inside of a regular script.
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