|
| 13 Aug 2016 06:20 AM |
I need ideas of how i can make a script that gives the ability to place models on the player's house. I need this so i can implement the feature so players can place furniture they buy in their home. Just like on "work at a pizza place" or "The Plaza". Can someone kindly post a script, or maybe tell me what I should use to do this?
|
|
|
| Report Abuse |
|
|
JoshRBX
|
  |
| Joined: 19 May 2012 |
| Total Posts: 8778 |
|
|
| 13 Aug 2016 06:31 AM |
You could keep the available items in the ServerStorage.
For example:
money = 500 item1Cost = 499 ItemName = item1
function buyItem1Clicked() if item1Cost =< money then A = game.ServerStorage[itemName]:Clone() A.Parent = game.Workspace money = money - item1Cost print(itemName.." successfully purchased. Player now has "..money.."$ remaining.") end end
script.Parent.MouseButton1Click:connect(buyItem1Clicked) |
|
|
| Report Abuse |
|
|
|
| 13 Aug 2016 07:10 AM |
| I already have the buying script done. What i need is a script that places the furniture that the player buys. And the furniture would be placed wherever the player wants to, in his house. Thanks in advance. |
|
|
| Report Abuse |
|
|
| |
|