Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local GetSecretCode = ReplicatedStorage:WaitForChild("GetSecretCode")
- -- =====================================================
- -- НАСТРОЙКИ
- -- =====================================================
- local secretPart =
- workspace:WaitForChild("SecretPart")
- local surfaceGui =
- secretPart:WaitForChild("SurfaceGui")
- local textLabel =
- surfaceGui:WaitForChild("TextLabel")
- -- =====================================================
- -- ПОЛУЧАЕМ ИНДИВИДУАЛЬНЫЙ КОД
- -- =====================================================
- local success, secretCode = pcall(function()
- return GetSecretCode:InvokeServer()
- end)
- -- =====================================================
- -- ПОКАЗЫВАЕМ КОД
- -- =====================================================
- if success and secretCode then
- textLabel.Text = secretCode
- print(
- "Мой индивидуальный код:",
- secretCode
- )
- else
- textLabel.Text = "ERROR"
- warn(
- "Не удалось получить секретный код"
- )
- end
Advertisement
Add Comment
Please, Sign In to add comment