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
 

Can someone help me?

Previous Thread :: Next Thread 
badfitz67 is not online. badfitz67
Joined: 03 Jun 2010
Total Posts: 13165
22 Oct 2015 04:04 PM
I've made a custom build system kind of thing, it works fine except the fact I can't build directly onto a face, only ontop or next to it if it's on the ground.

I've been trying to ages to make it so it can build onto the faces of a part while retaining it's grid-locked movement.

I have honestly no idea how to do this or where to even start. Can someone provide some example code?

m.Move:connect(function()
if m.Target then
drag.Position = Vector3.new(math.floor(m.Hit.p.X/gridsize)*gridsize,m.Target.Position.Y,math.floor(m.Hit.p.Z/gridsize)*gridsize)
db = false
end
end)


Never too late to change a life, sir.
Report Abuse
badfitz67 is not online. badfitz67
Joined: 03 Jun 2010
Total Posts: 13165
22 Oct 2015 04:06 PM
also, onclick, the block is placed at the current position of drag

Never too late to change a life, sir.
Report Abuse
badfitz67 is not online. badfitz67
Joined: 03 Jun 2010
Total Posts: 13165
22 Oct 2015 04:20 PM


Never too late to change a life, sir.
Report Abuse
badfitz67 is not online. badfitz67
Joined: 03 Jun 2010
Total Posts: 13165
22 Oct 2015 04:58 PM
NB

Never too late to change a life, sir.
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