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: CanCollide = false on All meshes [Help?]

Previous Thread :: Next Thread 
Kasumo is not online. Kasumo
Joined: 22 Mar 2013
Total Posts: 2467
31 Jul 2013 05:05 PM
--I want all of the mesh bricks' cancollide to be false. Help?

local player = game.Players
function nocollide(meshes)
for _,v in pairs(meshes:GetChildren()) do
if v:IsA("Mesh") or v:IsA("SpecialMesh") or v:IsA("CylinderMesh") and v.Parent = ("BasePart") then
v.CanCollide = false
end
nocollide(v)
end
end
nocollide(game.Workspace)
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
31 Jul 2013 05:06 PM
Parts have CanCollide, not Meshes.
Report Abuse
icegroudon is not online. icegroudon
Joined: 08 Oct 2011
Total Posts: 2924
31 Jul 2013 05:07 PM
Meshes are useless graphics objects that change how a brick looks. And This would require mesh-on-mesh collisions witch have'nt been created yet.
Report Abuse
Kasumo is not online. Kasumo
Joined: 22 Mar 2013
Total Posts: 2467
31 Jul 2013 05:09 PM
Ok umm, obviously no one understands my point, I meant bricks that have meshes inside of them.
Report Abuse
icegroudon is not online. icegroudon
Joined: 08 Oct 2011
Total Posts: 2924
31 Jul 2013 05:13 PM
Youd have to make invisible bricks: CanCollide is not a vaild member of mesh.
Report Abuse
TheAwesomenessDude is not online. TheAwesomenessDude
Joined: 17 Jul 2011
Total Posts: 11602
31 Jul 2013 05:15 PM
'Meshes are useless graphics objects'

They are not at all useless. Although they would be A LOT more useful if we could make our own.
Report Abuse
laughablehaha is not online. laughablehaha
Joined: 19 Apr 2012
Total Posts: 2495
31 Jul 2013 05:36 PM
You could possibly surround the mesh with invisible walls but if it isn't supposed to be anchored....

I cannot help you.
You can't do can - collide on the mesh
Report Abuse
Kasumo is not online. Kasumo
Joined: 22 Mar 2013
Total Posts: 2467
31 Jul 2013 05:52 PM
Hmm, it seems still nobody understands let me rephrase this. ALL BRICKS that have a MESH inside of them should be false with CanCollide.
Report Abuse
icegroudon is not online. icegroudon
Joined: 08 Oct 2011
Total Posts: 2924
31 Jul 2013 06:20 PM
By Useless i meant they do nothing,not you cant do anything with them.
Report Abuse
Kasumo is not online. Kasumo
Joined: 22 Mar 2013
Total Posts: 2467
31 Jul 2013 06:27 PM
Ok, obviously no one can help.

█▀▀ █▀▀█ █▀▀█ █░░█ █▀▄▀█  
█▀▀ █░░█ █▄▄▀ █░░█ █░▀░█  
▀░░ ▀▀▀▀ ▀░▀▀ ░▀▀▀ ▀░░░▀  

█▀▀ █░░ █▀▀█ █▀▀ █▀▀ █▀▀▄
█░░ █░░ █░░█ ▀▀█ █▀▀ █░░█
▀▀▀ ▀▀▀ ▀▀▀▀ ▀▀▀ ▀▀▀ ▀▀▀░
Report Abuse
WishNite is not online. WishNite
Joined: 11 Feb 2009
Total Posts: 15828
31 Jul 2013 06:32 PM
function noncollide(model)
for i,v in ipairs(model:GetChildren()) do
if v:IsA("Part") then
for _,mesh in ipairs(v:GetChildren())
if mesh:IsA("Mesh") then
v.CanCollide = true
end
end
end
else
noncollide(v)
end
end

Report Abuse
icegroudon is not online. icegroudon
Joined: 08 Oct 2011
Total Posts: 2924
04 Aug 2013 02:23 PM
Imma *Bump* This for no reason. :P
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