Untitled

 avatar
unknown
plain_text
a month ago
552 B
11
Indexable
drzwi.Touched:Connect(function(part)
	if part.Parent:FindFirstChild("Humanoid") and kierownik.Value == nil then
		local gracz = game.Players:GetPlayerFromCharacter(part.Parent)
		local posiada = false
		for i, element in pairs(game.Workspace:GetDescendants()) do
			if element.Name == "System" then
				if element.Kierownik.Value == gracz then
					posiada = true
					print("Posiada")
				end
			end
		end
		if not posiada then
			kierownik.Value = game.Players:GetPlayerFromCharacter(part.Parent)
			nowyTycoon(gracz)
		end
	end
end)
Editor is loading...
Leave a Comment