|
| 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
|
  |
| 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 |
|
|
|
| 22 Nov 2016 10:01 PM |
| Hopefully I don't have to do anything hacky with FilteringEnabled |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 22 Nov 2016 10:49 PM |
| I want them to walk through each other, but not walls. Will that be harder? |
|
|
| Report Abuse |
|
|
| |
|
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 |
|
|
|
| 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 |
|
|