i have a door that i want to destroy itself once intvalue reaches 10 or higher but i have a problem on doing so i don't know what is the problem here is the script:
local int_value = game.StarterPack.Pizza.IntValue
local pizza = game.StarterPack.Pizza
int_value.Changed:Connect(function()
if int_value.Value = int_value.Value --I want to type equal to or greater than 10 but dont know hw
script.Parent:Destroy()

3 comments
Please be more descriptive i dont understand the issue nor how to solve it
Is this a script inside the door in workspace?
yes thi script is inside the door