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: How to make a Part that only collides with one other Part?

Previous Thread :: Next Thread 
cokePanda is not online. cokePanda
Joined: 30 Dec 2008
Total Posts: 1901
04 Apr 2015 09:14 AM
How would I make a Part which would only be Collideable with one brick, but not another?

So here's an example:

A Ball (Part1, unanchored) is rolling down a Wedge (Part2, anchored), but there's a Square (Part3, unanchored) in the way, but the Ball would not collide with Wedge (Part2), and roll down it, but wouldn't collide with the unanchored Square (Part3)


If I made it confusing, please ask questions
Report Abuse
cokePanda is not online. cokePanda
Joined: 30 Dec 2008
Total Posts: 1901
04 Apr 2015 09:29 AM
bump
Report Abuse
cokePanda is not online. cokePanda
Joined: 30 Dec 2008
Total Posts: 1901
04 Apr 2015 09:43 AM
bum
Report Abuse
FunkiAndrew is not online. FunkiAndrew
Joined: 01 Dec 2013
Total Posts: 2318
04 Apr 2015 09:44 AM
square.CanCollide = false?
Report Abuse
1ExplodingNoob1 is not online. 1ExplodingNoob1
Joined: 12 Dec 2010
Total Posts: 58
04 Apr 2015 10:02 AM
Check if the thing that touches the brick is the brick that you want.
Then set cancollide to false and wait a few seconds and turn it to true. DUHHH
Report Abuse
millymanks is not online. millymanks
Joined: 26 Jun 2014
Total Posts: 413
04 Apr 2015 10:03 AM
square.Touched:connect(function(hit)
if hit.Parent=Ball then
ball.CanCollide=false --or whatever brick you want to not collide
end
end)
Report Abuse
cokePanda is not online. cokePanda
Joined: 30 Dec 2008
Total Posts: 1901
04 Apr 2015 10:04 AM
What if the Part is unanchored? Then it will just fall.
Report Abuse
cokePanda is not online. cokePanda
Joined: 30 Dec 2008
Total Posts: 1901
04 Apr 2015 10:16 AM
And that is what I'm asking for, the part which needs to be not collideable is not anchored
Report Abuse
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
04 Apr 2015 11:05 AM
...

That's how you would do it.
Report Abuse
cokePanda is not online. cokePanda
Joined: 30 Dec 2008
Total Posts: 1901
04 Apr 2015 06:47 PM
It is not.

While Part1 is Unanchored, and Part2 runs into it, Part1 is made Cancollideable - then it will fall off the baseplate, and I don't want that.
Report Abuse
millymanks is not online. millymanks
Joined: 26 Jun 2014
Total Posts: 413
04 Apr 2015 08:07 PM
what are you trying to do?
Report Abuse
millymanks is not online. millymanks
Joined: 26 Jun 2014
Total Posts: 413
04 Apr 2015 08:08 PM
btw you made it way too confusing
Report Abuse
cokePanda is not online. cokePanda
Joined: 30 Dec 2008
Total Posts: 1901
04 Apr 2015 09:01 PM
Let's make it easier to understand.


I have a racetrack, where Players would race on with cars, but the cars would not collide with eachother (none of their parts, not even wheels) - how would I do that?

If I just made the car Cancollide = false, then the car would fall through the track.
Report Abuse
cokePanda is not online. cokePanda
Joined: 30 Dec 2008
Total Posts: 1901
04 Apr 2015 09:17 PM
bump
Report Abuse
morash is not online. morash
Joined: 22 May 2010
Total Posts: 5834
04 Apr 2015 10:00 PM
Rewrite the physics engine.
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
04 Apr 2015 10:08 PM
Use welds
Report Abuse
millymanks is not online. millymanks
Joined: 26 Jun 2014
Total Posts: 413
05 Apr 2015 02:55 PM
why dont you want them to collide? It's more fun when you crash into eachother.
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
05 Apr 2015 03:27 PM
Hmm...I wrote like two paragraphs how to do it but I realized it was a mistake.
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
05 Apr 2015 03:28 PM
just wasted 7 mins of typing for this thread
Report Abuse
Hibobb is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
05 Apr 2015 03:31 PM
Make cars float on the same relative Y axis position and just make all the cars non collidable.

Alpha release of my game. Send me any bugs you find with the gun. http://www.roblox.com/games/200667607/Sniper-Stuff-ALPHA
Report Abuse
xLink123 is not online. xLink123
Joined: 07 Aug 2014
Total Posts: 11158
05 Apr 2015 03:31 PM
I think you could just constantly check if the Y axis of primary part is on for example 1
Report Abuse
cokePanda is not online. cokePanda
Joined: 30 Dec 2008
Total Posts: 1901
05 Apr 2015 03:37 PM
I guess I found the deep end of ROBLOX Lua lol
Report Abuse
TexasOreo is not online. TexasOreo
Joined: 08 Apr 2014
Total Posts: 25
05 Apr 2015 03:39 PM
Set FE to true.

Get a car, and then make a fake clone of that where every part has CanCollide set to false, and anchor it. The fake car should be created server side, and when the player touches the seat part, fire a remote function/event that will destroy the fake car locally and spawn the real car locally and have the player sit in it. At this point, other players will see you sitting in the fake car, when you are really sitting in the real car. You will not be able to collide with them. :D

(Just a thought, I have no idea if anything would prevent it)
Report Abuse
cokePanda is not online. cokePanda
Joined: 30 Dec 2008
Total Posts: 1901
05 Apr 2015 03:52 PM
There really isn't anything deeper to the Cancollide property, ROBLOX also doesn't support "virtual worlds" where you could jump from one to another (in the same server)...

Cars would have a copy in all worlds, but the person would be in a different world to everyone else while driving it - So cars of everyone would appear in all worlds, but would not collide - If you know what I mean...
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
05 Apr 2015 03:55 PM
I guess there is no other way. Unless stravant or some legendary scripter posts something.
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