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

How can I make a block that only allows certain players through?

Alright, so I'm making a roleplay game with special morphs and I want those said morphs to be only accesable by a certain player. I've watched tutorials but they're not what I'm looking for, what I'm trying to find is a script that ALWAYS lets the player through and kills other players, the tutorials have it so anyone can acess the place for the amount of seconds inserted which makes other players get the morph.

4 comments

0

When the part is touched by a character, get the player from the character and just check for the player's name or userid, if it is the correct id/name do nothing, if it is wrong set the player's health to 0.

1

Use collision groups

0

Not a request site but with filtering enabled you can just use the PlayerAdded and if there UserId or name is correct then it will remove the brick for them (IN A LOCALSCRIPT)

1 answer

Create a local script like this, and only copy it into players that are NOT allowed to pass through

local part = Instance.new("Part",workspace)
part.Size = Vector3.new(10,10,1)
--PartCustomization here

1 comment

0

What does this have to do with letting a player through a part? You're creating a part locally... so???

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