I’m making a new gun system but the GunUI dosn’t get deleted after unequipping:
Code:
Tool.Unequipped:Connect(function()
IsEquipped = false
if VM ~= nil then
VM:Destroy()
VM = nil
end
if cGunUI ~= nil then
cGunUI:Destroy()
print("Destroy")
if cGunUI ~= nil then
print("no")
else
print("yes")
end
end
UserInputService.MouseIconEnabled = true
Anims.Hold:Stop()
Events.DisconnectMD6:FireServer()
end)
It prints: “no”
Thanks!