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: Positioning parts on top of ground around player

Previous Thread :: Next Thread 
jggames223 is not online. jggames223
Joined: 22 Sep 2012
Total Posts: 50
09 Jan 2017 08:22 PM
I need to write a scripts that positions items a player drops on the top surface of surrounding parts, especially the part the player is standing on. For instance, if a player drops a gun, it will be positioned on the surface of the part the player is standing on to appear on the ground. Or, if a player drops a gun around a counter top or any other part, the item will position on top of the part.
Report Abuse
Swordlust is not online. Swordlust
Joined: 05 Dec 2016
Total Posts: 476
09 Jan 2017 08:45 PM
Why? Can't you just insert a bodyposition/gyro? And you could select a range around your characters torso from where you want the object/tool to be dropped.


Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
09 Jan 2017 09:03 PM
i mean if the player is standing, some simple math will do

leg.Position - leg.Size/2


Formerly xXTheRobotXx, add 13,349 posts
Report Abuse
Swordlust is not online. Swordlust
Joined: 05 Dec 2016
Total Posts: 476
09 Jan 2017 09:06 PM
But I don't get it, why does the tool have to be dropped and laid right where it was before it was dropped? Why not just select a random position around the surface/players range?


Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
09 Jan 2017 09:06 PM
"But I don't get it, why does the tool have to be dropped and laid right where it was before it was dropped? Why not just select a random position around the surface/players range?"

lol with my game i just unequip the tool on my npcs and let physics do the rest


Formerly xXTheRobotXx, add 13,349 posts
Report Abuse
Briicks is online. Briicks
Joined: 03 Apr 2015
Total Posts: 1796
09 Jan 2017 09:08 PM
Maybe it does not have to be, maybe it's just because that's what he/she wants.

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