So I have this job script that if you cleaned all of the footprints on the ground, which is controlled using a buttongui that, if you have the tool “broom” in your hand it allows you to clean. It worked where once you cleaned all the footprints, it gave you 8 dollars, all was good, and if you didnt clean them all, it would tell you to get back to work. The way you check in to get the 8 dollars is yet another surface click, that when clicked is sent to a client in the startergui, that sends a remote event to a server script, giving the gui to the player. Heres the part of the script that determines if the player has done the job or not.
–// Client
local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Camera = game.Workspace.CurrentCamera
local FindTool = Player.Backpack:FindFirstChild(“Broom”) or Character:FindFirstChild(“Broom”)
–// GUIs
–// Main
repeat wait()
Camera.CameraType = Enum.CameraType.Custom
until Camera.CameraType == Enum.CameraType.Custom
Camera.CameraType = Enum.CameraType.Custom
Character.UpperTorso.Anchored = true
script.Parent.Dialogue.Visible = true
script.Parent.Dialogue.CharText.Text = “H”
wait(0.05)
script.Parent.Dialogue.CharText.Text = “He”
wait(0.05)
script.Parent.Dialogue.CharText.Text = “Hel”
wait(0.05)
script.Parent.Dialogue.CharText.Text = “Hell”
wait(0.05)
script.Parent.Dialogue.CharText.Text = “Hello”
wait(0.05)
script.Parent.Dialogue.CharText.Text = “Hello!”
wait(0.05)
script.Parent.Dialogue.CharText.Text = “Hello! H”
wait(0.05)
script.Parent.Dialogue.CharText.Text = “Hello! Ho”
wait(0.05)
script.Parent.Dialogue.CharText.Text = “Hello! How”
wait(0.05)
script.Parent.Dialogue.CharText.Text = “Hello! How a”
wait(0.05)
script.Parent.Dialogue.CharText.Text = “Hello! How ar”
wait(0.05)
script.Parent.Dialogue.CharText.Text = “Hello! How are”
wait(0.05)
script.Parent.Dialogue.CharText.Text = “Hello! How are y”
wait(0.05)
script.Parent.Dialogue.CharText.Text = “Hello! How are yo”
wait(0.05)
script.Parent.Dialogue.CharText.Text = “Hello! How are you”
wait(0.05)
script.Parent.Dialogue.CharText.Text = “Hello! How are you?”
wait(0.05)
script.Parent.Dialogue.CharText.Text = “Hello! How are you? W”
wait(0.05)
script.Parent.Dialogue.CharText.Text = “Hello! How are you? Wh”
wait(0.05)
script.Parent.Dialogue.CharText.Text = “Hello! How are you? Wha”
wait(0.05)
script.Parent.Dialogue.CharText.Text = “Hello! How are you? What”
wait(0.05)
script.Parent.Dialogue.CharText.Text = “Hello! How are you? What w”
wait(0.05)
script.Parent.Dialogue.CharText.Text = “Hello! How are you? What wo”
wait(0.05)
script.Parent.Dialogue.CharText.Text = “Hello! How are you? What wou”
wait(0.05)
script.Parent.Dialogue.CharText.Text = “Hello! How are you? What woul”
wait(0.05)
script.Parent.Dialogue.CharText.Text = “Hello! How are you? What would”
wait(0.05)
script.Parent.Dialogue.CharText.Text = “Hello! How are you? What would y”
wait(0.05)
script.Parent.Dialogue.CharText.Text = “Hello! How are you? What would yo”
wait(0.05)
script.Parent.Dialogue.CharText.Text = “Hello! How are you? What would you”
wait(0.05)
script.Parent.Dialogue.CharText.Text = “Hello! How are you? What would you l”
wait(0.05)
script.Parent.Dialogue.CharText.Text = “Hello! How are you? What would you li”
wait(0.05)
script.Parent.Dialogue.CharText.Text = “Hello! How are you? What would you lik”
wait(0.05)
script.Parent.Dialogue.CharText.Text = “Hello! How are you? What would you like”
wait(0.05)
script.Parent.Dialogue.CharText.Text = “Hello! How are you? What would you like?”
wait(2)
if Player.Backpack:FindFirstChild(“Broom”) or Character:FindFirstChild(“Broom”) and game.Workspace:WaitForChild(“FootClean1”).Part2:FindFirstChild(“Decal”).Transparency == 0.9 and game.Workspace:WaitForChild(“FootClean2”).Part2:FindFirstChild(“Decal”).Transparency == 0.9 and game.Workspace:WaitForChild(“FootClean3”).Part2:FindFirstChild(“Decal”).Transparency == 0.9 then
script.Parent.Response1.Visible = true
script.Parent.Response2JobAdditionSucess.Visible = true
print(“FINISHED”)
else
if Player.Backpack:FindFirstChild(“Broom”) or Character:FindFirstChild(“Broom”) and game.Workspace:WaitForChild(“FootClean1”).Part2.Decal.Transparency == 0 and game.Workspace.FootClean2.Part2.Decal.Transparency == 0.9 and game.Workspace.FootClean3.Part2.Decal.Transparency == 0 then
script.Parent.Response1.Visible = true
script.Parent.Response2JobAddition.Visible = true
print(“Not Finished”)
else
if Player.Backpack:FindFirstChild(“Broom”) or Character:FindFirstChild(“Broom”) and game.Workspace:WaitForChild(“FootClean1”).Part2.Decal.Transparency == 0.9 and game.Workspace.FootClean2.Part2.Decal.Transparency == 0 and game.Workspace.FootClean3.Part2.Decal.Transparency == 0 then
script.Parent.Response1.Visible = true
script.Parent.Response2JobAddition.Visible = true
print(“Not Finished”)
else
if Player.Backpack:FindFirstChild(“Broom”) or Character:FindFirstChild(“Broom”) and game.Workspace:WaitForChild(“FootClean1”).Part2.Decal.Transparency == 0.9 and game.Workspace.FootClean2.Part2.Decal.Transparency == 0.9 and game.Workspace.FootClean3.Part2.Decal.Transparency == 0 then
script.Parent.Response1.Visible = true
script.Parent.Response2JobAddition.Visible = true
print(“Not Finished”)
else
if Player.Backpack:FindFirstChild(“Broom”) or Character:FindFirstChild(“Broom”) and game.Workspace:WaitForChild(“FootClean1”).Part2.Decal.Transparency == 0 and game.Workspace.FootClean2.Part2.Decal.Transparency == 0.9 and game.Workspace.FootClean3.Part2.Decal.Transparency == 0.9 then
script.Parent.Response1.Visible = true
script.Parent.Response2JobAddition.Visible = true
print(“Not Finished”)
else
if Player.Backpack:FindFirstChild(“Broom”) or Character:FindFirstChild(“Broom”) and game.Workspace:WaitForChild(“FootClean1”).Part2.Decal.Transparency == 0 and game.Workspace.FootClean2.Part2.Decal.Transparency == 0 and game.Workspace.FootClean3.Part2.Decal.Transparency == 0 then
script.Parent.Response1.Visible = true
script.Parent.Response2JobAddition.Visible = true
print(“Not Finished”)
else
if Player.Backpack:FindFirstChild(“Broom”) or Character:FindFirstChild(“Broom”) and game.Workspace:WaitForChild(“FootClean1”).Part2.Decal.Transparency == 0 and game.Workspace.FootClean2.Part2.Decal.Transparency == 0 and game.Workspace.FootClean3.Part2.Decal.Transparency == 0.9 then
script.Parent.Response1.Visible = true
script.Parent.Response2JobAddition.Visible = true
print(“Not Finished”)
else
if not Player.Backpack:FindFirstChild(“Broom”) or Character:FindFirstChild(“Broom”) then
script.Parent.Response1.Visible = true
script.Parent.Response2.Visible = true
print(“Not Started”)