local original = game.ServerStorage.BasicFamilyHome
local clone = original:Clone()
if game.Players.LocalPlayer.leaderstats.Money.Value >= game.ReplicatedStorage.StarterHousePrice.Value then
script.Parent.ReplicatedStorage.BoughtStarterHouse.Value = 1
clone.Parent = workspace
print("Sucessfully loaded the starter house!")
else
script.Parent.ReplicatedStorage.BoughtStarterHouse.Value = 0
print("bruh no monei m8")
end
That is meant to clone a house in ServerStorage if the player's cash is 50 or above. I already defined how much it is by an intvalue in replicatedstorage. I'd like help, thx :)

1 comment
automatically or on a touched brick or a button gui