Advertisement
Karap

ตัวอย่างระบบคีย์

Oct 15th, 2023
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
  2. local Window = OrionLib:MakeWindow({Name = "key hub", HidePremium = false, SaveConfig = true, ConfigFolder = "OrionTest"})
  3.  
  4.  
  5. getgenv().Key = "KaGa" -- คีย์ เปลี่ยนได้เลยต้องเป็น ข้อความเท่านั้น ใช้ตัวเลขไม่ได้เพราะผมเขีบนไว้เป็นข้อความ
  6. getgenv().Keyinput = "string" -- สงสัยไมต้องเป็น string? | ตอบเพราะว่า รหัสเป็นข้อความไม่ใช่เลขเลยใช้ string
  7.  
  8. function Checkkey() -- เช็คคีย์ ถ้าถูกจะรันสิ่งที่อยู่ในนี้
  9. if Key == Keyinput then
  10. game:GetService("Players").LocalPlayer:Kick("ข้อความที่อยากให้แสดงตอนโดนเตะ") -- นี่คือสคริปเตะตัวเอง
  11.  
  12. end
  13. end
  14.  
  15.  
  16. local Tab = Window:MakeTab({
  17. Name = "key",
  18. Icon = "rbxassetid://4483345998",
  19. PremiumOnly = false
  20. })
  21.  
  22.  
  23.  
  24. Tab:AddTextbox({
  25. Name = "key",
  26. Default = "",
  27. TextDisappear = true,
  28. Callback = function(Value)
  29. Keyinput = Value
  30. end
  31. })
  32.  
  33.  
  34. Tab:AddButton({
  35. Name = "Check",
  36. Callback = function()
  37. Checkkey()
  38. end
  39. })
  40.  
  41.  
  42. local Tab = Window:MakeTab({
  43. Name = "idk key",
  44. Icon = "rbxassetid://4483345998",
  45. PremiumOnly = false
  46. })
  47.  
  48. -- ฆ่า UI
  49. Tab:AddButton({
  50. Name = "kill ui",
  51. Callback = function()
  52. OrionLib:Destroy()
  53. end
  54. })
  55. OrionLib:Init()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement