Lineout
|
  |
| Joined: 06 Nov 2012 |
| Total Posts: 684 |
|
|
| 19 Jan 2015 09:40 AM |
I use a Remote Function to ask the server to clone a vehicle, and it does. But when I have a second player (player 2) join the server, player2 can not see player1's vehicle(and vise versa). I thought whenever I would use a Server Script to clone a vehicle, it would replicate on all clients. Why is this not working?
*I have FilteringEnabled on*
|
|
|
| Report Abuse |
|
|
|
| 19 Jan 2015 09:42 AM |
| Then you are cloning the car with a LocalScript, not the server. With FE, you need to clone and parent it server-side, since changes to the client do not replicate to the server and other clients. |
|
|
| Report Abuse |
|
|
lsp425
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 603 |
|
|
| 19 Jan 2015 09:43 AM |
| Was the vehicle made by the server? If it wasnt, it will be called as nil. Was it put originally in the server by the player? - unseen / unreplicated. Tell if there are any things that I should know. Tell where the script that wanted to clone it was, and any other things. |
|
|
| Report Abuse |
|
|
Lineout
|
  |
| Joined: 06 Nov 2012 |
| Total Posts: 684 |
|
|
| 19 Jan 2015 09:44 AM |
I do Clone and Parent it in the Server Script:
http://prntscr.com/5ueviv |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2015 09:44 AM |
If you're not returning anything, use a remoteevent.
⬡ |
|
|
| Report Abuse |
|
|
Lineout
|
  |
| Joined: 06 Nov 2012 |
| Total Posts: 684 |
|
|
| 19 Jan 2015 09:45 AM |
| The vehicle is in Replicated Storage, when a player joins, the server script clones that vehicle and parents it into workspace. |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2015 09:46 AM |
| The website is offline for the link you provided :C |
|
|
| Report Abuse |
|
|
Lineout
|
  |
| Joined: 06 Nov 2012 |
| Total Posts: 684 |
|
|
| 19 Jan 2015 09:49 AM |
| Here is what the link would have shown: http://pastebin.com/3BAUQTuc |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2015 09:51 AM |
What is done on the client after you return it? This is strange, I don't have any idea what is wrong yet. |
|
|
| Report Abuse |
|
|
Lineout
|
  |
| Joined: 06 Nov 2012 |
| Total Posts: 684 |
|
|
| 19 Jan 2015 09:52 AM |
| What happens on client: http://pastebin.com/YfTkdTJA |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2015 09:55 AM |
playersVehicle:FindFirstChild("values").owner.Value = player.Name
That doesn't change the server. But I still don't know what is wrong. Sorry. :( |
|
|
| Report Abuse |
|
|
Lineout
|
  |
| Joined: 06 Nov 2012 |
| Total Posts: 684 |
|
|
| 19 Jan 2015 09:57 AM |
| Yeah, complete mystery to me also. |
|
|
| Report Abuse |
|
|