Hello im having a trouble with making a room renting system

  1. I want to make a room renting system in the hotel building.

  2. The programmer i hired cant do the script right now so here i am, the GUI itself is done and programmed, but when a player steps on the room renting zone the GUI appears for everyone on the server + i havent finished the doors for each room (when you buy a room you gain an access to a door that what im having trouble with)

  3. I have tried looking at youtube tutorials but i didnt found anything related to that topic, same with devforum, if you saw someone with the same trouble or just saw a youtube video give a link to it in the comment section.

-HERE’S SOME SCREENSHOTS THAT MAY HELP YOU UNDERSTAND THE SITUATION-

Script for the room purchase:


they are all simillar only prices for the rooms are different.

The part you step on:
image
image
–When player steps on reception zone gui pops out, this is what this script for–
image

If you can please upload the door model thing and a solution to this:
image
Thank you.

Hi mate looking at the code ou have you are cloning a key to the players backpack if you have a script for each door that is specific to key it might work.

script.Parent.Touched:Connect(function(hit)
if hit.Parent.name == “101” then
script.Parent.TouchInterest:Destroy()
script.Parent.Unlock:Play()
wait(0.84)
**** put in here to make the door transperant on and off or switch on a proximityprompt for a short period etc… *****
end
end)

No i dont have a specific key to each door…

hey mate.

looking at the code you have you are cloning the tool and then give the tool a specific name depending upon which room they select. if the door only opens with this key that is all you need as far as i can tell as when they leave the game and the room become vacant it can be cloned again.