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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|