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.
Destroy shouldn't glitch, it may be a problem with how you're calling the function.
local function Remove(obj) if obj:IsA("LuaSourceContainer") then obj.Disabled = true end obj.Parent = nil end -- Example: Remove(box)