Hasli4

Untitled

Aug 12th, 2026
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1.  
  2. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  3.  
  4. local GetSecretCode = ReplicatedStorage:WaitForChild("GetSecretCode")
  5.  
  6.  
  7. -- =====================================================
  8. -- НАСТРОЙКИ
  9. -- =====================================================
  10.  
  11. local secretPart =
  12. workspace:WaitForChild("SecretPart")
  13.  
  14. local surfaceGui =
  15. secretPart:WaitForChild("SurfaceGui")
  16.  
  17. local textLabel =
  18. surfaceGui:WaitForChild("TextLabel")
  19.  
  20.  
  21. -- =====================================================
  22. -- ПОЛУЧАЕМ ИНДИВИДУАЛЬНЫЙ КОД
  23. -- =====================================================
  24.  
  25. local success, secretCode = pcall(function()
  26.  
  27. return GetSecretCode:InvokeServer()
  28.  
  29. end)
  30.  
  31.  
  32. -- =====================================================
  33. -- ПОКАЗЫВАЕМ КОД
  34. -- =====================================================
  35.  
  36. if success and secretCode then
  37.  
  38. textLabel.Text = secretCode
  39.  
  40. print(
  41. "Мой индивидуальный код:",
  42. secretCode
  43. )
  44.  
  45. else
  46.  
  47. textLabel.Text = "ERROR"
  48.  
  49. warn(
  50. "Не удалось получить секретный код"
  51. )
  52.  
  53. end
  54.  
  55.  
Advertisement
Add Comment
Please, Sign In to add comment