Advertisement
Guitar1203

Untitled

May 16th, 2025 (edited)
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.39 KB | Source Code | 0 0
  1. local Players = game:GetService("Players")
  2. local Player = Players.LocalPlayer
  3. local PlayerGui = Player:WaitForChild("PlayerGui")
  4.  
  5. -- GUI สร้างหน้าต่าง Popup
  6. local popupGui = Instance.new("ScreenGui")
  7. popupGui.Name = "PlatformSelector"
  8. popupGui.ResetOnSpawn = false
  9. popupGui.Parent = PlayerGui
  10.  
  11. local frame = Instance.new("Frame")
  12. frame.Size = UDim2.new(0, 300, 0, 180)
  13. frame.Position = UDim2.new(0.5, -150, 0.5, -90)
  14. frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  15. frame.BorderSizePixel = 0
  16. frame.AnchorPoint = Vector2.new(0.5, 0.5)
  17. frame.Parent = popupGui
  18.  
  19. local title = Instance.new("TextLabel")
  20. title.Size = UDim2.new(1, 0, 0, 50)
  21. title.Position = UDim2.new(0, 0, 0, 0)
  22. title.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
  23. title.Text = "เลือกแพลตฟอร์มของคุณ"
  24. title.TextColor3 = Color3.new(1, 1, 1)
  25. title.Font = Enum.Font.SourceSansBold
  26. title.TextSize = 22
  27. title.Parent = frame
  28.  
  29. local pcButton = Instance.new("TextButton")
  30. pcButton.Size = UDim2.new(0.4, 0, 0, 40)
  31. pcButton.Position = UDim2.new(0.05, 0, 0.6, 0)
  32. pcButton.Text = "PC"
  33. pcButton.BackgroundColor3 = Color3.fromRGB(80, 130, 200)
  34. pcButton.TextColor3 = Color3.new(1, 1, 1)
  35. pcButton.Font = Enum.Font.SourceSans
  36. pcButton.TextSize = 20
  37. pcButton.Parent = frame
  38.  
  39. local mobileButton = Instance.new("TextButton")
  40. mobileButton.Size = UDim2.new(0.4, 0, 0, 40)
  41. mobileButton.Position = UDim2.new(0.55, 0, 0.6, 0)
  42. mobileButton.Text = "Mobile"
  43. mobileButton.BackgroundColor3 = Color3.fromRGB(90, 180, 90)
  44. mobileButton.TextColor3 = Color3.new(1, 1, 1)
  45. mobileButton.Font = Enum.Font.SourceSans
  46. mobileButton.TextSize = 20
  47. mobileButton.Parent = frame
  48.  
  49. -- โหลด PC GUI
  50. local function loadPC()
  51.     popupGui:Destroy()
  52.     local success, result = pcall(function()
  53.         return loadstring(game:HttpGet("https://pastebin.com/raw/vL9UTLDL"))()
  54.     end)
  55.     if not success then
  56.         warn("โหลด PC GUI ไม่สำเร็จ:", result)
  57.     end
  58. end
  59.  
  60. -- โหลด Mobile GUI
  61. local function loadMobile()
  62.     popupGui:Destroy()
  63.     local success, result = pcall(function()
  64.         return loadstring(game:HttpGet("https://pastebin.com/raw/LKWW89bD"))()
  65.     end)
  66.     if not success then
  67.         warn("โหลด Mobile GUI ไม่สำเร็จ:", result)
  68.     end
  69. end
  70.  
  71. -- เชื่อมปุ่ม
  72. pcButton.MouseButton1Click:Connect(loadPC)
  73. mobileButton.MouseButton1Click:Connect(loadMobile)
  74.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement