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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Can someone point me to some research?

Previous Thread :: Next Thread 
Stogee is not online. Stogee
Joined: 13 Mar 2016
Total Posts: 24
04 Apr 2016 08:10 PM
Hello,
I am stuck in a game I'm developing and haven't been able to find anything as an example..

Basically I want my player to be able to pull a part from inventory (I can figure this out ok) And then be able to place the part on the ground and snap it into place kinda like you do when developing in studio.

Can someone point me to what I need to research in order to learn this?

Thank you!
Report Abuse
ExpensiveGaming is not online. ExpensiveGaming
Joined: 01 Apr 2013
Total Posts: 783
04 Apr 2016 08:12 PM
http://wiki.roblox.com/index.php?title=Property#Lag_in_the_Real_World
http://wiki.roblox.com/index.php?title=Vector3
http://wiki.roblox.com/index.php?title=Instance_(table)

#code print("Why did Adele cross the road?") wait(3) print("To say hello from the other side!")
Report Abuse
ExpensiveGaming is not online. ExpensiveGaming
Joined: 01 Apr 2013
Total Posts: 783
04 Apr 2016 08:13 PM
^

the '_(table)' is part of the link for the instance

#code print("Why did Adele cross the road?") wait(3) print("To say hello from the other side!")
Report Abuse
Stogee is not online. Stogee
Joined: 13 Mar 2016
Total Posts: 24
04 Apr 2016 08:16 PM
Thank you very much!
Report Abuse
ExpensiveGaming is not online. ExpensiveGaming
Joined: 01 Apr 2013
Total Posts: 783
04 Apr 2016 08:18 PM
np

#code print("Why did Adele cross the road?") wait(3) print("To say hello from the other side!")
Report Abuse
Stogee is not online. Stogee
Joined: 13 Mar 2016
Total Posts: 24
04 Apr 2016 08:20 PM
I can't believe how simple that was.
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
04 Apr 2016 08:31 PM
don't listen to anything expensive says:

you'd just need the mouses hit position


which is mouse.Hit.p

http://wiki.roblox.com/index.php?title=API:Class/Mouse/Hit

.p is Position


you'd set the parts position to that, and then floor the x y and z to snap it to only whole numbers. you can do it with 1/5ths or any other number too but that requires math and i'm too stupid for that

Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
04 Apr 2016 08:31 PM
l8 post is l8
Report Abuse
Stogee is not online. Stogee
Joined: 13 Mar 2016
Total Posts: 24
04 Apr 2016 08:38 PM
Nice, I will play with that also. Really good stuff. Thank you much.
Report Abuse
ExpensiveGaming is not online. ExpensiveGaming
Joined: 01 Apr 2013
Total Posts: 783
04 Apr 2016 09:08 PM
i swear this is the last thing i will get wrong today

#code print("Why did Adele cross the road?") wait(3) print("To say hello from the other side!")
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