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

roblox freaks out that it did not find configuration in one of the objects?! how should i fix this

Asked by 2 years ago
--move text box and make it visible when button is clicked
button.MouseButton1Click:Connect(function(button_1_clicked)
    answer_box.Position = UDim2.new(0, 0, 0, 0)
    answer_box.Transparency = 0
    --find damage value
    local objects = game.Workspace:GetChildren()
    for i, child in ipairs(objects) do
    local childs_children = child:GetChildren()
    local config = childs_children:FindFirstChildOfClass("Configuration")
    local damage_value = config:FindFirstChild("Damage")
    if damage_value then
        local found_value = instance.new("ObjectValue")
        found_value.Name = "damage_found"
        found_value.Parent = button
        found_value.Value = damage_value
    end
end)
0
error on line 9 jeremqpmfpi 41 — 2y

Answer this question