I am making a city game, I am currently working on the neighborhood, can you help me make a script where you are able to buy the house?
Here is the money script, I just need help with spending money on a house. Please help!
function onPlayerEntered(newPlayer) local stats = Instance.new("IntValue") stats.Name = "leaderstats" local c = Instance.new("IntValue") c.Name = "Money" c.Value = 1000 c.Parent = stats stats.Parent = newPlayer newPlayer.Changed:connect(function (property) end) end
game.Players.ChildAdded:connect(onPlayerEntered)
Help me on the spending money script please.
