Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to make an area that only players can access?

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!

1 comment

0

Check the dev forums.

1 answer

✓ Accepted answer

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

1 comment

0

Ok thanks!

This discussion is preserved as it was. New answers, comments, and votes are closed.