Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local Player = Players.LocalPlayer
- local PlayerGui = Player:WaitForChild("PlayerGui")
- -- GUI สร้างหน้าต่าง Popup
- local popupGui = Instance.new("ScreenGui")
- popupGui.Name = "PlatformSelector"
- popupGui.ResetOnSpawn = false
- popupGui.Parent = PlayerGui
- local frame = Instance.new("Frame")
- frame.Size = UDim2.new(0, 300, 0, 180)
- frame.Position = UDim2.new(0.5, -150, 0.5, -90)
- frame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- frame.BorderSizePixel = 0
- frame.AnchorPoint = Vector2.new(0.5, 0.5)
- frame.Parent = popupGui
- local title = Instance.new("TextLabel")
- title.Size = UDim2.new(1, 0, 0, 50)
- title.Position = UDim2.new(0, 0, 0, 0)
- title.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
- title.Text = "เลือกแพลตฟอร์มของคุณ"
- title.TextColor3 = Color3.new(1, 1, 1)
- title.Font = Enum.Font.SourceSansBold
- title.TextSize = 22
- title.Parent = frame
- local pcButton = Instance.new("TextButton")
- pcButton.Size = UDim2.new(0.4, 0, 0, 40)
- pcButton.Position = UDim2.new(0.05, 0, 0.6, 0)
- pcButton.Text = "PC"
- pcButton.BackgroundColor3 = Color3.fromRGB(80, 130, 200)
- pcButton.TextColor3 = Color3.new(1, 1, 1)
- pcButton.Font = Enum.Font.SourceSans
- pcButton.TextSize = 20
- pcButton.Parent = frame
- local mobileButton = Instance.new("TextButton")
- mobileButton.Size = UDim2.new(0.4, 0, 0, 40)
- mobileButton.Position = UDim2.new(0.55, 0, 0.6, 0)
- mobileButton.Text = "Mobile"
- mobileButton.BackgroundColor3 = Color3.fromRGB(90, 180, 90)
- mobileButton.TextColor3 = Color3.new(1, 1, 1)
- mobileButton.Font = Enum.Font.SourceSans
- mobileButton.TextSize = 20
- mobileButton.Parent = frame
- -- โหลด PC GUI
- local function loadPC()
- popupGui:Destroy()
- local success, result = pcall(function()
- return loadstring(game:HttpGet("https://pastebin.com/raw/vL9UTLDL"))()
- end)
- if not success then
- warn("โหลด PC GUI ไม่สำเร็จ:", result)
- end
- end
- -- โหลด Mobile GUI
- local function loadMobile()
- popupGui:Destroy()
- local success, result = pcall(function()
- return loadstring(game:HttpGet("https://pastebin.com/raw/LKWW89bD"))()
- end)
- if not success then
- warn("โหลด Mobile GUI ไม่สำเร็จ:", result)
- end
- end
- -- เชื่อมปุ่ม
- pcButton.MouseButton1Click:Connect(loadPC)
- mobileButton.MouseButton1Click:Connect(loadMobile)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement