ItzDiegoExploitzBoi

Untitled

Nov 17th, 2019
2,475
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.78 KB | None | 0 0
  1. local DFTimer = Instance.new("ScreenGui")
  2. local DFTimer_2 = Instance.new("TextLabel")
  3. local Info = Instance.new("TextLabel")
  4. local DFSpawned = Instance.new("TextLabel")
  5. local No = Instance.new("TextButton")
  6. local Yes = Instance.new("TextButton")
  7.  
  8. DFTimer.Name = "DFTimer"
  9. DFTimer.Parent = game:WaitForChild("CoreGui")
  10. DFTimer.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  11.  
  12. DFTimer_2.Name = "DFTimer"
  13. DFTimer_2.Parent = DFTimer
  14. DFTimer_2.BackgroundColor3 = Color3.new(1, 1, 1)
  15. DFTimer_2.BackgroundTransparency = 1
  16. DFTimer_2.Position = UDim2.new(0.442708313, 0, 0.02715756, 0)
  17. DFTimer_2.Size = UDim2.new(0.114583336, 0, 0.0751689225, 0)
  18. DFTimer_2.Font = Enum.Font.Fantasy
  19. DFTimer_2.Text = "00 : 00"
  20. DFTimer_2.TextColor3 = Color3.new(1, 1, 1)
  21. DFTimer_2.TextScaled = true
  22. DFTimer_2.TextSize = 14
  23. DFTimer_2.TextStrokeTransparency = 0
  24. DFTimer_2.TextWrapped = true
  25.  
  26. Info.Name = "Info"
  27. Info.Parent = DFTimer
  28. Info.BackgroundColor3 = Color3.new(1, 1, 1)
  29. Info.BackgroundTransparency = 1
  30. Info.Position = UDim2.new(0.435381532, 0, 0.102096133, 0)
  31. Info.Size = UDim2.new(0.129236907, 0, 0.0406173207, 0)
  32. Info.Font = Enum.Font.Fantasy
  33. Info.Text = "This timer calculates how much time it will take for the next DF to spawn."
  34. Info.TextColor3 = Color3.new(1, 1, 1)
  35. Info.TextScaled = true
  36. Info.TextSize = 14
  37. Info.TextStrokeTransparency = 0
  38. Info.TextWrapped = true
  39.  
  40. DFSpawned.Name = "DFSpawned"
  41. DFSpawned.Parent = DFTimer
  42. DFSpawned.BackgroundColor3 = Color3.new(1, 1, 1)
  43. DFSpawned.BackgroundTransparency = 1
  44. DFSpawned.Position = UDim2.new(0.375485718, 0, 0.223717779, 0)
  45. DFSpawned.Size = UDim2.new(0.248459429, 0, 0.114327386, 0)
  46. DFSpawned.Visible = false
  47. DFSpawned.Font = Enum.Font.Fantasy
  48. DFSpawned.Text = "A Mera Mera no mi has spawned, do you wish to take it?"
  49. DFSpawned.TextColor3 = Color3.new(1, 1, 1)
  50. DFSpawned.TextScaled = true
  51. DFSpawned.TextSize = 14
  52. DFSpawned.TextStrokeTransparency = 0
  53. DFSpawned.TextWrapped = true
  54.  
  55. No.Name = "No"
  56. No.Parent = DFSpawned
  57. No.BackgroundColor3 = Color3.new(1, 1, 1)
  58. No.BackgroundTransparency = 1
  59. No.Position = UDim2.new(0.241068855, 0, 1.1605103, 0)
  60. No.Size = UDim2.new(0.158695027, 0, 0.325655013, 0)
  61. No.Font = Enum.Font.Fantasy
  62. No.Text = "No!"
  63. No.TextColor3 = Color3.new(1, 0, 0)
  64. No.TextScaled = true
  65. No.TextSize = 14
  66. No.TextStrokeTransparency = 0
  67. No.TextWrapped = true
  68.  
  69. Yes.Name = "Yes"
  70. Yes.Parent = DFSpawned
  71. Yes.BackgroundColor3 = Color3.new(1, 1, 1)
  72. Yes.BackgroundTransparency = 1
  73. Yes.Position = UDim2.new(0.601624012, 0, 1.1605103, 0)
  74. Yes.Size = UDim2.new(0.158695027, 0, 0.325655013, 0)
  75. Yes.Font = Enum.Font.Fantasy
  76. Yes.Text = "Yes!"
  77. Yes.TextColor3 = Color3.new(0.333333, 1, 0)
  78. Yes.TextScaled = true
  79. Yes.TextSize = 14
  80. Yes.TextStrokeTransparency = 0
  81. Yes.TextWrapped = true
  82.  
  83. local plr = game.Players.LocalPlayer
  84. local TimeUntilNextDF
  85. local DF
  86.  
  87. game.Workspace.ChildAdded:Connect(function(child)
  88. if child:IsA("Tool") and string.match(child.Name,"no mi") and not child:FindFirstChild("Checked") then
  89. TimeUntilNextDF = os.time() + (60*30)
  90. local checked = Instance.new("IntValue",child)
  91. checked.Name = "Checked"
  92. local DF = child
  93. DFSpawned.Text = "A "..child.Name.." has spawned, do you wish to take it?"
  94. DFSpawned.Visible = true
  95. end
  96. end)
  97.  
  98. spawn(function()
  99. while wait(0.25) do
  100. local Time = os.time()
  101. if TimeUntilNextDF ~= nil and (TimeUntilNextDF - Time) >= 0 then
  102. local seconds = TimeUntilNextDF - Time
  103. DFTimer_2.Text = string.format("%02d:%02d",seconds/60%60, seconds%60)
  104. end
  105. end
  106. end)
  107.  
  108. No.MouseButton1Click:Connect(function()
  109. DFSpawned.Visible = false
  110. end)
  111.  
  112. Yes.MouseButton1Click:Connect(function()
  113. DFSpawned.Visible = false
  114. if plr.Character then
  115. for i,v in pairs(game.Workspace:GetChildren()) do
  116. if v:IsA("Tool") and string.find(v.Name,"no mi") then
  117. v.Handle.CFrame = plr.Character.HumanoidRootPart.CFrame
  118. end
  119. end
  120. end
  121. end)
Add Comment
Please, Sign In to add comment