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

How to create a variable door?

I would like to create a door so that if a player has a certain amount of a variable (cash) it will let them pass, otherwise stop them coming through. I need help with a script I can use to put this into a brick.

Thanks,

CallKnuss

1 comment

0

I think you're using the term 'variable' wrong. Do you mean leaderstat?

1 answer

You cant ask questions like this you need to break it up. It is overly general and it does not seem like you have done any research. Here are the steps.

  1. Learn about the touched event and learn how to use it
  2. Learn how to check if a player is touching
  3. Learn how to use canColide

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