Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you script houses to be for sale? Buyable like in Life in Paradise. [closed]

Asked by 4 years ago

I want to make a town game and that requires me to put houses in but I want them to be buy-able. Like in Life in Paradise.

0
scriptinghelpers is not a request site. Dovydas1118 1495 — 4y

Closed as Not Constructive by TaxesArentAwesome, JesseSong, and Utter_Incompetence

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

2 answers

Log in to vote
0
Answered by 4 years ago

im not gonna give u a whole script but you need to have a way to know how much money the user has and then if they have enough money to buy the house then give them the house

Ad
Log in to vote
0
Answered by 4 years ago

It's quite a broad question, there are many ways you could go about this.

Depending on what datastores your game uses and what currency etc, I'd go about having a main script in serverscriptstorage holding the amount of houses, their prices etc.

You would then use remote functions & events to connect it to a house shop GUI that you could create to whatever complexity yo desire and have it display the houses, grab the prices etc.

Then upon purchase I'd give them some sort of door controls, and any other features your houses are equipped with.

Quite a broad question and you'd definitely be better off getting yourself started then coming back for help.