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 » Scripting Helpers
Home Search
 

Re: How to detect when two parts are touching and animated humanoids

Previous Thread :: Next Thread 
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
25 Oct 2011 03:34 PM
So
1) I'm making my own 'Copy' tool, but I only want the user to be able to place the new part on top of another part. The touched event isn't working, so I'm guessing the only way to do this is with rays. Could someone help me out with that or perhaps provide another method?

2) Animated Humanoids. How hard is it to make animated NPCs?
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
25 Oct 2011 03:36 PM
"so I'm guessing the only way to do this is with rays."

wat
Report Abuse
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
25 Oct 2011 03:38 PM
Vector rays
http://wiki.roblox.com/index.php/Ray
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
25 Oct 2011 03:41 PM
It's not the only way, though.
Report Abuse
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
25 Oct 2011 03:43 PM
"Could someone help me out with that or perhaps provide another method?"
"or perhaps provide another method?"
...
"or perhaps provide another method?"

Basically I want to detect what parts a part is touching while it is stationary
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
25 Oct 2011 03:50 PM
"only way to do this" Wait, so you're cancelling out your first statement RIGHT after you write it?
Report Abuse
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
25 Oct 2011 03:53 PM
"so I'm guessing"
You're really going to try to argue about this? Why are you even on a "help" forum?
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
25 Oct 2011 03:57 PM
"so I'm guessing"
Boo.
Report Abuse
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
25 Oct 2011 04:05 PM
So, since it looks like nate890 isn't interested in helping, would someone else please tell me how I would go about doing this (with rays or any other method?)
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
25 Oct 2011 04:08 PM
"with rays or any other method?"

Oh, so rays aren't the only method to do this anymore.
Report Abuse
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
25 Oct 2011 04:16 PM
I'm honestly considering reporting your posts. They are completely irrelevant, not helpful, and almost blatant spam.

"I'm making my own 'Copy' tool, but I only want the user to be able to place the new part on top of another part. The touched event isn't working, so I'm [GUESSING] the only way to do this is with rays. Could someone help me out with that [OR PERHAPS PROVIDE ANOTHER METHOD]?"
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
25 Oct 2011 04:26 PM
"blatant"
"not helpful"
"irrelevant"

:o I must be a really good troll.
Report Abuse
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
25 Oct 2011 04:39 PM
So like I was saying, if anyone would like to help, please post. If you're just entering the thread, don't bother reading anything by 'nate890,' he's done nothing but play semantics and for some reason he thinks he can "troll," a skill which he obviously doesn't realize requires the cooperation of the person being trolled, which he doesn't have. You haven't gotten me angry or irritated at all, I'm just tired of you wasting space in a thread where I'm trying to get help.
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
25 Oct 2011 04:43 PM
"he obviously doesn't realize requires the cooperation of the person being trolled"

You obviously don't know what the internet term "Trolling" is.
Report Abuse
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
25 Oct 2011 04:55 PM
It's the use of insincere questions or statements to create a rise out of another user. Your questions were sincere; I've seen you in other threads asking verification on semantics. And you didn't get a rise out of me. Do YOU know what "Trolling" is?
Stop trying to act like you were trying to 'fool' me all along. You just don't want to admit that my semantics in the original post were completely clear and you either misinterpreted or misread it when you said "wut?" and assumed I stated rays were the only method of completing the task.
Report Abuse
1Ra is not online. 1Ra
Joined: 02 May 2010
Total Posts: 2400
25 Oct 2011 05:01 PM
could you get the clone variable and say for example
if mouse.hit~=nil and mouse.hit:findFirstChild("clonable")~=nil then
t = mouse.hit
x =t:Clone()
x.Parent = game.Workspace
x.Position = t.Position+x.Size.Y
end

do you mean somthing like that?
Report Abuse
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
25 Oct 2011 05:04 PM
Well it isn't exactly a clone tool. I'm just trying to have the user place a part in the world. The part's x and z size can vary, but it will always be on the surface of a ground object. There are different types of ground objects, however, so I need to be able to differentiate which one the placed part is on top of. (A magnitude will not work)
Report Abuse
1Ra is not online. 1Ra
Joined: 02 May 2010
Total Posts: 2400
25 Oct 2011 05:10 PM
sorta like a min-e c-ra-ft game?

then im pretty sure you need to use raycasting.

hit,pos = game.Workspace:findPartOnRay(Ray.new(PARTOBJECT.CFrame.p,(PARTOBJECT.CFrame.p-PARTOBJECT.CFrame.p+Vector3.new(0,10,0).unit*300)
)

if hit then
hit is the part on top, pos is were that part is
end


im not sure if this works, but its the jist of it.
Report Abuse
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
25 Oct 2011 05:11 PM
Nah, it's not like mc
Thanks for the code
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
25 Oct 2011 05:46 PM
umad
Report Abuse
Variniux is not online. Variniux
Joined: 22 Oct 2011
Total Posts: 201
25 Oct 2011 05:52 PM
Nate is my new troll idol because has just successfully made the original poster look like a buffoon contradicting himself.

My siggy... is bigger than yours.
Report Abuse
GeneralXtreme is not online. GeneralXtreme
Joined: 05 Oct 2009
Total Posts: 137
25 Oct 2011 05:54 PM
I like regions.
Report Abuse
GeneralXtreme is not online. GeneralXtreme
Joined: 05 Oct 2009
Total Posts: 137
25 Oct 2011 05:56 PM
http://wiki.roblox.com/index.php/Region3
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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