Stogee
|
  |
| Joined: 13 Mar 2016 |
| Total Posts: 24 |
|
|
| 09 Apr 2016 08:52 PM |
I am hoping one of you experts can help, When player creates a part: myPart = Instance.new("Part", game.Workspace)
How do I set ownership of that part only to that player who spawned that part so others cannot touch it?
Thank you, I'm hoping someone with expert scripting ability can help here. |
|
|
| Report Abuse |
|
|
|
| 09 Apr 2016 08:54 PM |
Setting ownership means that its physics will be handled by the client.
Making it so others can't touch it would be editing something client-sided only (FE).
Can you elaborate on what you're asking? |
|
|
| Report Abuse |
|
|
Stogee
|
  |
| Joined: 13 Mar 2016 |
| Total Posts: 24 |
|
|
| 09 Apr 2016 09:03 PM |
| I have created a game, my player can go to a shop, purchase a 1 x 8 block blueprint, when he clicks when it's equipped it places a 1 x 8 block on the ground and then he is able to switch to a tool to move it and rotate it wherever he wants. However, player 2 can come along and move that part also. I want to prevent that with a check. I wanted to add a ObjectValue equal to the players Userid that created then compare if the player who is trying to pick it up's Userid is equal to that of the ObjectValue. |
|
|
| Report Abuse |
|
|
|
| 09 Apr 2016 09:29 PM |
If FE is disabled use a localscript and put the part in workspace.CurrentCamera. If FE is enabled this should still work but isn't necessary.
|
|
|
| Report Abuse |
|
|