Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ScreenGui = Instance.new("ScreenGui")
- local Open = Instance.new("TextButton")
- ScreenGui.Parent = game.CoreGui
- Open.Name = "Open"
- Open.Parent = ScreenGui
- Open.Draggable = false
- Open.Size = UDim2.new(0.05,0,0.114,0)
- Open.Position = UDim2.new(0.95, 0, 0.4, 0)
- Open.Text = "Open"
- Open.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Open.TextColor3 = Color3.fromRGB(255, 255, 255)
- Open.TextScaled = true
- Open.TextSize = 20
- Open.Visible = true
- Open.BackgroundTransparency = .5
- local id = 174743021
- Open.MouseButton1Click:connect(function() game.MarketplaceService:PromptProductPurchase(id)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement