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
 

Re: How do you do this?

Previous Thread :: Next Thread 
Bylocks is not online. Bylocks
Joined: 27 Mar 2012
Total Posts: 773
08 May 2017 08:04 PM
So I have a model in workspace, and is only in the player, and not the server.

I want to clone the model into server with the same CFrame values.

How do I transfer CFrame Values between the player and server?
Report Abuse
opplo is online. opplo
Joined: 09 Dec 2008
Total Posts: 5320
08 May 2017 08:06 PM
RemoteEvents
Report Abuse
Bylocks is not online. Bylocks
Joined: 27 Mar 2012
Total Posts: 773
08 May 2017 08:08 PM
yes but when you say in the server script to get the model CFrame it cant get it because its on the player and not the server.
Report Abuse
T0XZ is online. T0XZ
Joined: 22 Sep 2012
Total Posts: 260
08 May 2017 08:19 PM
use replicated storage, both server and client can view and edit that area.


Report Abuse
opplo is online. opplo
Joined: 09 Dec 2008
Total Posts: 5320
08 May 2017 08:22 PM
You use a local script to view the model CFrame, you fire remote event with the CFrame as an argument and retrieve that in a server script. The server now has the CFrame.
Report Abuse
Bylocks is not online. Bylocks
Joined: 27 Mar 2012
Total Posts: 773
08 May 2017 09:01 PM
using _G. ?
Report Abuse
opplo is online. opplo
Joined: 09 Dec 2008
Total Posts: 5320
08 May 2017 09:04 PM
No.

Look at remote events and functions on the Roblox Wiki. It allows communication between client and server.
Report Abuse
Bylocks is not online. Bylocks
Joined: 27 Mar 2012
Total Posts: 773
08 May 2017 09:05 PM
Ik how to use it but in :FireServer() in the parenthesis do i put my argument
Report Abuse
Bylocks is not online. Bylocks
Joined: 27 Mar 2012
Total Posts: 773
08 May 2017 09:18 PM
^
Report Abuse
opplo is online. opplo
Joined: 09 Dec 2008
Total Posts: 5320
08 May 2017 09:27 PM
Yes.
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