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
 

How to set ownership of a part?

Previous Thread :: Next Thread 
Stogee is not online. 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
DiamondBladee is not online. DiamondBladee
Joined: 24 Feb 2013
Total Posts: 3527
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 is not online. 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
ThoughtConduit is not online. ThoughtConduit
Joined: 30 Nov 2015
Total Posts: 536
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
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