Advertisement
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")
- 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
- local TimeUntilNextDF
- for i,v in pairs(game.Workspace:GetChildren()) do
- if v:IsA("Tool") and string.match(v.Name,"no mi") then
- local checked = Instance.new("IntValue",child)
- checked.Name = "Checked"
- end
- end
- 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*45)
- local checked = Instance.new("IntValue",child)
- checked.Name = "Checked"
- 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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement