I Click the click detector of the baseplate and if the stringValue named “Health” Reaches the value Of 0 The Baseplate Gets Transparent And CanCollide off but the script doesn’t work:
clicky = script.Parent
plate = clicky.Parent
plateHealth = plate.Health
clicky.MouseClick:Connect(function(Clicker)
if Clicker then
plateHealth.Value = plateHealth.Value - 5
if plateHealth.Value == 0 then
plate.Transparency = 1
plate.CanCollide = false
clicky:Destroy()
end
end
end)
Is this a local script or server script (it wouldn’t work as a local script)
Also is plate a humanoid or a value bc if it is humanoid you dont need the .value at the end of plateHealth