Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local DFTimer = Instance.new("ScreenGui")
- local DFTimer_2 = Instance.new("TextLabel")
- local Info = Instance.new("TextLabel")
- local DFSpawned = Instance.new("TextLabel")
- local No = Instance.new("TextButton")
- local Yes = Instance.new("TextButton")
- DFTimer.Name = "DFTimer"
- DFTimer.Parent = game:WaitForChild("CoreGui")
- DFTimer.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- DFTimer_2.Name = "DFTimer"
- DFTimer_2.Parent = DFTimer
- DFTimer_2.BackgroundColor3 = Color3.new(1, 1, 1)
- DFTimer_2.BackgroundTransparency = 1
- DFTimer_2.Position = UDim2.new(0.442708313, 0, 0.02715756, 0)
- DFTimer_2.Size = UDim2.new(0.114583336, 0, 0.0751689225, 0)
- DFTimer_2.Font = Enum.Font.Fantasy
- DFTimer_2.Text = "00 : 00"
- DFTimer_2.TextColor3 = Color3.new(1, 1, 1)
- DFTimer_2.TextScaled = true
- DFTimer_2.TextSize = 14
- DFTimer_2.TextStrokeTransparency = 0
- DFTimer_2.TextWrapped = true
- Info.Name = "Info"
- Info.Parent = DFTimer
- Info.BackgroundColor3 = Color3.new(1, 1, 1)
- Info.BackgroundTransparency = 1
- Info.Position = UDim2.new(0.435381532, 0, 0.102096133, 0)
- Info.Size = UDim2.new(0.129236907, 0, 0.0406173207, 0)
- Info.Font = Enum.Font.Fantasy
- Info.Text = "This timer calculates how much time it will take for the next DF to spawn."
- Info.TextColor3 = Color3.new(1, 1, 1)
- Info.TextScaled = true
- Info.TextSize = 14
- Info.TextStrokeTransparency = 0
- Info.TextWrapped = true
- DFSpawned.Name = "DFSpawned"
- DFSpawned.Parent = DFTimer
- DFSpawned.BackgroundColor3 = Color3.new(1, 1, 1)
- DFSpawned.BackgroundTransparency = 1
- DFSpawned.Position = UDim2.new(0.375485718, 0, 0.223717779, 0)
- DFSpawned.Size = UDim2.new(0.248459429, 0, 0.114327386, 0)
- DFSpawned.Visible = false
- DFSpawned.Font = Enum.Font.Fantasy
- DFSpawned.Text = "A Mera Mera no mi has spawned, do you wish to take it?"
- DFSpawned.TextColor3 = Color3.new(1, 1, 1)
- DFSpawned.TextScaled = true
- DFSpawned.TextSize = 14
- DFSpawned.TextStrokeTransparency = 0
- DFSpawned.TextWrapped = true
- No.Name = "No"
- No.Parent = DFSpawned
- No.BackgroundColor3 = Color3.new(1, 1, 1)
- No.BackgroundTransparency = 1
- No.Position = UDim2.new(0.241068855, 0, 1.1605103, 0)
- No.Size = UDim2.new(0.158695027, 0, 0.325655013, 0)
- No.Font = Enum.Font.Fantasy
- No.Text = "No!"
- No.TextColor3 = Color3.new(1, 0, 0)
- No.TextScaled = true
- No.TextSize = 14
- No.TextStrokeTransparency = 0
- No.TextWrapped = true
- Yes.Name = "Yes"
- Yes.Parent = DFSpawned
- Yes.BackgroundColor3 = Color3.new(1, 1, 1)
- Yes.BackgroundTransparency = 1
- Yes.Position = UDim2.new(0.601624012, 0, 1.1605103, 0)
- Yes.Size = UDim2.new(0.158695027, 0, 0.325655013, 0)
- Yes.Font = Enum.Font.Fantasy
- Yes.Text = "Yes!"
- Yes.TextColor3 = Color3.new(0.333333, 1, 0)
- Yes.TextScaled = true
- Yes.TextSize = 14
- Yes.TextStrokeTransparency = 0
- Yes.TextWrapped = true
- local plr = game.Players.LocalPlayer
- local TimeUntilNextDF
- local DF
- game.Workspace.ChildAdded:Connect(function(child)
- if child:IsA("Tool") and string.match(child.Name,"no mi") and not child:FindFirstChild("Checked") then
- TimeUntilNextDF = os.time() + (60*30)
- local checked = Instance.new("IntValue",child)
- checked.Name = "Checked"
- local DF = child
- DFSpawned.Text = "A "..child.Name.." has spawned, do you wish to take it?"
- DFSpawned.Visible = true
- end
- end)
- spawn(function()
- while wait(0.25) do
- local Time = os.time()
- if TimeUntilNextDF ~= nil and (TimeUntilNextDF - Time) >= 0 then
- local seconds = TimeUntilNextDF - Time
- DFTimer_2.Text = string.format("%02d:%02d",seconds/60%60, seconds%60)
- end
- end
- end)
- No.MouseButton1Click:Connect(function()
- DFSpawned.Visible = false
- end)
- Yes.MouseButton1Click:Connect(function()
- DFSpawned.Visible = false
- if plr.Character then
- for i,v in pairs(game.Workspace:GetChildren()) do
- if v:IsA("Tool") and string.find(v.Name,"no mi") then
- v.Handle.CFrame = plr.Character.HumanoidRootPart.CFrame
- end
- end
- end
- end)
Add Comment
Please, Sign In to add comment