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: Why isn't this working?

Previous Thread :: Next Thread 
Eventive is not online. Eventive
Joined: 28 Jul 2011
Total Posts: 9827
16 May 2017 06:05 PM
local ps = game:GetService('PhysicsService')
local model = script.Parent
local G1 = model:WaitForChild("G1")
local G2 = model:WaitForChild("G2")

ps:CreateCollisionGroup("Group1")
ps:CreateCollisionGroup("Group2")


for i,v in pairs(G1:GetChildren()) do
ps:SetPartCollisionGroup(v, "Group1")
end
for i,v in pairs(G2:GetChildren()) do
ps:SetPartCollisionGroup(v, "Group2")
end

ps:CollisionGroupSetCollidable("Group1", "Group2", false)


ATR'er since 2013.
Report Abuse
Eventive is not online. Eventive
Joined: 28 Jul 2011
Total Posts: 9827
16 May 2017 06:05 PM
It's not changing the parts in the two models collision


ATR'er since 2013.
Report Abuse
BxdCat is not online. BxdCat
Joined: 20 Jun 2013
Total Posts: 374
16 May 2017 06:11 PM
What is the model name
Report Abuse
BxdCat is not online. BxdCat
Joined: 20 Jun 2013
Total Posts: 374
16 May 2017 06:12 PM
False... I don't think you want that. but idk I'm new at lua... been learning it for 1 month
Report Abuse
Eventive is not online. Eventive
Joined: 28 Jul 2011
Total Posts: 9827
16 May 2017 06:13 PM
alse needs to be there


ATR'er since 2013.
Report Abuse
Eventive is not online. Eventive
Joined: 28 Jul 2011
Total Posts: 9827
16 May 2017 06:14 PM
false*


ATR'er since 2013.
Report Abuse
Eventive is not online. Eventive
Joined: 28 Jul 2011
Total Posts: 9827
17 May 2017 02:05 PM
bump


ATR'er since 2013.
Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
17 May 2017 02:11 PM
Interesting, I've never seen that before, however after a little bit of research, it looks like CreateCollisionGroup() returns an ID for that new collision group.

Perhaps use
CollisionGroupsAreCollidable ( string name1, string name2 )
to determine if those groups are appropriately being set


Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
17 May 2017 02:12 PM
And, I don't really know why they use ids for the collision groups, maybe just do some cross checking and ensure the parts really do belong to those ids/groups?


Report Abuse
Eventive is not online. Eventive
Joined: 28 Jul 2011
Total Posts: 9827
20 May 2017 11:14 AM
everything in the script is in another script besides it doesnt do the i,v in pairs. it works just not the above one


ATR'er since 2013.
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