You may have a dream to make a buyable house in Roblox but the problem s you do not know how to make it. Well, actually you are able to find tutorials in the forms of videos or article like this. So, do you really want to know how to make a buyable house? We will describe it for you.
One of the video that you can watch as tutorial is a video of XxxLloyd061302xxX. The title of the video is Roblox: How to Make a Buyable House which was published on July 6th, 2018 and it has been watched more than 13K times. In the video, you can see that he has already own a house. He said that in your house, you need to have a door and you have to name it as “Door”. Then, he will try to add a part there and he makes it flat. Then, he place it in the front of the door. After that, you have to group it by hitting “Ctrl + G” and then add a Humanoid to the model.
Then, change its Health and Max Health to 0. Then, you can name the model as “Buy this house!”. After that, you have to put the model inside the “House” model and now add a “StringValue” to the House and name it as “Owner”. In this stage, you have to insert a “Script” to the ServerScriptService and you can name it as “Leaderboard”. Then, you can follow him what he inserts there. You can also find the script in the description section of the video.
After you follow him inserting script, then you will make a button to open and close the door. In the video, you can see that he has 2 buttons where the first one is for opening and the other one is for closing. Then, you can name the button for opening as “On” and the button for closing as “Off”. Now, you are able to insert a “ClickDetector” for each button. And you have to put the buttons into the House. After that, you have to insert a script to the “Head” from the “Buy this house!” model and then you can follow him again inserting the script. You can also find this script in the description section of the video.
After you insert the script, then you are able to insert a script for each button. So, you can follow him again in inserting the script. After that, you can paste this script to the other button because they are almost the same in scripts. Then, you will have to add some lines of script in the leaderboard script. It will be used when the owner left the game. So, other players can still buy the house. You can follow again what he enters in the script by watching the video.
Then, he copies one more house to test it if you can’t buy houses if you owned one already. He will test it will local server and one player. But, it is failed since he changed the “FallenPartsDestroyHeight” to 200. So, he changes it again and then it works. So, you can watch this video which is 18 minutes 34 seconds in duration until the end to see the clear steps.