|
| 25 Aug 2016 01:23 AM |
I'm doing a project to learn filtering enabled. What I want to happen is when the player creates a brick, it will invoke a server function and pass that brick through as an argument to the function. The server function clones the brick and parents it to the workspace.
Don't question why, this is just a learning step to do what I actually want to do with it. The trouble is that the brick passed as a paramenter shows up as nil on the server end. Is there a way to do this?
-The [Guy] |
|
|
| Report Abuse |
|
|
|
| 25 Aug 2016 01:24 AM |
| The simple answer: no, there is no way to do this. You create the part client-sided and thus it only exists on the client. However perhaps you can pass the information needed to create the part (like the transparency, brickcolor, etc.) and have the server create it. |
|
|
| Report Abuse |
|
|
|
| 25 Aug 2016 01:25 AM |
I thought of that too, but before I went ahead and did it I wanted to make sure there wasn't an easier way.
Thanks for the confirmation.
-The [Guy] |
|
|
| Report Abuse |
|
|
|
| 25 Aug 2016 02:01 AM |
Update, using the hacky way of passing all the parameters through, I got it to work now.
-The [Guy] |
|
|
| Report Abuse |
|
|
|
| 25 Aug 2016 02:02 AM |
| Umm just use a module script dude. Dont use remote functions. |
|
|
| Report Abuse |
|
|
2eggnog
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 1351 |
|
|
| 25 Aug 2016 02:19 AM |
"Umm just use a module script dude. Dont use remote functions."
what
|
|
|
| Report Abuse |
|
|
|
| 25 Aug 2016 02:19 AM |
I haven't learned module scripts nor do I know what they are for. What are they?
-The [Guy] |
|
|
| Report Abuse |
|
|
|
| 25 Aug 2016 02:20 AM |
Just looked it up on the wiki, but how would I make use of that in this case?
-The [Guy] |
|
|
| Report Abuse |
|
|
2eggnog
|
  |
| Joined: 08 Nov 2008 |
| Total Posts: 1351 |
|
|
| 25 Aug 2016 02:21 AM |
No, don't listen to him. They have nothing to do with this.
http://wiki.roblox.com/index.php?title=API:Class/ModuleScript
|
|
|
| Report Abuse |
|
|
|
| 25 Aug 2016 02:26 AM |
| Modules work on clients OR server, they don't function as communication between those. |
|
|
| Report Abuse |
|
|
Laedere
|
  |
| Joined: 17 Jun 2013 |
| Total Posts: 23601 |
|
|
| 25 Aug 2016 02:30 AM |
Don't listen to these guys, BusyCityGuy. What you're looking for is called "Tweening" http://wiki.roblox.com/index.php?title=Tweening
|
|
|
| Report Abuse |
|
|
|
| 25 Aug 2016 03:27 AM |
nah lol I think maybe I am looking for UDim2.
jk.
I've got what I need from the remote functions, ty lol. Excellent learning project, this is all starting to make sense now, and I like the security of it all!
-The [Guy] |
|
|
| Report Abuse |
|
|
|
| 25 Aug 2016 04:05 AM |
| ' Make a Script "accept" a LocalScript's code ' |
|
|
| Report Abuse |
|
|