Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make a door collidable only for the client?

Asked by 3 years ago

Hello there! I'm having massive struggles with my remote event client script. My idea for the remote event was to make a door only collidable for the client. That was because then my pathfinding ai would just pass through it while the client still collides with it.

Here's what I've tried.

game.ReplicatedStorage.collideDoors.OnClientEvent:Connect(function()
    workspace.Door.DoorFrame.CanCollide = true
end)

i'm also not going for collision groups because the ai will still find it as an obstacle.

Any ideas?

Answer this question