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: Can I make NPCs walk through eachother?

Previous Thread :: Next Thread 
nighttimeninja314 is not online. nighttimeninja314
Joined: 04 Apr 2011
Total Posts: 4001
22 Nov 2016 09:57 PM
I want to make the NPCs to be able to walk through other NPCs and the player. Is this possible? If so, how can I accomplish this?
Report Abuse
caca50 is not online. caca50
Joined: 10 Jul 2011
Total Posts: 2037
22 Nov 2016 10:00 PM
I've seen a game do this. I think it was the elevator game. Forget the exact name.

But, yes, it is possible. How? Idk


Roblox.Forum.Scripters:1: bad argument #1 to 'intellect' (number expected, got nil)
Report Abuse
nighttimeninja314 is not online. nighttimeninja314
Joined: 04 Apr 2011
Total Posts: 4001
22 Nov 2016 10:01 PM
Hopefully I don't have to do anything hacky with FilteringEnabled
Report Abuse
alij12 is not online. alij12
Joined: 03 Oct 2011
Total Posts: 1204
22 Nov 2016 10:02 PM
Its very much possible.

The way that I know of is using CFrame to move the NPC (but this was way back before roblox implemented all the new cool toys)

idk the other ways, there certainly better and easier ways
Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
22 Nov 2016 10:12 PM
Something about changing all the names of the bodyparts and setting them to NonCanCollide briefly let them walk through other parts.

I forget the exact method.
It was hacky.


Report Abuse
pinballboy7 is not online. pinballboy7
Joined: 12 Mar 2009
Total Posts: 1485
22 Nov 2016 10:32 PM
You might have bind setting CanCollide to false to RunService's Heartbeat() or Stepped() functions to keep them uncollidable.
Report Abuse
nighttimeninja314 is not online. nighttimeninja314
Joined: 04 Apr 2011
Total Posts: 4001
22 Nov 2016 10:49 PM
I want them to walk through each other, but not walls. Will that be harder?
Report Abuse
nighttimeninja314 is not online. nighttimeninja314
Joined: 04 Apr 2011
Total Posts: 4001
23 Nov 2016 10:15 AM
Bump
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
23 Nov 2016 10:17 AM
I'm sure that you can set a small part at their feet which clips other parts, and then removing collisions from other parts will do it. They should automatically step over each other's small parts.
Report Abuse
nighttimeninja314 is not online. nighttimeninja314
Joined: 04 Apr 2011
Total Posts: 4001
23 Nov 2016 02:33 PM
I'm going to give that a try.

Anybody have any good ideas on how to make the entire character unCanCollideable?

This localScript didn't work:

wait(5)

local tb = {}

for k,v in pairs(workspace.Dummies:GetChildren()) do
for key, value in pairs(v:GetChildren()) do
if value:IsA("BasePart") then
table.insert(tb, value)
end
end
end


game:GetService("RunService"):BindToRenderStep("CharacterCollide"..math.random(), Enum.RenderPriority.Character.Value, function()

for k,v in pairs(tb) do
v.CanCollide = false
end

end)
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