i have 2 baseplates the first one works fine and there is a text label showing the value of the baseplate’s health using a numberValue and after the 1st baseplate’s health is = to 0 it doesn’t reset to the other baseplate’s value and doesn’t even function here is the script of the 2nd baseplate:
clicky = script.Parent
plate = clicky.Parent
plateHealth = plate.Health
txt = game.StarterGui.Value.TextLabel
clicky.MouseClick:Connect(function(Clicker)
plateHealth.Value = plateHealth.Value - 5
if plateHealth.Value <= 0 then
plate.Anchored = false
if workspace.Baseplate.Health.Value == 0 then
txt.Text = "Baseplate Health:" .. tostring(plateHealth.Value)
end
end
end)
In the script, are you referencing the same text label for both baseplates? You may need to create separate ones for each. If this is true. when you click the second base plate, the health value of it should still be going down.
Also, I’d recommend CollectionService | Documentation - Roblox Creator Hub if you are going to have multiple of these baseplates. By using collection service, you only have to create one main script to maintain all of the baseplates. You can also create the text label in the one main script so you don’t have to create as many text labels as baseplates. A plugin that will help with collection service is this: Tag Editor Plugin.