Advertisement
EmanueleBM

ScriptQueVaEnElHead

Jul 7th, 2019
4,446
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. local houseprice = 1000
  2.  
  3. script.Parent.Touched:connect(function(part)
  4. if part.Parent:FindFirstChild("Humanoid") then
  5. if game.Players:FindFirstChild(part.Parent.Name).leaderstats["Money"].Value >= houseprice then
  6. if not game.Workspace:FindFirstChild(part.Parent.Name.."'s House") then
  7. if script.Parent.Parent.Parent.Owner.Value == "" then
  8. game.Players:FindFirstChild(part.Parent.Name).leaderstats["Money"].Value = game.Players:FindFirstChild(part.Parent.Name).leaderstats["Money"].Value - houseprice
  9. script.Parent.Parent.Parent.Owner.Value = part.Parent.Name
  10. script.Parent.Parent.Name = part.Parent.Name.."'s House"
  11. script.Parent.Parent.Parent.Name = part.Parent.Name.."'s House"
  12. end
  13. end
  14. end
  15. end
  16. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement