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 » Game Design
Home Search
 

Mouse

Previous Thread :: Next Thread 
NICCO890 is online. NICCO890
Joined: 04 Jun 2013
Total Posts: 339
21 Feb 2016 02:35 AM
How does one move a part with the player's mouse? For example, when you click and hold the part, you can drag the part as it follows the mouse until your release it.



Momma said I could be anything.
Report Abuse
championbuilder is online. championbuilder
Joined: 20 Jan 2009
Total Posts: 13544
21 Feb 2016 04:01 AM
You will need:

UserInputService
A loop (e.g something like "repeat wait() MovePart(Part ,Mouse) until MouseUp")

TIP: Place the part inside your character, so you don't need any raycasting to ignore the part you're moving, so it's easier to move it with the mouse.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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