Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local timerT = script.Parent.Parent.timer;
- local time = 1;
- local starterTime = time
- local jobs = 0
- script.Parent.MouseButton1Click:Connect(function()
- script.Parent.Interactable = false
- while time > 0 do
- time -= 1
- timerT.Text = time
- print(time)
- wait(1)
- end
- jobs = jobs + 1
- time = starterTime
- timerT.Text = time
- script.Parent.Interactable = true
- print("jobs: "..jobs)
- if jobs == 1 then
- game.StarterGui.DoingJob.Job.jobs.job1.BackgroundColor3 = Color3.fromRGB(75, 255, 20)
- print("done")
- end
- if jobs == 2 then
- game.StarterGui.DoingJob.Job.jobs.job2.BackgroundColor3 = Color3.fromRGB(75, 255, 20)
- end
- if jobs == 3 then
- game.StarterGui.DoingJob.Job.jobs.job3.BackgroundColor3 = Color3.fromRGB(75, 255, 20)
- end
- if jobs == 4 then
- game.StarterGui.DoingJob.Job.jobs.job4.BackgroundColor3 = Color3.fromRGB(75, 255, 20)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement