#Gui script problem
15 messages · Page 1 of 1 (latest)
I think you should add print(selectedTower) above of this code
it probably will print nil
k ima try
which line causes the error
the gui.Select.Total.TotalDamage.Text = "Total Damage: " .. selectedTower.Config.TotalDamage.Value
its inside that connect(function) tho
.Changed event passes new value to the functions connected to it
you can do
selectedTower.Config:FindFirstChild("TotalDamage").Changed:Connect(function(NewValue)
gui.Select.Total.TotalDamage.Text = "Total Damage: " .. NewValue
end)
k ima try
** You are now Level 5! **