Advertisement
martigpg3

CODE

Apr 16th, 2024
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.88 KB | None | 0 0
  1. local timerT = script.Parent.Parent.timer;
  2. local time = 1;
  3. local starterTime = time
  4. local jobs = 0
  5.  
  6. script.Parent.MouseButton1Click:Connect(function()
  7.     script.Parent.Interactable = false
  8.     while time > 0 do
  9.         time -= 1
  10.         timerT.Text = time
  11.         print(time)
  12.         wait(1)
  13.     end
  14.     jobs =  jobs + 1
  15.     time = starterTime
  16.     timerT.Text = time
  17.     script.Parent.Interactable = true
  18.     print("jobs: "..jobs)  
  19.  
  20.     if jobs == 1 then
  21.         game.StarterGui.DoingJob.Job.jobs.job1.BackgroundColor3 = Color3.fromRGB(75, 255, 20)
  22.         print("done")
  23.     end
  24.    
  25.     if jobs == 2 then
  26.         game.StarterGui.DoingJob.Job.jobs.job2.BackgroundColor3 = Color3.fromRGB(75, 255, 20)
  27.     end
  28.  
  29.     if jobs == 3 then
  30.         game.StarterGui.DoingJob.Job.jobs.job3.BackgroundColor3 = Color3.fromRGB(75, 255, 20)
  31.     end
  32.  
  33.     if jobs == 4 then
  34.         game.StarterGui.DoingJob.Job.jobs.job4.BackgroundColor3 = Color3.fromRGB(75, 255, 20)
  35.     end
  36.    
  37. end)
  38.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement