Hi, title says it all so here’s the current code I tried, which obviously failed as I am here:
(fyi if v.Completed == v.Goal then
works fine when outside the scope of :Changed()
v.Completed.Changed:Connect(function()
NewTask.Completion.Text = tostring(v.Completed .. " / " .. v.Goal)
if v.Completed == v.Goal then
NewTask.Completion.Text = "COMPLETED"
NewTask.Completion.TextColor3 = Color3.fromRGB(0, 255, 0)
NewTask.Description.TextColor3 = Color3.fromRGB(0, 255, 0)
NewTask.Checkbox.Image = "rbxassetid://71596434996966"
NewTask.Checkbox.ImageColor3 = Color3.fromRGB(0, 255, 0)
end
end)
And here’s a snippet of the module:
["Mission"] = {
["Clean"] = {
FrameName = "Clean",
Description = "Clean fighter fuselages",
Completed = 0,
Goal = 3},
["Fuel"] = {
FrameName = "Fuel",
Description = "Connect cryogenic fuel pumps",
Completed = 0,
Goal = 3},
["Ladders"] = {
FrameName = "Ladders",
Description = "Attach ladders to X-Wings",
Completed = 0,
Goal = 3}}}}