Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local player = Players.LocalPlayer
- local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
- gui.Name = "KeyAccessGUI"
- -- ✅ Key ที่ต้องกรอกให้ถูก
- local correctKey = "idin"
- -- กล่อง UI Key Input
- local frame = Instance.new("Frame", gui)
- frame.Size = UDim2.new(0.3, 0, 0.2, 0)
- frame.Position = UDim2.new(0.35, 0, 0.4, 0)
- frame.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
- frame.BorderSizePixel = 0
- -- ช่องพิมพ์
- local textbox = Instance.new("TextBox", frame)
- textbox.Size = UDim2.new(0.8, 0, 0.4, 0)
- textbox.Position = UDim2.new(0.1, 0, 0.2, 0)
- textbox.PlaceholderText = "Enter key..."
- textbox.Text = ""
- textbox.TextScaled = true
- textbox.BackgroundColor3 = Color3.fromRGB(255,255,255)
- textbox.TextColor3 = Color3.new(0,0,0)
- -- ปุ่ม Confirm
- local button = Instance.new("TextButton", frame)
- button.Size = UDim2.new(0.5, 0, 0.3, 0)
- button.Position = UDim2.new(0.25, 0, 0.65, 0)
- button.Text = "Submit"
- button.BackgroundColor3 = Color3.fromRGB(0, 170, 255)
- button.TextScaled = true
- button.TextColor3 = Color3.new(1,1,1)
- -- 🧠 สคริปต์ที่คุณต้องการให้รันเมื่อผ่าน key
- local function runYourScript()
- -- 🔥 ตัวอย่าง: โหลด GUI หรือรันฟังก์ชันของคุณ
- -- ใส่ Script ของคุณตรงนี้ เช่น:
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
- gui.Name = "WarpMenu"
- local savedPoints = {}
- local currentIndex = 0
- -- ปุ่ม Save
- local saveBtn = Instance.new("TextButton", gui)
- saveBtn.Size = UDim2.new(0.12, 0, 0.06, 0)
- saveBtn.Position = UDim2.new(0.02, 0, 0.9, 0)
- saveBtn.Text = "💾 Save"
- saveBtn.BackgroundColor3 = Color3.fromRGB(60, 180, 60)
- saveBtn.TextColor3 = Color3.new(1, 1, 1)
- saveBtn.TextScaled = true
- -- ปุ่ม Previous
- local prevBtn = Instance.new("TextButton", gui)
- prevBtn.Size = UDim2.new(0.12, 0, 0.06, 0)
- prevBtn.Position = UDim2.new(0.16, 0, 0.9, 0)
- prevBtn.Text = "⬅️ Prev"
- prevBtn.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
- prevBtn.TextColor3 = Color3.new(1, 1, 1)
- prevBtn.TextScaled = true
- -- ปุ่ม Next
- local nextBtn = Instance.new("TextButton", gui)
- nextBtn.Size = UDim2.new(0.12, 0, 0.06, 0)
- nextBtn.Position = UDim2.new(0.3, 0, 0.9, 0)
- nextBtn.Text = "➡️ Next"
- nextBtn.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
- nextBtn.TextColor3 = Color3.new(1, 1, 1)
- nextBtn.TextScaled = true
- -- ปุ่ม Warp
- local warpBtn = Instance.new("TextButton", gui)
- warpBtn.Size = UDim2.new(0.12, 0, 0.06, 0)
- warpBtn.Position = UDim2.new(0.44, 0, 0.9, 0)
- warpBtn.Text = "🚀 Warp"
- warpBtn.BackgroundColor3 = Color3.fromRGB(0, 140, 255)
- warpBtn.TextColor3 = Color3.new(1, 1, 1)
- warpBtn.TextScaled = true
- -- Label ชื่อจุด
- local nameLabel = Instance.new("TextLabel", gui)
- nameLabel.Size = UDim2.new(0.3, 0, 0.05, 0)
- nameLabel.Position = UDim2.new(0.7, 0, 0.9, 0)
- nameLabel.Text = "No Point"
- nameLabel.BackgroundTransparency = 1
- nameLabel.TextColor3 = Color3.new(1, 1, 1)
- nameLabel.TextScaled = true
- -- ปุ่ม Save จุด
- saveBtn.MouseButton1Click:Connect(function()
- local root = character:FindFirstChild("HumanoidRootPart")
- if root then
- local pointName = "Point " .. tostring(#savedPoints + 1)
- table.insert(savedPoints, {Name = pointName, CFrame = root.CFrame})
- currentIndex = #savedPoints
- nameLabel.Text = pointName
- end
- end)
- -- เลื่อนซ้าย
- prevBtn.MouseButton1Click:Connect(function()
- if #savedPoints == 0 then return end
- currentIndex = math.max(1, currentIndex - 1)
- nameLabel.Text = savedPoints[currentIndex].Name
- end)
- -- เลื่อนขวา
- nextBtn.MouseButton1Click:Connect(function()
- if #savedPoints == 0 then return end
- currentIndex = math.min(#savedPoints, currentIndex + 1)
- nameLabel.Text = savedPoints[currentIndex].Name
- end)
- -- วาร์ป
- warpBtn.MouseButton1Click:Connect(function()
- if savedPoints[currentIndex] then
- local root = character:FindFirstChild("HumanoidRootPart")
- if root then
- root.CFrame = savedPoints[currentIndex].CFrame + Vector3.new(0, 3, 0)
- end
- end
- end)
- local function callback(Text)
- end
- local NotificationBindable = Instance.new("BindableFunction")
- NotificationBindable.OnInvoke = callback
- game.StarterGui:SetCore("SendNotification", {
- Title = "idinhackroblox";
- Text = "✅";
- Duration = "5";
- Callback = NotificationBindable;
- })
- end
- -- เมื่อกด Submit
- button.MouseButton1Click:Connect(function()
- if textbox.Text == correctKey then
- gui:Destroy()
- runYourScript()
- else
- textbox.Text = ""
- textbox.PlaceholderText = "❌ Incorrect Key"
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment