i tried to make it but its just a huge mess i tried to make all bool values and this script still doesn't work can someone fix it? Thanks. im bad at checking values
Target1 = game.ReplicatedStorage["Shot-1Letter"] Target2 = game.ReplicatedStorage["Shot-2Letter"] Target3 = game.ReplicatedStorage["Shot-3Letter"] Target4 = game.ReplicatedStorage["Shot-4Letter"] Target5 = game.ReplicatedStorage["The-1Letter"] Target6 = game.ReplicatedStorage["The-2Letter"] Target7 = game.ReplicatedStorage["The-3Letter"] Target8 = game.ReplicatedStorage["Gun-1Letter"] Target9 = game.ReplicatedStorage["Gun-2Letter"] Target10 = game.ReplicatedStorage["Gun-3Letter"] repeat wait() if Target1 == true then if Target2 == true then if Target3 == true then if Target4 == true then if Target5 == true then if Target6 == true then if Target7 == true then if Target8 == true then if Target9 == true then if Target10 == true then game.StarterGui.s.GreenTick.Visible = true end end end end end end end end end end wait() until false
FindFirstChild is useful if you want to verify an object something exists before continuing nill is nothing u can use nill to check if its there if Target1 is there i think is what u wanted then
local Target1 = game.ReplicatedStorage:FindFirstChild("Shot-1Letter") local Target2 = game.ReplicatedStorage:FindFirstChild("Shot-2Letter") local Target3 = game.ReplicatedStorage:FindFirstChild("Shot-3Letter") local Target4 = game.ReplicatedStorage:FindFirstChild("Shot-4Letter") local Target5 = game.ReplicatedStorage:FindFirstChild("The-1Letter") local Target6 = game.ReplicatedStorage:FindFirstChild("The-2Letter") local Target7 = game.ReplicatedStorage:FindFirstChild("The-3Letter") local Target8 = game.ReplicatedStorage:FindFirstChild("Gun-1Letter") local Target9 = game.ReplicatedStorage:FindFirstChild("Gun-2Letter") local Target10 = game.ReplicatedStorage:FindFirstChild("Gun-3Letter") repeat wait() if Target1 == nil then if Target2 == nil then if Target3 == nil then if Target4 == nil then if Target5 == nil then if Target6 == nil then if Target7 == nil then if Target8 == nil then if Target9 == nil then if Target10 == nil then game.StarterGui.s.GreenTick.Visible = true end end end end end end end end end end wait(0,500) until false
tell me if i forgot to explain something