Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My npc job system is not giving me the correct options?

Asked by 4 years ago

So I have this script that does a bunch of stuff. And when you do the job, it should give you a success button, if you didn't finish, it should give you a get back to work option, any help? Here's part my script.

local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Camera = game.Workspace.CurrentCamera
local FindTool = Player.Backpack:FindFirstChild("Clippers") or Character:FindFirstChild("Clippers")

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 = "Hey"
wait(0.05)
script.Parent.Dialogue.CharText.Text = "Hey,"
wait(0.05)
script.Parent.Dialogue.CharText.Text = "Hey, w"
wait(0.05)
script.Parent.Dialogue.CharText.Text = "Hey, wh"
wait(0.05)
script.Parent.Dialogue.CharText.Text = "Hey, wha"
wait(0.05)
script.Parent.Dialogue.CharText.Text = "Hey, what"
wait(0.05)
script.Parent.Dialogue.CharText.Text = "Hey, what y"
wait(0.05)
script.Parent.Dialogue.CharText.Text = "Hey, what yo"
wait(0.05)
script.Parent.Dialogue.CharText.Text = "Hey, what you"
wait(0.05)
script.Parent.Dialogue.CharText.Text = "Hey, what you n"
wait(0.05)
script.Parent.Dialogue.CharText.Text = "Hey, what you ne"
wait(0.05)
script.Parent.Dialogue.CharText.Text = "Hey, what you nee"
wait(0.05)
script.Parent.Dialogue.CharText.Text = "Hey, what you need"
wait(0.05)
script.Parent.Dialogue.CharText.Text = "Hey, what you need?"
wait(2)
if Player.Backpack:FindFirstChild("Clippers") or Character:FindFirstChild("Clippers") and game.Workspace.HairClean1.HairFinished.Transparency == 0 and game.Workspace.HairClean2.HairFinished.Transparency == 0 and game.Workspace.HairClean3.HairFinished.Transparency == 0 then
script.Parent.Response1.Visible = true
    script.Parent.Response2JobAdditionSucess.Visible = true
else
if Player.Backpack:FindFirstChild("Clippers") or Character:FindFirstChild("Clippers") and game.Workspace.HairClean1.HairFinished.Transparency == 1 and game.Workspace.HairClean2.HairFinished.Transparency == 1 and game.Workspace.HairClean3.HairFinished.Transparency == 0  then
script.Parent.Response1.Visible = true
    script.Parent.Response2JobAddition.Visible = true
else
if Player.Backpack:FindFirstChild("Clippers") or Character:FindFirstChild("Clippers") and game.Workspace.HairClean1.HairFinished.Transparency == 1 and game.Workspace.HairClean2.HairFinished.Transparency == 0 and game.Workspace.HairClean3.HairFinished.Transparency == 0  then
script.Parent.Response1.Visible = true
    script.Parent.Response2JobAddition.Visible = true
else
if Player.Backpack:FindFirstChild("Clippers") or Character:FindFirstChild("Clippers") and game.Workspace.HairClean1.HairFinished.Transparency == 1 and game.Workspace.HairClean2.HairFinished.Transparency == 1 and game.Workspace.HairClean3.HairFinished.Transparency == 0  then
script.Parent.Response1.Visible = true
    script.Parent.Response2JobAddition.Visible = true
else
if Player.Backpack:FindFirstChild("Clippers") or Character:FindFirstChild("Clippers") and game.Workspace.HairClean1.HairFinished.Transparency == 0 and game.Workspace.HairClean2.HairFinished.Transparency == 1 and game.Workspace.HairClean3.HairFinished.Transparency == 1  then
script.Parent.Response1.Visible = true
    script.Parent.Response2JobAddition.Visible = true
else
if Player.Backpack:FindFirstChild("Clippers") or Character:FindFirstChild("Clippers") and game.Workspace.HairClean1.HairFinished.Transparency == 1 and game.Workspace.HairClean2.HairFinished.Transparency == 1 and game.Workspace.HairClean3.HairFinished.Transparency == 1  then
script.Parent.Response1.Visible = true
    script.Parent.Response2JobAddition.Visible = true
else
if Player.Backpack:FindFirstChild("Clippers") or Character:FindFirstChild("Clippers") and game.Workspace.HairClean1.HairFinished.Transparency == 0 and game.Workspace.HairClean2.HairFinished.Transparency == 0 and game.Workspace.HairClean3.HairFinished.Transparency == 1  then
script.Parent.Response1.Visible = true
    script.Parent.Response2JobAddition.Visible = true
else
if not Player.Backpack:FindFirstChild("Clippers") or Character:FindFirstChild("Clippers") then
script.Parent.Response1.Visible = true
    script.Parent.Response2.Visible = true
end
end
end
end
end
end
end
end

Answer this question