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
 

Pass a brick through a function with FE

Previous Thread :: Next Thread 
BusyCityGuy is not online. BusyCityGuy
Joined: 17 Aug 2012
Total Posts: 2144
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
Flux_Capacitor is not online. Flux_Capacitor
Joined: 07 Apr 2008
Total Posts: 45720
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
BusyCityGuy is not online. BusyCityGuy
Joined: 17 Aug 2012
Total Posts: 2144
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
BusyCityGuy is not online. BusyCityGuy
Joined: 17 Aug 2012
Total Posts: 2144
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
FluxyHusky is not online. FluxyHusky
Joined: 22 Aug 2016
Total Posts: 111
25 Aug 2016 02:02 AM
Umm just use a module script dude. Dont use remote functions.
Report Abuse
2eggnog is not online. 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
BusyCityGuy is not online. BusyCityGuy
Joined: 17 Aug 2012
Total Posts: 2144
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
BusyCityGuy is not online. BusyCityGuy
Joined: 17 Aug 2012
Total Posts: 2144
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 is not online. 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
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
25 Aug 2016 02:26 AM
Modules work on clients OR server, they don't function as communication between those.
Report Abuse
Laedere is online. 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
BusyCityGuy is not online. BusyCityGuy
Joined: 17 Aug 2012
Total Posts: 2144
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
Milenveliki is not online. Milenveliki
Joined: 14 Aug 2013
Total Posts: 1097
25 Aug 2016 04:05 AM
' Make a Script "accept" a LocalScript's code '
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