So i'm trying to make part disappear by using Destroy() but sometimes it glitches and it doesn't destroy the part immediately so i tried doing this instead
Box.Parent = game.ServerScriptService and Box:Destroy()
If i do this then the part would immediately disappear but i'm not sure if the part would get destroyed once ServerScriptService becomes it's parent.

6 comments
Why do you want to change its parent and destroy it at the same time?
x and ywill evalúate to x if x is falsey, y otherwise. A falsey value is false or nil. Anything that is not false or nil is truthy. Since ServerScriptService is not false or nil it is truthy. :Destroy() has no return value, and since you're trying to store the result of a void function in a variable, the variable holds nil instead.In less words, your box is being destroyed instead.
As i stated, destroy gets glitched sometimes but changing it's parent doesn't so i'm wondering if the part will still get destroyed if i change it's parent
Oh i see, so the box does get destroyed.
yeah