|
| 24 Jan 2017 02:36 PM |
I will soon switch the filtering enabled and I want to know if I can still change an IntValue's Value located inside the player's backpack using a local script.
Love breeds sacrifice... which in turn breeds hatred. Then you can know pain. |
|
|
| Report Abuse |
|
|
|
| 24 Jan 2017 02:45 PM |
You can place a RemoteEvent inside of the player and call the event in a LocalScript. Then use a script to change the value of the IntValue. I am going to provide you with an example really quickly
Want to be supported by developers in a positive atmosphere? Then join Studio BSD: https://www.roblox.com/My/Groups.aspx?gid=1013064 |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 24 Jan 2017 02:47 PM |
| You can but it won't replicate to the server. |
|
|
| Report Abuse |
|
|
|
| 24 Jan 2017 02:48 PM |
God dang I literally have to rescript everything then. ;-; And my code is messy...
Love breeds sacrifice... which in turn breeds hatred. Then you can know pain. |
|
|
| Report Abuse |
|
|
4ef
|
  |
| Joined: 27 May 2013 |
| Total Posts: 5633 |
|
|
| 24 Jan 2017 02:54 PM |
always have remotes in replicatedstorage its much easier
|
|
|
| Report Abuse |
|
|
|
| 24 Jan 2017 02:55 PM |
Sometimes it's okay to have them inside a tool or player, since they are also replicated.
Want to be supported by developers in a positive atmosphere? Then join Studio BSD: https://www.roblox.com/My/Groups.aspx?gid=1013064 |
|
|
| Report Abuse |
|
|
|
| 24 Jan 2017 02:55 PM |
^ Can i have them inside a folder in replicated storage? Because i have lots of stuff there...
Love breeds sacrifice... which in turn breeds hatred. Then you can know pain. |
|
|
| Report Abuse |
|
|
|
| 24 Jan 2017 02:56 PM |
Folders are amazing, it's sad to see that they aren't used as much in Roblox.
Want to be supported by developers in a positive atmosphere? Then join Studio BSD: https://www.roblox.com/My/Groups.aspx?gid=1013064 |
|
|
| Report Abuse |
|
|
4ef
|
  |
| Joined: 27 May 2013 |
| Total Posts: 5633 |
|
|
| 24 Jan 2017 02:58 PM |
i usually have them in a folder in repstorage but keep adding parents to it makes it take longer but they should load up in time no matter what youre doing with them and where ever they are but if you fire it when a player joins your gonna want the remote in repstorage
|
|
|
| Report Abuse |
|
|
|
| 24 Jan 2017 02:59 PM |
Oh, okay thank you then.
Love breeds sacrifice... which in turn breeds hatred. Then you can know pain. |
|
|
| Report Abuse |
|
|
|
| 24 Jan 2017 03:02 PM |
There might be a mistake with the code because I just typed it up now, but here is an example of a RemoteEvent in action.
pastebin. com/ j4PsmxeA
RemoteFunctions are awesome too because they can return a value and stop the code until a value is returned. RemoteEvents simply fire and carry on the next lines of code, they don't return.
The wiki provides good examples of RemoteEvents and RemoteFunction in action. They can be found in the tutorial zone.
Want to be supported by developers in a positive atmosphere? Then join Studio BSD: https://www.roblox.com/My/Groups.aspx?gid=1013064 |
|
|
| Report Abuse |
|
|
|
| 24 Jan 2017 03:07 PM |
^ It's pretty easy. Thank you very much btw. Also, I have one last question. Can we connect multiple scripts to the same remote event/function?
Love breeds sacrifice... which in turn breeds hatred. Then you can know pain. |
|
|
| Report Abuse |
|
|
|
| 24 Jan 2017 03:09 PM |
If we break it down, they are just events and functions. They can be called multiple times at the same time. Multiple Scripts and LocalScripts can use 'em! :)
Want to be supported by developers in a positive atmosphere? Then join Studio BSD: https://www.roblox.com/My/Groups.aspx?gid=1013064 |
|
|
| Report Abuse |
|
|
|
| 24 Jan 2017 03:11 PM |
Nice then! Thanks, that's all I needed to know.
Love breeds sacrifice... which in turn breeds hatred. Then you can know pain. |
|
|
| Report Abuse |
|
|
|
| 24 Jan 2017 03:12 PM |
I love these kind of threads :)
Want to be supported by developers in a positive atmosphere? Then join Studio BSD: https://www.roblox.com/My/Groups.aspx?gid=1013064 |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 24 Jan 2017 03:14 PM |
You bantering on when the question was already answered? Yeah, very nice.
|
|
|
| Report Abuse |
|
|