So I'm somewhat beginner/intermediate in lua and I'm trying to test my self and trying to make a nuke. What I'm trying to do here is after the size reaches 10, 10, 10 then it would just disappear using destroy(). The problem is I can't figure out how to do this. Here is my
local nuke = script.Parent
local pos = nuke.cFrame
while true do
wait()
nuke.Size = nuke.Size + Vector3.new(0.1, 0.1, 0.1)
print(nuke.Size)
if nuke.Size == 10, 10, 10 then
nuke:remove()
end
end
