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: Model Dragger

Previous Thread :: Next Thread 
dansk is not online. dansk
Joined: 24 Dec 2008
Total Posts: 548
02 Oct 2015 04:24 AM
So I'm trying to make my own custom dragger for testing purposes. However, I am trying to drag entire models, not just bricks. Any recommendations?

Main problem is that I can't make it so that the model is placed on the walls. It only works well when mouse is pointed to the ground.
Report Abuse
dansk is not online. dansk
Joined: 24 Dec 2008
Total Posts: 548
02 Oct 2015 04:25 AM
So Basically when I'm dragging the model and pointing it to a wall/side of a brick, it will teleport to the top instead of on the side.
Report Abuse
zacqwerty is not online. zacqwerty
Joined: 27 Jul 2012
Total Posts: 6
02 Oct 2015 04:36 AM
Are u trying to make a dragging system for things like in Lumber tycoon 2?
Report Abuse
IllegallyBlind is not online. IllegallyBlind
Joined: 07 Nov 2010
Total Posts: 1691
02 Oct 2015 08:33 AM
raycasting + mouse.Target + mouse.Hit + model:SetPrimaryPartCFrame


i make u math.sqrt()
Report Abuse
dansk is not online. dansk
Joined: 24 Dec 2008
Total Posts: 548
02 Oct 2015 10:13 AM
I haven't ever played Lumber Tycoon but I am trying to make a model dragging system so that I can place pre made portraits on walls and set bricks on the floor and ceiling. And yeah I've tried setting the CFrame of the model with mouse.hit but I don't know the formula to position the model (which has more than 1 brick in it and a set PrimaryPart obviously) to where it will just stick to the walls or ceiling. I imagine you would have to use GetModelSize() or whatever its called but I just don't know how to.
Report Abuse
FlyNormal is not online. FlyNormal
Joined: 30 Sep 2015
Total Posts: 344
02 Oct 2015 10:17 AM
You want to place models in the wall's interior AKA the model going inside the wall, or just place it nearby or something?
Report Abuse
dansk is not online. dansk
Joined: 24 Dec 2008
Total Posts: 548
02 Oct 2015 10:24 AM
So basically I drag the model by pointing my mouse on the floor and it works fine. But when I point the model on the side of a brick, it goes on top of it instead of sticking to the side of the brick. I want to be able to place models on sides of bricks.
Report Abuse
FlyNormal is not online. FlyNormal
Joined: 30 Sep 2015
Total Posts: 344
02 Oct 2015 10:29 AM
I see. This will require some time to accomplish. I will help you once I get the time.
Report Abuse
Subcommittee is not online. Subcommittee
Joined: 28 Dec 2010
Total Posts: 9347
02 Oct 2015 10:29 AM
raycasting and setprimarypartcframe

DermonDarble is pretentious
Report Abuse
dansk is not online. dansk
Joined: 24 Dec 2008
Total Posts: 548
02 Oct 2015 11:46 AM
K thanks
Report Abuse
dansk is not online. dansk
Joined: 24 Dec 2008
Total Posts: 548
02 Oct 2015 11:47 AM
I really just don't know the formula for the placement lol
Report Abuse
dansk is not online. dansk
Joined: 24 Dec 2008
Total Posts: 548
02 Oct 2015 03:42 PM
Halp?
Report Abuse
dansk is not online. dansk
Joined: 24 Dec 2008
Total Posts: 548
04 Oct 2015 04:34 PM
Bump
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