Advertisement
drakon-firestone

Koniec skrypty System

Jun 11th, 2023
843
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.54 KB | None | 0 0
  1. drzwi.Touched:Connect(function(part)
  2.     if part.Parent:FindFirstChild("Humanoid") and kierownik.Value == nil then
  3.         local gracz = game.Players:GetPlayerFromCharacter(part.Parent)
  4.         local posiada = false
  5.         for i, element in pairs(game.Workspace:GetDescendants()) do
  6.             if element.Name == "System" then
  7.                 if element.Kierownik.Value == gracz then
  8.                     posiada = true
  9.                     print("Posiada")
  10.                 end
  11.             end
  12.         end
  13.         if not posiada then
  14.             kierownik.Value = game.Players:GetPlayerFromCharacter(part.Parent)
  15.             nowyTycoon(gracz)
  16.         end
  17.     end
  18. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement