Guest User

House Ownership

a guest
Apr 18th, 2020
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.53 KB | None | 0 0
  1. local Owners = {}
  2.  
  3. local House_1 = workspace.House1
  4. local Ownership = House_1.OwnerShip
  5. local Players = game:GetService("Players")
  6. local Player = Players.LocalPlayer
  7.  
  8. local Edit = false
  9. local Build = false
  10. local OwnerPerk = false
  11.  
  12. game.Players.PlayerAdded:Connect(function(Player)
  13.     table.insert(Owners, Player.Name)
  14.    
  15.     for i,v in pairs(Owners) do
  16.         if Ownership.Value == Player.Name then do
  17. local Edit = true
  18. local Build = true
  19. local OwnerPerk = true
  20.                 table.insert(Owners, Player.Name)
  21.                
  22.             end
  23.         end
  24.     end
  25. end)
Add Comment
Please, Sign In to add comment