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

How to make an area that only players can access? [closed]

Asked by 3 years ago

I am working on a game that consists of a maze with a killer NPC inside it. I want to include safe rooms in the maze where keys etc. can be collected and also as a place to hide from the NPC.

How do i make a wall or block that only players can pass through so that the NPC cant follow them into the safe room?

I have seen posts about making parts that delete for the client but still stay on the server but how would i script this?

Thanks!

0
Check the dev forums. JesseSong 3916 — 3y

Closed as Not Constructive by JesseSong

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 3 years ago

Make a localscript located in StarterPlayer->StartedPlayerScript with:

local Part = game.Workspace.NoKillerZone -- Change that to the part you want to delete for the client

Part:Destroy()
0
Ok thanks! MOLFLINT 6 — 3y
Ad